-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc
71 lines (71 loc) · 2.81 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
59
60
61
62
63
64
65
66
67
68
69
70
71
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2022,
"sourceType": "module",
"warnOnUnsupportedTypeScriptVersion": true
},
"env": { "node": true },
"plugins": ["prettier", "@typescript-eslint"],
"extends": ["airbnb-base", "prettier"],
"rules": {
"prettier/prettier": "error",
"curly": ["error", "all"],
"import/extensions": ["error", { "js": "never", "ts": "never", "json": "always", "graphql": "always" }],
"import/order": [
"error",
{
"alphabetize": { "order": "asc" },
"pathGroups": [
{
"pattern": "*.{css,gif,jpeg,png,scss,svg}",
"patternOptions": { "matchBase": true },
"group": "index",
"position": "after"
}
]
}
],
"import/prefer-default-export": ["warn"],
"max-len": ["warn", 120],
"no-console": ["error", { "allow": ["warn", "error", "info"] }],
"no-continue": "off",
"no-plusplus": "off",
"object-curly-newline": "off",
"no-underscore-dangle": "off",
"class-methods-use-this": "off",
"no-multiple-empty-lines": ["error", { "max": 1, "maxBOF": 0, "maxEOF": 0 }],
"no-restricted-syntax": ["error", "ForInStatement", "LabeledStatement", "WithStatement"],
"padding-line-between-statements": ["error", { "blankLine": "always", "prev": "*", "next": "return" }],
"yoda": ["error", "never", { "onlyEquality": true }],
"import/no-extraneous-dependencies": ["error", { "devDependencies": true }],
"@typescript-eslint/no-inferrable-types": "off",
"default-case": "off",
"no-dupe-class-members": "off",
"no-undef": "off",
"no-shadow": "off",
"@typescript-eslint/consistent-type-assertions": "warn",
"no-array-constructor": "off",
"@typescript-eslint/no-array-constructor": "warn",
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": [
"warn",
{ "functions": false, "classes": false, "variables": false, "typedefs": false }
],
"no-unused-expressions": "off",
"@typescript-eslint/no-unused-expressions": [
"error",
{ "allowShortCircuit": true, "allowTernary": true, "allowTaggedTemplates": true }
],
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["warn", { "args": "none", "ignoreRestSiblings": true }],
"no-useless-constructor": "off",
"@typescript-eslint/no-useless-constructor": "warn"
},
"settings": {
"import/resolver": {
"typescript": {}
}
}
}