forked from alexduf/gnome-github-notifications
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc.json
85 lines (85 loc) · 2.61 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
{
"env": {
"es2022": true
},
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:@typescript-eslint/strict",
"plugin:import/typescript",
"prettier"
],
"overrides": [
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2022,
"project": ["tsconfig.json", "src/test/tsconfig.json"]
},
"plugins": [
"@typescript-eslint",
"import",
"prettier"
],
"settings": {
"import/resolver": {
"typescript": true,
"node": true
}
},
"rules": {
"prettier/prettier": "warn",
"eqeqeq": "error",
"no-eq-null": "error",
"sort-imports": [ "warn", {
"ignoreDeclarationSort": true
}],
"import/no-deprecated": "error",
"import/first": "warn",
"import/order": [ "warn", {
"groups": [ "builtin", "external", "internal", "sibling", "parent", "index" ],
"newlines-between": "always",
"alphabetize": {
"order": "asc"
},
"pathGroups": [
{
"pattern": "@github-manager/**",
"group": "internal"
},
{
"pattern": "@test-suite/**",
"group": "internal"
},
{
"pattern": "@girs/**",
"group": "external"
}
]
}],
"prefer-arrow-callback": "error",
"@typescript-eslint/explicit-function-return-type": [ "error", { "allowExpressions": true } ],
"@typescript-eslint/typedef": [ "warn", {
"memberVariableDeclaration": true,
"parameter": true,
"propertyDeclaration": true
}],
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/explicit-member-accessibility": "error",
"@typescript-eslint/strict-boolean-expressions": [ "error", {
"allowString": false,
"allowNumber": false,
"allowNullableObject": false,
"allowNullableBoolean": false,
"allowNullableString": false,
"allowNullableNumber": false,
"allowNullableEnum": false,
"allowAny": false
}],
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [ "error", {
"argsIgnorePattern": "^_"
}]
},
"ignorePatterns": ["src/test/stubs/**/*.ts"]
}