Skip to content

Commit 6562f34

Browse files
committed
chore: add import sort lint rule
1 parent 02f12d9 commit 6562f34

File tree

4 files changed

+20
-7
lines changed

4 files changed

+20
-7
lines changed

.eslintrc.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"root": true,
33
"ignorePatterns": ["**/*"],
4-
"plugins": ["@nrwl/nx"],
4+
"plugins": ["@nrwl/nx", "simple-import-sort"],
55
"overrides": [
66
{
77
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
@@ -27,7 +27,9 @@
2727
"@typescript-eslint/no-unused-vars": ["warn"],
2828
"no-loss-of-precision": "off",
2929
"no-prototype-builtins": "off",
30-
"no-unused-vars": "off"
30+
"no-unused-vars": "off",
31+
"simple-import-sort/imports": "off",
32+
"simple-import-sort/exports": "off"
3133
}
3234
},
3335
{

apps/picsa-tools/budget-tool/.eslintrc.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
{
22
"extends": ["../../../.eslintrc.json"],
33
"ignorePatterns": ["!**/*"],
4+
45
"overrides": [
56
{
67
"files": ["*.ts"],
7-
"extends": [
8-
"plugin:@nrwl/nx/angular",
9-
"plugin:@angular-eslint/template/process-inline-templates"
10-
],
8+
"extends": ["plugin:@nrwl/nx/angular", "plugin:@angular-eslint/template/process-inline-templates"],
119
"rules": {
1210
"@angular-eslint/directive-selector": [
1311
"warn",
@@ -25,7 +23,9 @@
2523
"style": "kebab-case"
2624
}
2725
],
28-
"@angular-eslint/component-class-suffix": ["warn"]
26+
"@angular-eslint/component-class-suffix": ["warn"],
27+
"simple-import-sort/imports": "warn",
28+
"simple-import-sort/exports": "warn"
2929
}
3030
},
3131
{

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@
132132
"eslint": "8.15.0",
133133
"eslint-config-prettier": "8.1.0",
134134
"eslint-plugin-cypress": "^2.10.3",
135+
"eslint-plugin-simple-import-sort": "^10.0.0",
135136
"execa": "^5.1.1",
136137
"fs-extra": "^10.1.0",
137138
"husky": "^8.0.0",

yarn.lock

+10
Original file line numberDiff line numberDiff line change
@@ -11259,6 +11259,15 @@ __metadata:
1125911259
languageName: node
1126011260
linkType: hard
1126111261

11262+
"eslint-plugin-simple-import-sort@npm:^10.0.0":
11263+
version: 10.0.0
11264+
resolution: "eslint-plugin-simple-import-sort@npm:10.0.0"
11265+
peerDependencies:
11266+
eslint: ">=5.0.0"
11267+
checksum: 23221ff63f80f9c52da807d388ee8a51bc36a3b73345f60ec886e7973c28d75eb1d1e47f7f2916a7c1f94a1b5037b1450356a64a8fbd58096fd6bee57c6e3e48
11268+
languageName: node
11269+
linkType: hard
11270+
1126211271
"eslint-scope@npm:5.1.1, eslint-scope@npm:^5.1.1":
1126311272
version: 5.1.1
1126411273
resolution: "eslint-scope@npm:5.1.1"
@@ -16358,6 +16367,7 @@ __metadata:
1635816367
eslint: 8.15.0
1635916368
eslint-config-prettier: 8.1.0
1636016369
eslint-plugin-cypress: ^2.10.3
16370+
eslint-plugin-simple-import-sort: ^10.0.0
1636116371
execa: ^5.1.1
1636216372
firebase: ^9.16.0
1636316373
fs-extra: ^10.1.0

0 commit comments

Comments
 (0)