forked from biosimulations/biosimulations
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
96 lines (95 loc) · 2.71 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
90
91
92
93
94
95
96
{
"root": true,
"ignorePatterns": ["**/*"],
"parser": "@typescript-eslint/parser",
"plugins": ["@nrwl/nx", "unused-imports", "promise", "@typescript-eslint"],
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
"settings": {
"import/resolver": {
"typescript": {}
}
},
"overrides": [
{
"files": ["*.component.html"],
"parser": "@angular-eslint/template-parser",
"parserOptions": {
"project": "./tsconfig.app.json",
"ecmaVersion": 2020,
"sourceType": "module"
},
"plugins": ["@angular-eslint/template"]
},
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {
"@nrwl/nx/enforce-module-boundaries": [
"error",
{
"enforceBuildableLibDependency": true,
"allow": [],
"depConstraints": [
{
"sourceTag": "platform:web",
"onlyDependOnLibsWithTags": ["platform:web", "platform:any"]
},
{
"sourceTag": "platform:server",
"onlyDependOnLibsWithTags": ["platform:server", "platform:any"]
},
{
"sourceTag": "scope:shared",
"onlyDependOnLibsWithTags": ["scope:shared", "scope:config"]
},
{
"sourceTag": "*",
"onlyDependOnLibsWithTags": ["*"]
}
]
}
]
}
},
{
"files": ["*.ts", "*.tsx"],
"extends": [
"plugin:@nrwl/nx/typescript",
"prettier",
"plugin:promise/recommended",
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"@typescript-eslint/explicit-member-accessibility": "warn",
"@typescript-eslint/explicit-function-return-type": "warn",
"@typescript-eslint/no-parameter-properties": "off",
"@typescript-eslint/no-empty-function": "warn",
"@typescript-eslint/no-inferrable-types": "warn",
"@typescript-eslint/interface-name-prefix": "off",
"@typescript-eslint/member-ordering": "warn",
"max-len": [
"warn",
{
"code": 125
}
],
"@typescript-eslint/no-unused-vars": "off",
"unused-imports/no-unused-imports-ts": "error",
"unused-imports/no-unused-vars-ts": [
"warn",
{
"vars": "all",
"varsIgnorePattern": "^_",
"args": "after-used",
"argsIgnorePattern": "^_"
}
]
}
},
{
"files": ["*.js", "*.jsx"],
"extends": ["plugin:@nrwl/nx/javascript"],
"rules": {}
}
]
}