-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.js
71 lines (66 loc) · 1.8 KB
/
.eslintrc.js
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
69
70
71
module.exports = {
env: {
es2020: true,
},
parser: "@typescript-eslint/parser",
settings: {
react: {
version: "detect",
},
"import/extensions": [".js", ".jsx", ".ts", ".tsx"],
},
extends: [
"eslint:recommended",
"airbnb-base",
"plugin:react/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"prettier",
"plugin:prettier/recommended",
"plugin:react-hooks/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
],
plugins: [
"react",
"@typescript-eslint",
"prettier",
"unused-imports",
"import",
],
rules: {
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-unused-vars": ["error", { varsIgnorePattern: "_" }],
"import/prefer-default-export": "off",
"import/extensions": "off",
"import/no-unresolved": "off",
"import/no-extraneous-dependencies": ["error", { devDependencies: true }],
"no-await-in-loop": "off",
"no-plusplus": ["error", { allowForLoopAfterthoughts: true }],
"no-console": "off",
"no-continue": "off",
"no-restricted-syntax": "off",
"no-use-before-define": "off",
"max-classes-per-file": "off",
"no-underscore-dangle": "off",
"vars-on-top": "off",
"no-shadow": "off",
"no-unused-vars": "off",
"prettier/prettier": "error",
"react/prop-types": "off",
"react/display-name": "off",
"unused-imports/no-unused-imports": "error",
},
overrides: [
{
files: ["api-functions/cms/codegen/**/*"],
rules: {
camelcase: "off",
},
},
],
};