Skip to content

Commit f267ecf

Browse files
committed
Make minor ESLint config improvements
1 parent ce5a6e8 commit f267ecf

File tree

1 file changed

+20
-18
lines changed

1 file changed

+20
-18
lines changed

.eslintrc.cjs

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -24,33 +24,35 @@ module.exports = {
2424
'no-unused-vars': 'off',
2525
// Useful for triggering Svelte reactivity
2626
'no-self-assign': 'off',
27+
/* eslint-plugin-simple-import-sort */
2728
'simple-import-sort/imports': 'error',
2829
'simple-import-sort/exports': 'error',
29-
'@typescript-eslint/no-unused-vars': [
30-
'error',
31-
{ argsIgnorePattern: '^_', varsIgnorePattern: '^_' },
32-
],
33-
'@typescript-eslint/no-explicit-any': 'off',
34-
'@typescript-eslint/no-non-null-assertion': 'off',
35-
'@typescript-eslint/no-empty-function': 'off',
36-
'@typescript-eslint/no-floating-promises': 'error',
30+
/* @typescript-eslint/eslint-plugin */
3731
'@typescript-eslint/ban-ts-comment': 'off',
38-
'@typescript-eslint/interface-name-prefix': 'off',
32+
'@typescript-eslint/consistent-indexed-object-style': 'off',
3933
'@typescript-eslint/explicit-function-return-type': 'off',
4034
'@typescript-eslint/explicit-module-boundary-types': 'off',
35+
'@typescript-eslint/interface-name-prefix': 'off',
36+
'@typescript-eslint/no-confusing-void-expression': 'off',
37+
'@typescript-eslint/no-empty-function': 'off',
38+
'@typescript-eslint/no-explicit-any': 'off',
39+
'@typescript-eslint/no-extraneous-class': 'off',
40+
'@typescript-eslint/no-floating-promises': 'error',
4141
'@typescript-eslint/no-namespace': 'off',
42-
'@typescript-eslint/consistent-indexed-object-style': 'off',
43-
'@typescript-eslint/prefer-nullish-coalescing': 'off',
44-
'@typescript-eslint/no-unsafe-member-access': 'off',
45-
'@typescript-eslint/no-unsafe-argument': 'off',
46-
'@typescript-eslint/no-unsafe-assignment': 'off',
42+
'@typescript-eslint/no-non-null-assertion': 'off',
4743
'@typescript-eslint/no-throw-literal': 'off',
48-
'@typescript-eslint/unbound-method': 'off',
44+
'@typescript-eslint/no-unnecessary-condition': 'off',
4945
'@typescript-eslint/no-unnecessary-type-arguments': 'off',
46+
'@typescript-eslint/no-unsafe-argument': 'off',
47+
'@typescript-eslint/no-unsafe-assignment': 'off',
48+
'@typescript-eslint/no-unsafe-member-access': 'off',
49+
'@typescript-eslint/no-unused-vars': [
50+
'error',
51+
{ argsIgnorePattern: '^_', varsIgnorePattern: '^_' },
52+
],
53+
'@typescript-eslint/prefer-nullish-coalescing': 'off',
5054
'@typescript-eslint/prefer-reduce-type-parameter': 'off',
51-
'@typescript-eslint/no-confusing-void-expression': 'off',
52-
'@typescript-eslint/no-unnecessary-condition': 'off',
53-
'@typescript-eslint/no-extraneous-class': 'off',
55+
'@typescript-eslint/unbound-method': 'off',
5456
},
5557
overrides: [
5658
{

0 commit comments

Comments
 (0)