-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.json
More file actions
104 lines (104 loc) · 3.22 KB
/
Copy path.eslintrc.json
File metadata and controls
104 lines (104 loc) · 3.22 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
{
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "react", "import", "prettier"],
"parserOptions": {
"project": "./tsconfig.eslint.json",
"ecmaVersion": 2020
},
"extends": [
"airbnb",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
],
"env": {
"browser": true,
"jest": true
},
"settings": {
"import/core-modules": ["dayjs", "dayjs/plugin/", "dayjs/locale"],
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
}
},
"globals": {
"PROJECT_ENV": true
},
"ignorePatterns": ["dist/**/*"],
"rules": {
"prettier/prettier": "error",
"max-len": "off",
"linebreak-style": "off",
"no-console": "off",
"no-empty": "off",
"no-underscore-dangle": "off",
"quote-props": "off",
"indent": "off",
"camelcase": "off",
"import/prefer-default-export": "off",
"import/no-dynamic-require": "warn",
"import/extensions": [
"error",
{
"ts": "never"
}
],
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": ["error"],
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/explicit-member-accessibility": "off",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-object-literal-type-assertion": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/ban-ts-comment": [
"error",
{
"ts-ignore": "allow-with-description"
}
],
"@typescript-eslint/no-empty-function": "off",
"react/jsx-indent": "off",
"react/jsx-indent-props": "off",
"react/jsx-filename-extension": [
"error",
{
"extensions": [".js", ".jsx", ".tsx"]
}
],
"react/jsx-key": "error",
"react/prop-types": "off",
"react/no-array-index-key": "off",
"react/button-has-type": "off",
"react/jsx-no-target-blank": "off",
"react/jsx-one-expression-per-line": "off",
"react/no-did-update-set-state": "off",
"react/no-danger": "off",
"react/static-property-placement": ["error", "static public field"],
"react/no-deprecated": "warn",
"react/jsx-props-no-spreading": "off",
"react/require-default-props": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/no-static-element-interactions": "off",
"jsx-a11y/label-has-associated-control": "off",
"jsx-a11y/label-has-for": "off",
"jsx-a11y/alt-text": "off",
"jsx-a11y/mouse-events-have-key-events": "off",
"jsx-a11y/anchor-is-valid": "off",
"jsx-a11y/no-noninteractive-element-interactions": "off",
"jsx-a11y/no-autofocus": "off",
"jsx-a11y/no-noninteractive-tabindex": "off",
"jsx-a11y/control-has-associated-label": "off",
"unicode-bom": "off",
"react/function-component-definition": "off",
"consistent-return": "off",
"react/react-in-jsx-scope": "off",
"func-names": "off",
"function-paren-newline": "off",
"import/no-extraneous-dependencies": "off",
"import/newline-after-import": ["error", { "count": 1 }],
"import/first": "error"
}
}