Skip to content

Commit

Permalink
Add eslint rule to disallow default export (microsoft#2515)
Browse files Browse the repository at this point in the history
  • Loading branch information
JiuqingSong authored Mar 20, 2024
1 parent fb8603c commit 65ea84c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,5 +150,20 @@ module.exports = {
'prefer-const': 'error',
'no-var': 'error',
'etc/no-const-enum': ['error', { allowLocal: true }],
'import/no-default-export': 'error',
},
overrides: [
{
files: [
'roosterjs-editor-*/**/*.ts',
'roosterjs-react/**/*.ts',
'roosterjs-react/**/*.tsx',
'roosterjs-color-utils/**/*.ts',
'roosterjs/**/*.ts',
],
rules: {
'import/no-default-export': 'off',
},
},
],
};

0 comments on commit 65ea84c

Please sign in to comment.