forked from H-BF/frontend-client-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
76 lines (76 loc) · 2.32 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
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
72
73
74
75
76
{
"root": true,
"extends": [
"airbnb",
"airbnb/hooks",
"plugin:prettier/recommended",
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"modules": true,
"experimentalObjectRestSpread": true
},
"project": ["./tsconfig.json"]
},
"plugins": ["prettier", "react", "@typescript-eslint", "import"],
"ignorePatterns": ["dist/**", "node_modules/**", "public/**"],
"overrides": [
{
"files": ["pages/**/*"],
"rules": {
"import/no-default-export": 0
}
},
{
"files": ["*.ts", "*.tsx"],
"rules": {
"@typescript-eslint/explicit-module-boundary-types": ["warn"]
}
}
],
"rules": {
"quotes": ["off", "single"],
"semi": ["error", "never"],
"prefer-template": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/no-static-element-interactions": "off",
"jsx-a11y/anchor-is-valid": "off",
"react/react-in-jsx-scope": 0,
"react/display-name": 0,
"react/function-component-definition": [2, { "namedComponents": "arrow-function" }],
"no-alert": "error",
"no-else-return": 1,
"no-cond-assign": "error",
"no-lonely-if": "warn",
"no-dupe-else-if": "warn",
"no-duplicate-case": "warn",
"react/jsx-filename-extension": "off",
"react/jsx-props-no-spreading": "off",
"react/jsx-key": ["warn", { "checkFragmentShorthand": true }],
"react/jsx-no-duplicate-props": "warn",
"react/no-unescaped-entities": "warn",
"react/require-default-props": "off",
"prettier/prettier": "error",
"import/prefer-default-export": "off",
"import/no-unresolved": "off",
"import/extensions": "off",
"import/no-extraneous-dependencies": "off",
"no-shadow": "off",
"max-lines-per-function": ["warn", 250],
"import/no-default-export": "warn",
"react/jsx-handler-names": ["warn"],
"no-unused-expressions": "off",
"no-unused-vars": "off",
"no-plusplus": ["error", { "allowForLoopAfterthoughts": true }],
"@typescript-eslint/no-unused-expressions": ["error"],
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/explicit-module-boundary-types": "off"
}
}