-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
58 lines (56 loc) · 1.52 KB
/
.eslintrc
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
{
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": ["plugin:react/recommended", "airbnb", "prettier", "plugin:import/typescript"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["react", "@typescript-eslint", "prettier"],
"rules": {
"arrow-parens": [2, "as-needed"],
"comma-dangle": 0,
"import/extensions": [
2,
"ignorePackages",
{
"js": "never",
"ts": "never",
"tsx": "never"
}
],
"import/prefer-default-export": 0,
"jsx-a11y/click-events-have-key-events": 0,
"jsx-a11y/no-static-element-interactions": 0,
"jsx-a11y/anchor-is-valid": 0,
"max-len": 0,
"no-console": [1, { "allow": ["info", "warn", "error"] }],
"no-nested-ternary": 1,
"no-new": 0,
"no-param-reassign": 1,
"no-unused-vars": 1,
"no-use-before-define": 0,
"object-curly-newline": [
2,
{
"ExportDeclaration": { "consistent": true },
"ImportDeclaration": { "consistent": true },
"ObjectExpression": { "consistent": true },
"ObjectPattern": { "consistent": true }
}
],
"object-property-newline": [2, { "allowAllPropertiesOnSameLine": true }],
"prettier/prettier": 0,
"react/function-component-definition": 0,
"react/jsx-filename-extension": [0, { "extensions": [".tsx"] }],
"react/jsx-props-no-spreading": 0,
"semi": 0
}
}