Skip to content

Commit

Permalink
Update plugins and adjust rules configs accordingly
Browse files Browse the repository at this point in the history
  • Loading branch information
lo1tuma committed Feb 2, 2024
1 parent 4ffccbc commit 28a0c2e
Show file tree
Hide file tree
Showing 4 changed files with 627 additions and 774 deletions.
1 change: 1 addition & 0 deletions configs/rule-sets/best-practices.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ export const bestPracticesRuleSet = {
'unicorn/prefer-blob-reading-methods': 'error',
'unicorn/prefer-top-level-await': 'off',
'unicorn/prefer-at': 'error',
'unicorn/no-unnecessary-polyfills': 'off',

'array-func/from-map': 'error',
'array-func/no-unnecessary-this-arg': 'error',
Expand Down
10 changes: 3 additions & 7 deletions configs/typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,6 @@ export const typescriptConfig = {
}
],
'@typescript-eslint/no-throw-literal': 'error',
'@typescript-eslint/no-extra-semi': 'error',
'@typescript-eslint/prefer-optional-chain': 'error',
'@typescript-eslint/prefer-nullish-coalescing': 'error',
'@typescript-eslint/ban-ts-comment': 'off',
Expand Down Expand Up @@ -257,7 +256,6 @@ export const typescriptConfig = {
'@typescript-eslint/prefer-ts-expect-error': ['error'],
'@typescript-eslint/restrict-template-expressions': ['off'],
'@typescript-eslint/return-await': ['off'],
'@typescript-eslint/space-before-function-paren': ['off'],
'@typescript-eslint/switch-exhaustiveness-check': ['error'],
'@typescript-eslint/typedef': ['off'],
'@typescript-eslint/unbound-method': ['off'],
Expand All @@ -274,7 +272,6 @@ export const typescriptConfig = {
],
'@typescript-eslint/consistent-indexed-object-style': ['error', 'record'],
'@typescript-eslint/no-loop-func': 'off',
'@typescript-eslint/space-infix-ops': 'off',
'@typescript-eslint/no-unnecessary-type-constraint': 'error',
'@typescript-eslint/no-confusing-void-expression': [
'error',
Expand Down Expand Up @@ -308,24 +305,23 @@ export const typescriptConfig = {
'@typescript-eslint/no-unsafe-argument': 'error',
'@typescript-eslint/prefer-return-this-type': 'off',
'@typescript-eslint/no-meaningless-void-operator': 'error',
'@typescript-eslint/padding-line-between-statements': 'off',
'@typescript-eslint/no-restricted-imports': 'error',
'@typescript-eslint/no-non-null-asserted-nullish-coalescing': 'error',
'@typescript-eslint/consistent-type-exports': 'error',
'@typescript-eslint/no-redundant-type-constituents': 'error',
'@typescript-eslint/no-useless-empty-export': 'error',
'@typescript-eslint/space-before-blocks': 'off',
'@typescript-eslint/consistent-generic-constructors': ['error', 'constructor'],
'@typescript-eslint/no-duplicate-enum-values': 'error',
'@typescript-eslint/parameter-properties': 'off',
'@typescript-eslint/no-unsafe-declaration-merging': 'error',
'@typescript-eslint/no-mixed-enums': 'error',
'@typescript-eslint/no-import-type-side-effects': 'error',
'@typescript-eslint/no-duplicate-type-constituents': 'error',
'@typescript-eslint/lines-around-comment': 'off',
'@typescript-eslint/block-spacing': 'off',
'@typescript-eslint/no-unsafe-enum-comparison': 'error',
'@typescript-eslint/class-methods-use-this': 'error',
'@typescript-eslint/no-array-delete': 'error',
'@typescript-eslint/no-useless-template-literals': 'error',
...configureWrappedCoreRule('prefer-promise-reject-errors'),

'functional/functional-parameters': 'off',
'functional/immutable-data': 'off',
Expand Down
Loading

0 comments on commit 28a0c2e

Please sign in to comment.