-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.eslintrc.cjs
More file actions
68 lines (68 loc) · 1.83 KB
/
.eslintrc.cjs
File metadata and controls
68 lines (68 loc) · 1.83 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
module.exports = {
root: true,
env: {
browser: true,
node: true,
es6: true,
},
parser: "@typescript-eslint/parser",
parserOptions: {
project: "./tsconfig.json",
createDefaultProgram: true,
},
plugins: ["react-refresh", "@typescript-eslint", "prettier"],
extends: [
"next/core-web-vitals",
"airbnb",
"airbnb/hooks",
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:import/recommended",
"plugin:import/typescript",
"plugin:prettier/recommended",
],
ignorePatterns: [
".next",
".vscode",
".eslintrc.cjs",
"next.config.mjs",
"node_modules",
],
rules: {
"react/jsx-filename-extension": [
1,
{ extensions: [".js", ".jsx", ".ts", ".tsx"] },
],
"react/function-component-definition": [
2,
{ namedComponents: "arrow-function" },
],
"react/react-in-jsx-scope": "off",
"react/prop-types": "off",
"react/jsx-no-useless-fragment": "off",
"react/require-default-props": "off",
"react/no-unescaped-entities": "off",
"react-hooks/exhaustive-deps": "off",
"import/no-extraneous-dependencies": "off",
"import/prefer-default-export": "off",
"import/extensions": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/no-static-element-interactions": "off",
"no-console": "off",
"no-param-reassign": "off",
"max-classes-per-file": "off",
"consistent-return": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/lines-between-class-members": "off",
"@typescript-eslint/no-unused-vars": "off",
camelcase: "off",
},
settings: {
"import/resolver": {
typescript: {},
},
"import/parsers": { "@typescript-eslint/parser": [".ts"] },
},
};