-
Notifications
You must be signed in to change notification settings - Fork 18
/
.eslintrc.json
95 lines (92 loc) · 2.9 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
{
"env": {
"node": true,
"es2021": true
},
"plugins": [
"@typescript-eslint",
"react",
"simple-import-sort",
"prettier"
],
"extends": [
"standard",
"plugin:eslint-comments/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:import/typescript",
"prettier"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2022,
"sourceType": "module"
},
"settings": {
"react": {
"version": "17"
},
"import/resolver": {
"node": {
"extensions": [".ts", ".tsx", ".js", ".json"]
},
"typescript": {
"project": [
"./tsconfig.json",
"./packages/pixel-profile/tsconfig.json"
]
}
}
},
"rules": {
"camelcase": 0,
"no-void": 0,
"comma-dangle": ["error", "never"],
"prettier/prettier": "error",
"max-len": ["error", { "code": 120 }],
"no-use-before-define": 0,
"eslint-comments/disable-enable-pair": [2, { "allowWholeFile": true }],
"import/extensions": 0,
"newline-before-return": 2,
"func-names": 0,
"lines-between-class-members": 0,
"max-classes-per-file": 0,
"no-console": 0,
"no-empty": 0,
"no-underscore-dangle": 0,
"no-unused-expressions": 0,
"no-useless-constructor": 0,
"semi": [2, "never"],
"quotes": ["error", "single", { "avoidEscape": true, "allowTemplateLiterals": false }],
"node/no-callback-literal": 0,
"prefer-template": 2,
"react/jsx-indent": [2, 2],
"react/jsx-filename-extension": [2, { "extensions": [".ts", ".tsx", ".json", ".js"] }],
"react/jsx-uses-react": 0,
"react/react-in-jsx-scope": 0,
"react/self-closing-comp": 2,
"react/jsx-boolean-value": 2,
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-non-null-assertion": 0,
"@typescript-eslint/no-useless-constructor": 2,
"simple-import-sort/imports": [
"error",
{
"groups": [
["^react", "^@?\\\\w"],
// Side effect imports.
["^\\\\u0000"],
// Parent imports. Put `..` last.
["^@(/.*|$)", "^\\\\.\\\\.(?!/?$)", "^\\\\.\\\\./?$"],
// Other relative imports. Put same-folder imports and `.` last.
["^\\\\./(?=.*/)(?!/?$)", "^\\\\.(?!/?$)", "^\\\\./?$"]
]
}
],
"simple-import-sort/exports": "warn"
}
}