forked from bojanbass/nx-aws
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
60 lines (60 loc) · 1.75 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
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"project": "./tsconfig.*?.json"
},
"ignorePatterns": ["**/*"],
"plugins": ["@typescript-eslint", "@nrwl/nx", "import"],
"extends": [
"eslint:all",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"prettier",
"prettier/@typescript-eslint"
],
"rules": {
"@typescript-eslint/explicit-member-accessibility": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-parameter-properties": "off",
"@nrwl/nx/enforce-module-boundaries": [
"error",
{
"enforceBuildableLibDependency": true,
"allow": [],
"depConstraints": [{ "sourceTag": "*", "onlyDependOnLibsWithTags": ["*"] }]
}
],
"class-methods-use-this": "off",
"func-style": ["error", "declaration", { "allowArrowFunctions": true }],
"lines-between-class-members": ["error", "always", { "exceptAfterSingleLine": true }],
"max-statements": ["error", 20],
"no-magic-numbers": ["error", { "ignore": [-1, 0, 1] }],
"no-ternary": "off",
"sort-imports": "off",
"sort-keys": "off",
"sort-vars": "off",
"function-call-argument-newline": "off",
"init-declarations": "off",
"import/no-internal-modules": [
"error",
{
"allow": ["@nrwl/workspace/**", "@angular-devkit/**"]
}
],
"import/no-unresolved": "off"
},
"overrides": [
{
"files": ["*.tsx"],
"rules": {
"@typescript-eslint/no-unused-vars": "off"
}
}
]
}