-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
89 lines (89 loc) · 3.13 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
{
"root": true,
"ignorePatterns": ["**/*"],
"plugins": ["@nrwl/nx", "import", "prettier"],
"parserOptions": {
"project": "./tsconfig.base.json"
},
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {
"@nrwl/nx/enforce-module-boundaries": [
"error",
{
"enforceBuildableLibDependency": true,
"allow": [],
"depConstraints": [
{
"sourceTag": "*",
"onlyDependOnLibsWithTags": ["*"]
}
]
}
]
}
},
{
"files": ["*.ts", "*.tsx"],
"extends": ["plugin:@nrwl/nx/typescript", "plugin:import/typescript", "prettier"],
"rules": {
"@typescript-eslint/await-thenable": "error",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-member-accessibility": "off",
"@typescript-eslint/indent": "off",
"@typescript-eslint/interface-name-prefix": "off",
"@typescript-eslint/member-delimiter-style": "off",
"@typescript-eslint/member-ordering": "error",
"@typescript-eslint/no-confusing-non-null-assertion": "error",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/no-extra-non-null-assertion": "error",
"@typescript-eslint/no-floating-promises": ["error", { "ignoreVoid": true }],
"@typescript-eslint/no-non-null-assertion": "error",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/semi": ["error", "never"],
"@typescript-eslint/switch-exhaustiveness-check": "error",
"import/no-unresolved": "off",
"import/order": ["error", {
"newlines-between": "always",
"groups": ["builtin", "external", "internal", ["parent", "sibling", "index"]],
"alphabetize": { "order": "asc" },
"pathGroups": [
{
"pattern": "@fleex/**",
"position": "before",
"group": "internal"
}
],
"pathGroupsExcludedImportTypes": ["builtin"]
}],
"key-spacing": "error",
"keyword-spacing": "error",
"lines-between-class-members": "error",
"newline-per-chained-call": "off",
"no-dupe-keys": "error",
"no-else-return": "error",
"no-implicit-coercion": "error",
"no-invalid-this": "error",
"no-lonely-if": "error",
"no-multi-spaces": "error",
"no-return-await": "error",
"no-trailing-spaces": "error",
"no-useless-return": "error",
"no-unneeded-ternary": "error",
"prefer-arrow-callback": ["error"],
"prefer-const": "error",
"prettier/prettier": "error"
}
},
{
"files": ["*.js", "*.jsx"],
"extends": ["plugin:@nrwl/nx/javascript"],
"rules": {}
}
]
}