Skip to content

Commit 164daa0

Browse files
💄 style: Update eslint rule
1 parent 1b0db7c commit 164daa0

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

src/eslint/index.ts

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,12 @@ export default {
2020
'import/newline-after-import': 'error',
2121
'import/no-duplicates': 'error',
2222
'no-empty': 'warn',
23-
'no-extra-boolean-cast': 'warn',
23+
'no-extra-boolean-cast': 0,
2424
'no-unused-vars': 0,
2525
'react/display-name': 0,
2626
'react/jsx-no-useless-fragment': 'error',
2727
'react/jsx-sort-props': 'error',
28+
'react/no-unknown-property': 'warn',
2829
'react/prop-types': 0,
2930
'react/react-in-jsx-scope': 0,
3031
'react/self-closing-comp': [
@@ -38,25 +39,30 @@ export default {
3839
'sort-keys-fix/sort-keys-fix': 'error',
3940
'typescript-sort-keys/interface': 'error',
4041
'typescript-sort-keys/string-enum': 'error',
41-
'unicorn/explicit-length-check': 'warn',
42+
'unicorn/catch-error-name': 'warn',
43+
'unicorn/explicit-length-check': 0,
4244
'unicorn/filename-case': 0,
4345
'unicorn/import-style': 0,
4446
'unicorn/no-anonymous-default-export': 0,
45-
'unicorn/no-array-for-each': 'warn',
47+
'unicorn/no-array-callback-reference': 0,
48+
'unicorn/no-array-for-each': 0,
4649
'unicorn/no-array-reduce': 0,
4750
'unicorn/no-empty-file': 'warn',
48-
'unicorn/no-negated-condition': 'warn',
51+
'unicorn/no-negated-condition': 0,
4952
'unicorn/no-nested-ternary': 0,
50-
'unicorn/no-null': 'warn',
53+
'unicorn/no-null': 0,
5154
'unicorn/no-typeof-undefined': 'warn',
52-
'unicorn/no-useless-undefined': 'warn',
53-
'unicorn/prefer-code-point': 'warn',
55+
'unicorn/no-useless-undefined': 0,
56+
'unicorn/prefer-code-point': 0,
5457
'unicorn/prefer-logical-operator-over-ternary': 0,
5558
'unicorn/prefer-module': 0,
56-
'unicorn/prefer-spread': 'warn',
59+
'unicorn/prefer-number-properties': 0,
60+
'unicorn/prefer-query-selector': 0,
61+
'unicorn/prefer-spread': 0,
5762
'unicorn/prefer-string-raw': 0,
5863
'unicorn/prefer-string-replace-all': 'warn',
59-
'unicorn/prefer-type-error': 'warn',
64+
'unicorn/prefer-ternary': 0,
65+
'unicorn/prefer-type-error': 0,
6066
'unicorn/prevent-abbreviations': 0,
6167
'unicorn/switch-case-braces': 'warn',
6268
'unused-imports/no-unused-imports': 'error',

0 commit comments

Comments
 (0)