Skip to content

Commit 71980ef

Browse files
committed
refactor(common): CHECKOUT-4485 Fix inconsistency in import statements by using eslint-plugin-import plugin
1 parent 1dacd01 commit 71980ef

File tree

82 files changed

+982
-148
lines changed

Some content is hidden

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

82 files changed

+982
-148
lines changed

.eslintrc.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"extends": [
3+
"plugin:import/errors",
4+
"plugin:import/typescript",
5+
"plugin:import/warnings"
6+
],
7+
"env": {
8+
"browser": true
9+
},
10+
"parser": "@typescript-eslint/parser",
11+
"parserOptions": {
12+
"project": "./tsconfig.json",
13+
"ecmaFeatures": {
14+
"modules": true
15+
},
16+
"ecmaVersion": 6,
17+
"sourceType": "module"
18+
},
19+
"plugins": [
20+
"@typescript-eslint/tslint"
21+
],
22+
"rules": {
23+
"@typescript-eslint/tslint/config": [
24+
"error",
25+
{
26+
"lintFile": "./tslint.json"
27+
}
28+
],
29+
"import/no-internal-modules": [
30+
"error",
31+
{
32+
"allow": [
33+
"**/*.{mock,scss}",
34+
"**/index.ts",
35+
"rxjs/**"
36+
]
37+
}
38+
]
39+
}
40+
}

0 commit comments

Comments
 (0)