-
Notifications
You must be signed in to change notification settings - Fork 22
/
.eslintrc.cjs
51 lines (51 loc) · 1.07 KB
/
.eslintrc.cjs
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
module.exports = {
env: {
es2020: true,
node: true,
},
extends: [
"standard",
"plugin:@typescript-eslint/recommended",
"prettier/@typescript-eslint",
"prettier/standard",
"plugin:prettier/recommended",
],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 2020,
sourceType: "module",
},
plugins: [
"@typescript-eslint",
"prettier",
"simple-import-sort",
"sort-destructure-keys",
"sort-keys-fix",
],
rules: {
"@typescript-eslint/no-use-before-define": ["error"],
camelcase: "off",
"no-explicit-any": "off",
"no-use-before-define": "off",
semi: ["error", "always"],
"simple-import-sort/sort": "error",
"sort-destructure-keys/sort-destructure-keys": [
2,
{ caseSensitive: false },
],
"sort-keys": [
"error",
"asc",
{ caseSensitive: true, minKeys: 2, natural: false },
],
"sort-keys-fix/sort-keys-fix": "warn",
},
settings: {
"import/resolver": {
typescript: {},
},
},
};