-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
65 lines (65 loc) · 2.1 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
{
"env": {
"node": true,
"jest": true
},
"extends": [
"airbnb-typescript",
"airbnb-base",
"plugin:security/recommended"
],
"ignorePatterns": [
"build/*",
"bin/"
],
"parserOptions": {
"ecmaVersion": 2021,
"project": "./tsconfig.json"
},
"plugins": [
"security",
"sort-imports-es6-autofix",
"eslint-plugin-jest"
],
"rules": {
"@typescript-eslint/lines-between-class-members": ["error", "always", { "exceptAfterSingleLine": true }],
"@typescript-eslint/naming-convention": ["warn", { "format": ["camelCase", "PascalCase", "UPPER_CASE"], "selector": "variable" }],
"@typescript-eslint/no-unused-vars": ["error"],
"@typescript-eslint/no-use-before-define": ["error"],
"camelcase": "off",
"comma-dangle": "off",
"comma-spacing": ["error", { "after": true, "before": false }],
"consistent-return": "off",
"func-names": "off",
"import/extensions": ["error", "ignorePackages", { "": "never", "js": "never", "mjs": "never", "ts": "never" }],
"import/order": "off",
"import/prefer-default-export": "off",
"jest/expect-expect": "off",
"max-len": ["error", { "code": 160, "ignoreComments": true, "ignoreStrings": true, "ignoreTemplateLiterals": true }],
"multiline-ternary": "off",
"no-console": "off",
"no-param-reassign": "off",
"no-underscore-dangle": "off",
"no-unused-vars": "off",
"no-use-before-define": "off",
"react/jsx-filename-extension": "off",
"security/detect-object-injection": "off",
"semi": [2, "always"],
"sort-imports-es6-autofix/sort-imports-es6": [2, { "ignoreCase": false, "ignoreMemberSort": false, "memberSyntaxSortOrder": ["none", "all", "multiple", "single"] }],
"space-before-function-paren": "off",
"import/no-extraneous-dependencies": ["error", {"devDependencies": true, "optionalDependencies": false, "peerDependencies": false}]
},
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".ts"]
},
"alias": {
"map": [
["@", "./src"]
],
"extensions": [".js", ".ts"]
}
}
}
}