Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit a9383fa

Browse files
authoredApr 15, 2021
chore: migrate tslint to eslint (#199)
1 parent 0af6018 commit a9383fa

File tree

92 files changed

+554
-664
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+554
-664
lines changed
 

‎.eslintrc.json

Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
{
2+
"root": true,
3+
"ignorePatterns": ["**/*"],
4+
"plugins": ["@nrwl/nx"],
5+
"overrides": [
6+
{
7+
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
8+
"parserOptions": {
9+
"project": ["/tsconfig.*?.json"]
10+
},
11+
"rules": {
12+
"@nrwl/nx/enforce-module-boundaries": [
13+
"error",
14+
{
15+
"enforceBuildableLibDependency": true,
16+
"allow": [],
17+
"depConstraints": [
18+
{
19+
"sourceTag": "*",
20+
"onlyDependOnLibsWithTags": ["*"]
21+
}
22+
]
23+
}
24+
]
25+
}
26+
},
27+
{
28+
"files": ["*.ts", "*.tsx"],
29+
"extends": ["plugin:@nrwl/nx/typescript"],
30+
"rules": {}
31+
},
32+
{
33+
"files": ["*.js", "*.jsx"],
34+
"extends": ["plugin:@nrwl/nx/javascript"],
35+
"rules": {}
36+
},
37+
{
38+
"files": ["*.ts"],
39+
"rules": {
40+
"@typescript-eslint/consistent-type-definitions": "error",
41+
"@typescript-eslint/dot-notation": "off",
42+
"@typescript-eslint/naming-convention": "error",
43+
"@typescript-eslint/no-shadow": [
44+
"error",
45+
{
46+
"hoist": "all"
47+
}
48+
],
49+
"@typescript-eslint/no-unused-expressions": "error",
50+
"@typescript-eslint/prefer-function-type": "error",
51+
"@typescript-eslint/quotes": ["error", "single"],
52+
"@typescript-eslint/type-annotation-spacing": "error",
53+
"@typescript-eslint/no-explicit-any": "off",
54+
"arrow-body-style": "error",
55+
"brace-style": ["error", "1tbs"],
56+
"curly": "error",
57+
"eol-last": "error",
58+
"eqeqeq": ["error", "smart"],
59+
"guard-for-in": "error",
60+
"id-blacklist": "off",
61+
"id-match": "off",
62+
"import/no-deprecated": "warn",
63+
"no-bitwise": "error",
64+
"no-caller": "error",
65+
"no-console": [
66+
"error",
67+
{
68+
"allow": [
69+
"log",
70+
"warn",
71+
"dir",
72+
"timeLog",
73+
"assert",
74+
"clear",
75+
"count",
76+
"countReset",
77+
"group",
78+
"groupEnd",
79+
"table",
80+
"dirxml",
81+
"error",
82+
"groupCollapsed",
83+
"Console",
84+
"profile",
85+
"profileEnd",
86+
"timeStamp",
87+
"context"
88+
]
89+
}
90+
],
91+
"no-empty": "off",
92+
"no-eval": "error",
93+
"no-new-wrappers": "error",
94+
"no-throw-literal": "error",
95+
"no-undef-init": "error",
96+
"no-underscore-dangle": "off",
97+
"radix": "error",
98+
"spaced-comment": [
99+
"error",
100+
"always",
101+
{
102+
"markers": ["/"]
103+
}
104+
]
105+
},
106+
"plugins": ["eslint-plugin-import", "@angular-eslint/eslint-plugin", "@typescript-eslint"]
107+
},
108+
{
109+
"files": ["*.html"],
110+
"rules": {}
111+
}
112+
]
113+
}

‎.prettierignore

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# NPM Files
2+
package-lock.json
3+
migrations.json
4+
5+
CHANGELOG.md
6+
7+
#Ignore specific file types
8+
*.svg
9+
*.xml
10+
*.png
11+
*.jpg
12+
13+
# compiled output
14+
/dist
15+
/tmp
16+
/out-tsc
17+
# dependencies
18+
/node_modules
19+
20+
# IDEs and editors
21+
/.idea
22+
.project
23+
.classpath
24+
.c9/
25+
*.launch
26+
.settings/
27+
*.sublime-workspace
28+
29+
# IDE - VSCode
30+
.vscode/*
31+
!.vscode/cSpell.json
32+
!.vscode/settings.json
33+
!.vscode/tasks.json
34+
!.vscode/launch.json
35+
!.vscode/extensions.json
36+
37+
# misc
38+
/.sass-cache
39+
/connect.lock
40+
/coverage
41+
/libpeerconnection.log
42+
npm-debug.log
43+
testem.log
44+
/typings
45+
deployment.yaml
46+
47+
# e2e
48+
/*e2e/*.js
49+
/*e2e/*.map
50+
51+
# System Files
52+
.DS_Store
53+
Thumbs.db

0 commit comments

Comments
 (0)
Please sign in to comment.