Skip to content

Commit

Permalink
fix(eslint-config): fix ts rules
Browse files Browse the repository at this point in the history
  • Loading branch information
dangreen committed Mar 29, 2024
1 parent 55cb9d2 commit 2fa1c00
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ module.exports = {
'@typescript-eslint/no-unnecessary-type-arguments': 'error',
'@typescript-eslint/prefer-includes': 'error',
'@typescript-eslint/prefer-nullish-coalescing': 'off',
'@typescript-eslint/prefer-optional-chain': 'error',
'@typescript-eslint/prefer-readonly': 'error',
'@typescript-eslint/prefer-readonly-parameter-types': 'off',
'@typescript-eslint/prefer-reduce-type-parameter': 'error',
Expand Down
1 change: 0 additions & 1 deletion packages/eslint-config/src/rules/typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ module.exports = {
'@typescript-eslint/prefer-for-of': 'error',
'@typescript-eslint/prefer-function-type': 'error',
'@typescript-eslint/prefer-namespace-keyword': 'off',
'@typescript-eslint/prefer-optional-chain': 'error',
'@typescript-eslint/prefer-ts-expect-error': 'error',
'@typescript-eslint/type-annotation-spacing': 'error',
'@typescript-eslint/unified-signatures': 'error',
Expand Down
10 changes: 8 additions & 2 deletions packages/eslint-config/src/storybook.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,21 @@ const extensions = [
module.exports = {
overrides: [
{
files: makePatterns(postfixes, extensions).concat('.storybook/**/*').concat('storybook/**/*'),
files: makePatterns(postfixes, extensions).concat('.storybook/**/*'),
rules: {
'max-classes-per-file': 'off',
'no-magic-numbers': 'off',
'@typescript-eslint/no-magic-numbers': 'off',
'max-nested-callbacks': 'off',
'react/no-array-index-key': 'off',
'react/jsx-no-bind': 'off',
'import/no-default-export': 'off'
'import/no-default-export': 'off',
'@typescript-eslint/no-unsafe-return': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/no-unsafe-member-access': 'off',
'@typescript-eslint/no-unsafe-call': 'off',
'@typescript-eslint/no-unsafe-argument': 'off',
'@typescript-eslint/no-explicit-any': 'off'
}
}
]
Expand Down

0 comments on commit 2fa1c00

Please sign in to comment.