-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.json
39 lines (39 loc) · 1.19 KB
/
.eslintrc.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{
"extends": ["eslint:recommended", "plugin:react/recommended"],
"plugins": [
"react",
"react-native"
],
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2023
},
"rules": {
"@typescript-eslint/no-explicit-any": "off",
"unused-imports/no-unused-imports": "error",
"@next/next/no-img-element": "off",
"@next/next/no-html-link-for-pages": "off",
"react/jsx-key": "off",
"react/no-unescaped-entities": "off",
"react-hooks/exhaustive-deps": "off",
"comma-dangle": "off",
"eol-last": ["warn", "always"],
"quote-props": ["error", "as-needed"],
"quotes": "off",
"no-trailing-spaces": "warn",
"no-var": "error",
"operator-linebreak": ["warn", "before"],
"multiline-ternary": ["warn", "always-multiline"],
"indent": ["warn", 2, { "SwitchCase": 1 }],
"arrow-body-style": ["warn", "as-needed"],
"react/jsx-tag-spacing": ["warn", { "beforeSelfClosing": "always", "beforeClosing": "never" }],
"no-multiple-empty-lines": "off",
"jsx-quotes": ["warn", "prefer-double"],
"no-undef": "off",
"no-unused-vars": "off",
"no-useless-catch": "off",
}
}