Skip to content

Commit 40864df

Browse files
MichaelDeBoeyCompuIves
authored andcommitted
Fix .eslintrc (codesandbox#1993)
1 parent a4abcac commit 40864df

File tree

1 file changed

+37
-35
lines changed

1 file changed

+37
-35
lines changed

.eslintrc

Lines changed: 37 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -45,40 +45,42 @@
4545
"react-hooks/rules-of-hooks": "error",
4646
"react-hooks/exhaustive-deps": "warn"
4747
},
48-
"overrides": {
49-
"files": ["**/*.ts", "**/*.tsx"],
50-
"parser": "@typescript-eslint/parser",
51-
"parserOptions": {
52-
"ecmaVersion": 2018,
53-
"sourceType": "module",
54-
"ecmaFeatures": { "jsx": true },
55-
"warnOnUnsupportedTypeScriptVersion": true
56-
},
57-
"plugins": ["@typescript-eslint"],
58-
"rules": {
59-
"default-case": "off",
60-
"no-dupe-class-members": "off",
61-
"@typescript-eslint/no-angle-bracket-type-assertion": "warn",
62-
"no-array-constructor": "off",
63-
"@typescript-eslint/no-array-constructor": "warn",
64-
"@typescript-eslint/no-namespace": "error",
65-
"no-use-before-define": "off",
66-
"@typescript-eslint/no-use-before-define": [
67-
"warn",
68-
{
69-
"functions": false,
70-
"classes": false,
71-
"variables": false,
72-
"typedefs": false
73-
}
74-
],
75-
"no-unused-vars": "off",
76-
"@typescript-eslint/no-unused-vars": [
77-
"warn",
78-
{ "args": "none", "ignoreRestSiblings": true }
79-
],
80-
"no-useless-constructor": "off",
81-
"@typescript-eslint/no-useless-constructor": "warn"
48+
"overrides": [
49+
{
50+
"files": ["**/*.ts", "**/*.tsx"],
51+
"parser": "@typescript-eslint/parser",
52+
"parserOptions": {
53+
"ecmaVersion": 2018,
54+
"sourceType": "module",
55+
"ecmaFeatures": { "jsx": true },
56+
"warnOnUnsupportedTypeScriptVersion": true
57+
},
58+
"plugins": ["@typescript-eslint"],
59+
"rules": {
60+
"default-case": "off",
61+
"no-dupe-class-members": "off",
62+
"@typescript-eslint/no-angle-bracket-type-assertion": "warn",
63+
"no-array-constructor": "off",
64+
"@typescript-eslint/no-array-constructor": "warn",
65+
"@typescript-eslint/no-namespace": "error",
66+
"no-use-before-define": "off",
67+
"@typescript-eslint/no-use-before-define": [
68+
"warn",
69+
{
70+
"functions": false,
71+
"classes": false,
72+
"variables": false,
73+
"typedefs": false
74+
}
75+
],
76+
"no-unused-vars": "off",
77+
"@typescript-eslint/no-unused-vars": [
78+
"warn",
79+
{ "args": "none", "ignoreRestSiblings": true }
80+
],
81+
"no-useless-constructor": "off",
82+
"@typescript-eslint/no-useless-constructor": "warn"
83+
}
8284
}
83-
}
85+
]
8486
}

0 commit comments

Comments
 (0)