@commencis/eslint-config 1.4.0 → 1.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +23 -0
- package/dist/configs/base.js +4 -6
- package/dist/configs/next.js +4 -6
- package/dist/configs/react-native.js +4 -6
- package/dist/configs/react.js +4 -6
- package/dist/configs/vue.js +4 -6
- package/dist/index.js +4 -6
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @commencis/eslint-config
|
|
2
2
|
|
|
3
|
+
## 1.4.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- improve import sorts for common directories ([#126](https://github.com/Commencis/js-toolkit/pull/126))
|
|
8
|
+
|
|
9
|
+
- update dependency: @next/eslint-plugin-next@15.0.3 ([#129](https://github.com/Commencis/js-toolkit/pull/129))
|
|
10
|
+
|
|
11
|
+
## 1.4.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- update dependency: globals@15.12.0 ([#121](https://github.com/Commencis/js-toolkit/pull/121))
|
|
16
|
+
|
|
17
|
+
- update dependency: @commencis/eslint-config@1.4.0 ([#120](https://github.com/Commencis/js-toolkit/pull/120))
|
|
18
|
+
|
|
19
|
+
- fix: imports, grouping and lint issues ([#120](https://github.com/Commencis/js-toolkit/pull/120))
|
|
20
|
+
|
|
21
|
+
- update dependency: typescript-eslint@8.13.0 ([#124](https://github.com/Commencis/js-toolkit/pull/124))
|
|
22
|
+
|
|
23
|
+
- update import sort of common directories: ([#125](https://github.com/Commencis/js-toolkit/pull/125))
|
|
24
|
+
`config`, `types`, `interfaces`, `constants`, `helpers`, `utils`, `lib`
|
|
25
|
+
|
|
3
26
|
## 1.4.0
|
|
4
27
|
|
|
5
28
|
### Minor Changes
|
package/dist/configs/base.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// src/configs/base.ts
|
|
2
|
-
import globals from "globals";
|
|
3
2
|
import eslint from "@eslint/js";
|
|
3
|
+
import globals from "globals";
|
|
4
4
|
|
|
5
5
|
// src/plugins/importSortPlugin.ts
|
|
6
6
|
import simpleImportSortPlugin from "eslint-plugin-simple-import-sort";
|
|
@@ -15,7 +15,7 @@ var importSortRules = {
|
|
|
15
15
|
["^\\u0000"],
|
|
16
16
|
// Main frameworks & libraries
|
|
17
17
|
[
|
|
18
|
-
"^react",
|
|
18
|
+
"^(react(-native|-dom)?(/.*)?)$",
|
|
19
19
|
"^next",
|
|
20
20
|
"^vue",
|
|
21
21
|
"^nuxt",
|
|
@@ -26,13 +26,11 @@ var importSortRules = {
|
|
|
26
26
|
// External packages
|
|
27
27
|
["^@commencis", "^@?\\w"],
|
|
28
28
|
// Internal common directories
|
|
29
|
-
[
|
|
30
|
-
"^@?/?(configs(s?)|types(s?)|constants(s?)|helpers(s?)|utils(s?)|lib(s?)|providers(s?))(/.*|$)"
|
|
31
|
-
],
|
|
29
|
+
["^@?/?(config|types|interfaces|constants|helpers|utils|lib)(/.*|$)"],
|
|
32
30
|
// Internal directories
|
|
33
31
|
["^@/"],
|
|
34
32
|
// Components
|
|
35
|
-
["((.*)/)?(layouts|pages|modules|features|components)
|
|
33
|
+
["((.*)/)?(providers|layouts|pages|modules|features|components)/?"],
|
|
36
34
|
// Relative parent imports: '../' comes last
|
|
37
35
|
["^\\.\\.(?!/?$)", "^\\.\\./?$"],
|
|
38
36
|
// Relative imports: './' comes last
|
package/dist/configs/next.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// src/configs/base.ts
|
|
2
|
-
import globals from "globals";
|
|
3
2
|
import eslint from "@eslint/js";
|
|
3
|
+
import globals from "globals";
|
|
4
4
|
|
|
5
5
|
// src/plugins/importSortPlugin.ts
|
|
6
6
|
import simpleImportSortPlugin from "eslint-plugin-simple-import-sort";
|
|
@@ -15,7 +15,7 @@ var importSortRules = {
|
|
|
15
15
|
["^\\u0000"],
|
|
16
16
|
// Main frameworks & libraries
|
|
17
17
|
[
|
|
18
|
-
"^react",
|
|
18
|
+
"^(react(-native|-dom)?(/.*)?)$",
|
|
19
19
|
"^next",
|
|
20
20
|
"^vue",
|
|
21
21
|
"^nuxt",
|
|
@@ -26,13 +26,11 @@ var importSortRules = {
|
|
|
26
26
|
// External packages
|
|
27
27
|
["^@commencis", "^@?\\w"],
|
|
28
28
|
// Internal common directories
|
|
29
|
-
[
|
|
30
|
-
"^@?/?(configs(s?)|types(s?)|constants(s?)|helpers(s?)|utils(s?)|lib(s?)|providers(s?))(/.*|$)"
|
|
31
|
-
],
|
|
29
|
+
["^@?/?(config|types|interfaces|constants|helpers|utils|lib)(/.*|$)"],
|
|
32
30
|
// Internal directories
|
|
33
31
|
["^@/"],
|
|
34
32
|
// Components
|
|
35
|
-
["((.*)/)?(layouts|pages|modules|features|components)
|
|
33
|
+
["((.*)/)?(providers|layouts|pages|modules|features|components)/?"],
|
|
36
34
|
// Relative parent imports: '../' comes last
|
|
37
35
|
["^\\.\\.(?!/?$)", "^\\.\\./?$"],
|
|
38
36
|
// Relative imports: './' comes last
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// src/configs/base.ts
|
|
2
|
-
import globals from "globals";
|
|
3
2
|
import eslint from "@eslint/js";
|
|
3
|
+
import globals from "globals";
|
|
4
4
|
|
|
5
5
|
// src/plugins/importSortPlugin.ts
|
|
6
6
|
import simpleImportSortPlugin from "eslint-plugin-simple-import-sort";
|
|
@@ -15,7 +15,7 @@ var importSortRules = {
|
|
|
15
15
|
["^\\u0000"],
|
|
16
16
|
// Main frameworks & libraries
|
|
17
17
|
[
|
|
18
|
-
"^react",
|
|
18
|
+
"^(react(-native|-dom)?(/.*)?)$",
|
|
19
19
|
"^next",
|
|
20
20
|
"^vue",
|
|
21
21
|
"^nuxt",
|
|
@@ -26,13 +26,11 @@ var importSortRules = {
|
|
|
26
26
|
// External packages
|
|
27
27
|
["^@commencis", "^@?\\w"],
|
|
28
28
|
// Internal common directories
|
|
29
|
-
[
|
|
30
|
-
"^@?/?(configs(s?)|types(s?)|constants(s?)|helpers(s?)|utils(s?)|lib(s?)|providers(s?))(/.*|$)"
|
|
31
|
-
],
|
|
29
|
+
["^@?/?(config|types|interfaces|constants|helpers|utils|lib)(/.*|$)"],
|
|
32
30
|
// Internal directories
|
|
33
31
|
["^@/"],
|
|
34
32
|
// Components
|
|
35
|
-
["((.*)/)?(layouts|pages|modules|features|components)
|
|
33
|
+
["((.*)/)?(providers|layouts|pages|modules|features|components)/?"],
|
|
36
34
|
// Relative parent imports: '../' comes last
|
|
37
35
|
["^\\.\\.(?!/?$)", "^\\.\\./?$"],
|
|
38
36
|
// Relative imports: './' comes last
|
package/dist/configs/react.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// src/configs/base.ts
|
|
2
|
-
import globals from "globals";
|
|
3
2
|
import eslint from "@eslint/js";
|
|
3
|
+
import globals from "globals";
|
|
4
4
|
|
|
5
5
|
// src/plugins/importSortPlugin.ts
|
|
6
6
|
import simpleImportSortPlugin from "eslint-plugin-simple-import-sort";
|
|
@@ -15,7 +15,7 @@ var importSortRules = {
|
|
|
15
15
|
["^\\u0000"],
|
|
16
16
|
// Main frameworks & libraries
|
|
17
17
|
[
|
|
18
|
-
"^react",
|
|
18
|
+
"^(react(-native|-dom)?(/.*)?)$",
|
|
19
19
|
"^next",
|
|
20
20
|
"^vue",
|
|
21
21
|
"^nuxt",
|
|
@@ -26,13 +26,11 @@ var importSortRules = {
|
|
|
26
26
|
// External packages
|
|
27
27
|
["^@commencis", "^@?\\w"],
|
|
28
28
|
// Internal common directories
|
|
29
|
-
[
|
|
30
|
-
"^@?/?(configs(s?)|types(s?)|constants(s?)|helpers(s?)|utils(s?)|lib(s?)|providers(s?))(/.*|$)"
|
|
31
|
-
],
|
|
29
|
+
["^@?/?(config|types|interfaces|constants|helpers|utils|lib)(/.*|$)"],
|
|
32
30
|
// Internal directories
|
|
33
31
|
["^@/"],
|
|
34
32
|
// Components
|
|
35
|
-
["((.*)/)?(layouts|pages|modules|features|components)
|
|
33
|
+
["((.*)/)?(providers|layouts|pages|modules|features|components)/?"],
|
|
36
34
|
// Relative parent imports: '../' comes last
|
|
37
35
|
["^\\.\\.(?!/?$)", "^\\.\\./?$"],
|
|
38
36
|
// Relative imports: './' comes last
|
package/dist/configs/vue.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import tseslint2 from "typescript-eslint";
|
|
3
3
|
|
|
4
4
|
// src/configs/base.ts
|
|
5
|
-
import globals from "globals";
|
|
6
5
|
import eslint from "@eslint/js";
|
|
6
|
+
import globals from "globals";
|
|
7
7
|
|
|
8
8
|
// src/plugins/importSortPlugin.ts
|
|
9
9
|
import simpleImportSortPlugin from "eslint-plugin-simple-import-sort";
|
|
@@ -18,7 +18,7 @@ var importSortRules = {
|
|
|
18
18
|
["^\\u0000"],
|
|
19
19
|
// Main frameworks & libraries
|
|
20
20
|
[
|
|
21
|
-
"^react",
|
|
21
|
+
"^(react(-native|-dom)?(/.*)?)$",
|
|
22
22
|
"^next",
|
|
23
23
|
"^vue",
|
|
24
24
|
"^nuxt",
|
|
@@ -29,13 +29,11 @@ var importSortRules = {
|
|
|
29
29
|
// External packages
|
|
30
30
|
["^@commencis", "^@?\\w"],
|
|
31
31
|
// Internal common directories
|
|
32
|
-
[
|
|
33
|
-
"^@?/?(configs(s?)|types(s?)|constants(s?)|helpers(s?)|utils(s?)|lib(s?)|providers(s?))(/.*|$)"
|
|
34
|
-
],
|
|
32
|
+
["^@?/?(config|types|interfaces|constants|helpers|utils|lib)(/.*|$)"],
|
|
35
33
|
// Internal directories
|
|
36
34
|
["^@/"],
|
|
37
35
|
// Components
|
|
38
|
-
["((.*)/)?(layouts|pages|modules|features|components)
|
|
36
|
+
["((.*)/)?(providers|layouts|pages|modules|features|components)/?"],
|
|
39
37
|
// Relative parent imports: '../' comes last
|
|
40
38
|
["^\\.\\.(?!/?$)", "^\\.\\./?$"],
|
|
41
39
|
// Relative imports: './' comes last
|
package/dist/index.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import tseslint3 from "typescript-eslint";
|
|
3
3
|
|
|
4
4
|
// src/configs/base.ts
|
|
5
|
-
import globals from "globals";
|
|
6
5
|
import eslint from "@eslint/js";
|
|
6
|
+
import globals from "globals";
|
|
7
7
|
|
|
8
8
|
// src/plugins/importSortPlugin.ts
|
|
9
9
|
import simpleImportSortPlugin from "eslint-plugin-simple-import-sort";
|
|
@@ -18,7 +18,7 @@ var importSortRules = {
|
|
|
18
18
|
["^\\u0000"],
|
|
19
19
|
// Main frameworks & libraries
|
|
20
20
|
[
|
|
21
|
-
"^react",
|
|
21
|
+
"^(react(-native|-dom)?(/.*)?)$",
|
|
22
22
|
"^next",
|
|
23
23
|
"^vue",
|
|
24
24
|
"^nuxt",
|
|
@@ -29,13 +29,11 @@ var importSortRules = {
|
|
|
29
29
|
// External packages
|
|
30
30
|
["^@commencis", "^@?\\w"],
|
|
31
31
|
// Internal common directories
|
|
32
|
-
[
|
|
33
|
-
"^@?/?(configs(s?)|types(s?)|constants(s?)|helpers(s?)|utils(s?)|lib(s?)|providers(s?))(/.*|$)"
|
|
34
|
-
],
|
|
32
|
+
["^@?/?(config|types|interfaces|constants|helpers|utils|lib)(/.*|$)"],
|
|
35
33
|
// Internal directories
|
|
36
34
|
["^@/"],
|
|
37
35
|
// Components
|
|
38
|
-
["((.*)/)?(layouts|pages|modules|features|components)
|
|
36
|
+
["((.*)/)?(providers|layouts|pages|modules|features|components)/?"],
|
|
39
37
|
// Relative parent imports: '../' comes last
|
|
40
38
|
["^\\.\\.(?!/?$)", "^\\.\\./?$"],
|
|
41
39
|
// Relative imports: './' comes last
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commencis/eslint-config",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.2",
|
|
4
4
|
"description": "Commencis ESLint config",
|
|
5
5
|
"author": "Commencis WEB Team",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -59,8 +59,8 @@
|
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
61
|
"@eslint/js": "9.14.0",
|
|
62
|
-
"@next/eslint-plugin-next": "15.0.
|
|
63
|
-
"@typescript-eslint/utils": "8.
|
|
62
|
+
"@next/eslint-plugin-next": "15.0.3",
|
|
63
|
+
"@typescript-eslint/utils": "8.13.0",
|
|
64
64
|
"eslint-config-prettier": "9.1.0",
|
|
65
65
|
"eslint-plugin-jsx-a11y": "6.10.2",
|
|
66
66
|
"eslint-plugin-prettier": "5.2.1",
|
|
@@ -68,8 +68,8 @@
|
|
|
68
68
|
"eslint-plugin-react-hooks": "5.0.0",
|
|
69
69
|
"eslint-plugin-simple-import-sort": "12.1.1",
|
|
70
70
|
"eslint-plugin-vue": "9.30.0",
|
|
71
|
-
"globals": "15.
|
|
72
|
-
"typescript-eslint": "8.
|
|
71
|
+
"globals": "15.12.0",
|
|
72
|
+
"typescript-eslint": "8.13.0"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
75
|
"@types/eslint__js": "8.42.3",
|