@commencis/eslint-config 1.3.0 → 1.4.1
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 +21 -0
- package/dist/configs/base.js +10 -11
- package/dist/configs/next.js +10 -11
- package/dist/configs/react-native.js +10 -11
- package/dist/configs/react.js +10 -11
- package/dist/configs/vue.js +10 -11
- package/dist/index.js +10 -11
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @commencis/eslint-config
|
|
2
2
|
|
|
3
|
+
## 1.4.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- update dependency: globals@15.12.0 ([#121](https://github.com/Commencis/js-toolkit/pull/121))
|
|
8
|
+
|
|
9
|
+
- update dependency: @commencis/eslint-config@1.4.0 ([#120](https://github.com/Commencis/js-toolkit/pull/120))
|
|
10
|
+
|
|
11
|
+
- fix: imports, grouping and lint issues ([#120](https://github.com/Commencis/js-toolkit/pull/120))
|
|
12
|
+
|
|
13
|
+
- update dependency: typescript-eslint@8.13.0 ([#124](https://github.com/Commencis/js-toolkit/pull/124))
|
|
14
|
+
|
|
15
|
+
- update import sort of common directories: ([#125](https://github.com/Commencis/js-toolkit/pull/125))
|
|
16
|
+
`config`, `types`, `interfaces`, `constants`, `helpers`, `utils`, `lib`
|
|
17
|
+
|
|
18
|
+
## 1.4.0
|
|
19
|
+
|
|
20
|
+
### Minor Changes
|
|
21
|
+
|
|
22
|
+
- re-arrange import groups ([#118](https://github.com/Commencis/js-toolkit/pull/118))
|
|
23
|
+
|
|
3
24
|
## 1.3.0
|
|
4
25
|
|
|
5
26
|
### 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";
|
|
@@ -11,7 +11,7 @@ var importSortRules = {
|
|
|
11
11
|
"error",
|
|
12
12
|
{
|
|
13
13
|
groups: [
|
|
14
|
-
// Side
|
|
14
|
+
// Side effects
|
|
15
15
|
["^\\u0000"],
|
|
16
16
|
// Main frameworks & libraries
|
|
17
17
|
[
|
|
@@ -25,20 +25,19 @@ var importSortRules = {
|
|
|
25
25
|
],
|
|
26
26
|
// External packages
|
|
27
27
|
["^@commencis", "^@?\\w"],
|
|
28
|
+
// Internal common directories
|
|
29
|
+
["^@?/?(config|types|interfaces|constants|helpers|utils|lib)(/.*|$)"],
|
|
30
|
+
// Internal directories
|
|
28
31
|
["^@/"],
|
|
29
|
-
//
|
|
30
|
-
[
|
|
31
|
-
|
|
32
|
-
],
|
|
33
|
-
// Project folders
|
|
34
|
-
["((.*)/)?(layouts|pages|modules|features|components)/"],
|
|
35
|
-
// Parent imports. Put `..` last.
|
|
32
|
+
// Components
|
|
33
|
+
["((.*)/)?(providers|layouts|pages|modules|features|components)/"],
|
|
34
|
+
// Relative parent imports: '../' comes last
|
|
36
35
|
["^\\.\\.(?!/?$)", "^\\.\\./?$"],
|
|
37
|
-
//
|
|
36
|
+
// Relative imports: './' comes last
|
|
38
37
|
["^\\./(?=.*/)(?!/?$)", "^\\.(?!/?$)", "^\\./?$"],
|
|
39
38
|
// Styles
|
|
40
39
|
["^.+\\.(s?css|(style(s)?)\\..+)$"],
|
|
41
|
-
//
|
|
40
|
+
// Static assets
|
|
42
41
|
["(asset(s?)|public|static|images)(/.*|$)", "^.+\\.svg$", "^.+\\.png$"]
|
|
43
42
|
]
|
|
44
43
|
}
|
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";
|
|
@@ -11,7 +11,7 @@ var importSortRules = {
|
|
|
11
11
|
"error",
|
|
12
12
|
{
|
|
13
13
|
groups: [
|
|
14
|
-
// Side
|
|
14
|
+
// Side effects
|
|
15
15
|
["^\\u0000"],
|
|
16
16
|
// Main frameworks & libraries
|
|
17
17
|
[
|
|
@@ -25,20 +25,19 @@ var importSortRules = {
|
|
|
25
25
|
],
|
|
26
26
|
// External packages
|
|
27
27
|
["^@commencis", "^@?\\w"],
|
|
28
|
+
// Internal common directories
|
|
29
|
+
["^@?/?(config|types|interfaces|constants|helpers|utils|lib)(/.*|$)"],
|
|
30
|
+
// Internal directories
|
|
28
31
|
["^@/"],
|
|
29
|
-
//
|
|
30
|
-
[
|
|
31
|
-
|
|
32
|
-
],
|
|
33
|
-
// Project folders
|
|
34
|
-
["((.*)/)?(layouts|pages|modules|features|components)/"],
|
|
35
|
-
// Parent imports. Put `..` last.
|
|
32
|
+
// Components
|
|
33
|
+
["((.*)/)?(providers|layouts|pages|modules|features|components)/"],
|
|
34
|
+
// Relative parent imports: '../' comes last
|
|
36
35
|
["^\\.\\.(?!/?$)", "^\\.\\./?$"],
|
|
37
|
-
//
|
|
36
|
+
// Relative imports: './' comes last
|
|
38
37
|
["^\\./(?=.*/)(?!/?$)", "^\\.(?!/?$)", "^\\./?$"],
|
|
39
38
|
// Styles
|
|
40
39
|
["^.+\\.(s?css|(style(s)?)\\..+)$"],
|
|
41
|
-
//
|
|
40
|
+
// Static assets
|
|
42
41
|
["(asset(s?)|public|static|images)(/.*|$)", "^.+\\.svg$", "^.+\\.png$"]
|
|
43
42
|
]
|
|
44
43
|
}
|
|
@@ -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";
|
|
@@ -11,7 +11,7 @@ var importSortRules = {
|
|
|
11
11
|
"error",
|
|
12
12
|
{
|
|
13
13
|
groups: [
|
|
14
|
-
// Side
|
|
14
|
+
// Side effects
|
|
15
15
|
["^\\u0000"],
|
|
16
16
|
// Main frameworks & libraries
|
|
17
17
|
[
|
|
@@ -25,20 +25,19 @@ var importSortRules = {
|
|
|
25
25
|
],
|
|
26
26
|
// External packages
|
|
27
27
|
["^@commencis", "^@?\\w"],
|
|
28
|
+
// Internal common directories
|
|
29
|
+
["^@?/?(config|types|interfaces|constants|helpers|utils|lib)(/.*|$)"],
|
|
30
|
+
// Internal directories
|
|
28
31
|
["^@/"],
|
|
29
|
-
//
|
|
30
|
-
[
|
|
31
|
-
|
|
32
|
-
],
|
|
33
|
-
// Project folders
|
|
34
|
-
["((.*)/)?(layouts|pages|modules|features|components)/"],
|
|
35
|
-
// Parent imports. Put `..` last.
|
|
32
|
+
// Components
|
|
33
|
+
["((.*)/)?(providers|layouts|pages|modules|features|components)/"],
|
|
34
|
+
// Relative parent imports: '../' comes last
|
|
36
35
|
["^\\.\\.(?!/?$)", "^\\.\\./?$"],
|
|
37
|
-
//
|
|
36
|
+
// Relative imports: './' comes last
|
|
38
37
|
["^\\./(?=.*/)(?!/?$)", "^\\.(?!/?$)", "^\\./?$"],
|
|
39
38
|
// Styles
|
|
40
39
|
["^.+\\.(s?css|(style(s)?)\\..+)$"],
|
|
41
|
-
//
|
|
40
|
+
// Static assets
|
|
42
41
|
["(asset(s?)|public|static|images)(/.*|$)", "^.+\\.svg$", "^.+\\.png$"]
|
|
43
42
|
]
|
|
44
43
|
}
|
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";
|
|
@@ -11,7 +11,7 @@ var importSortRules = {
|
|
|
11
11
|
"error",
|
|
12
12
|
{
|
|
13
13
|
groups: [
|
|
14
|
-
// Side
|
|
14
|
+
// Side effects
|
|
15
15
|
["^\\u0000"],
|
|
16
16
|
// Main frameworks & libraries
|
|
17
17
|
[
|
|
@@ -25,20 +25,19 @@ var importSortRules = {
|
|
|
25
25
|
],
|
|
26
26
|
// External packages
|
|
27
27
|
["^@commencis", "^@?\\w"],
|
|
28
|
+
// Internal common directories
|
|
29
|
+
["^@?/?(config|types|interfaces|constants|helpers|utils|lib)(/.*|$)"],
|
|
30
|
+
// Internal directories
|
|
28
31
|
["^@/"],
|
|
29
|
-
//
|
|
30
|
-
[
|
|
31
|
-
|
|
32
|
-
],
|
|
33
|
-
// Project folders
|
|
34
|
-
["((.*)/)?(layouts|pages|modules|features|components)/"],
|
|
35
|
-
// Parent imports. Put `..` last.
|
|
32
|
+
// Components
|
|
33
|
+
["((.*)/)?(providers|layouts|pages|modules|features|components)/"],
|
|
34
|
+
// Relative parent imports: '../' comes last
|
|
36
35
|
["^\\.\\.(?!/?$)", "^\\.\\./?$"],
|
|
37
|
-
//
|
|
36
|
+
// Relative imports: './' comes last
|
|
38
37
|
["^\\./(?=.*/)(?!/?$)", "^\\.(?!/?$)", "^\\./?$"],
|
|
39
38
|
// Styles
|
|
40
39
|
["^.+\\.(s?css|(style(s)?)\\..+)$"],
|
|
41
|
-
//
|
|
40
|
+
// Static assets
|
|
42
41
|
["(asset(s?)|public|static|images)(/.*|$)", "^.+\\.svg$", "^.+\\.png$"]
|
|
43
42
|
]
|
|
44
43
|
}
|
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";
|
|
@@ -14,7 +14,7 @@ var importSortRules = {
|
|
|
14
14
|
"error",
|
|
15
15
|
{
|
|
16
16
|
groups: [
|
|
17
|
-
// Side
|
|
17
|
+
// Side effects
|
|
18
18
|
["^\\u0000"],
|
|
19
19
|
// Main frameworks & libraries
|
|
20
20
|
[
|
|
@@ -28,20 +28,19 @@ var importSortRules = {
|
|
|
28
28
|
],
|
|
29
29
|
// External packages
|
|
30
30
|
["^@commencis", "^@?\\w"],
|
|
31
|
+
// Internal common directories
|
|
32
|
+
["^@?/?(config|types|interfaces|constants|helpers|utils|lib)(/.*|$)"],
|
|
33
|
+
// Internal directories
|
|
31
34
|
["^@/"],
|
|
32
|
-
//
|
|
33
|
-
[
|
|
34
|
-
|
|
35
|
-
],
|
|
36
|
-
// Project folders
|
|
37
|
-
["((.*)/)?(layouts|pages|modules|features|components)/"],
|
|
38
|
-
// Parent imports. Put `..` last.
|
|
35
|
+
// Components
|
|
36
|
+
["((.*)/)?(providers|layouts|pages|modules|features|components)/"],
|
|
37
|
+
// Relative parent imports: '../' comes last
|
|
39
38
|
["^\\.\\.(?!/?$)", "^\\.\\./?$"],
|
|
40
|
-
//
|
|
39
|
+
// Relative imports: './' comes last
|
|
41
40
|
["^\\./(?=.*/)(?!/?$)", "^\\.(?!/?$)", "^\\./?$"],
|
|
42
41
|
// Styles
|
|
43
42
|
["^.+\\.(s?css|(style(s)?)\\..+)$"],
|
|
44
|
-
//
|
|
43
|
+
// Static assets
|
|
45
44
|
["(asset(s?)|public|static|images)(/.*|$)", "^.+\\.svg$", "^.+\\.png$"]
|
|
46
45
|
]
|
|
47
46
|
}
|
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";
|
|
@@ -14,7 +14,7 @@ var importSortRules = {
|
|
|
14
14
|
"error",
|
|
15
15
|
{
|
|
16
16
|
groups: [
|
|
17
|
-
// Side
|
|
17
|
+
// Side effects
|
|
18
18
|
["^\\u0000"],
|
|
19
19
|
// Main frameworks & libraries
|
|
20
20
|
[
|
|
@@ -28,20 +28,19 @@ var importSortRules = {
|
|
|
28
28
|
],
|
|
29
29
|
// External packages
|
|
30
30
|
["^@commencis", "^@?\\w"],
|
|
31
|
+
// Internal common directories
|
|
32
|
+
["^@?/?(config|types|interfaces|constants|helpers|utils|lib)(/.*|$)"],
|
|
33
|
+
// Internal directories
|
|
31
34
|
["^@/"],
|
|
32
|
-
//
|
|
33
|
-
[
|
|
34
|
-
|
|
35
|
-
],
|
|
36
|
-
// Project folders
|
|
37
|
-
["((.*)/)?(layouts|pages|modules|features|components)/"],
|
|
38
|
-
// Parent imports. Put `..` last.
|
|
35
|
+
// Components
|
|
36
|
+
["((.*)/)?(providers|layouts|pages|modules|features|components)/"],
|
|
37
|
+
// Relative parent imports: '../' comes last
|
|
39
38
|
["^\\.\\.(?!/?$)", "^\\.\\./?$"],
|
|
40
|
-
//
|
|
39
|
+
// Relative imports: './' comes last
|
|
41
40
|
["^\\./(?=.*/)(?!/?$)", "^\\.(?!/?$)", "^\\./?$"],
|
|
42
41
|
// Styles
|
|
43
42
|
["^.+\\.(s?css|(style(s)?)\\..+)$"],
|
|
44
|
-
//
|
|
43
|
+
// Static assets
|
|
45
44
|
["(asset(s?)|public|static|images)(/.*|$)", "^.+\\.svg$", "^.+\\.png$"]
|
|
46
45
|
]
|
|
47
46
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commencis/eslint-config",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.1",
|
|
4
4
|
"description": "Commencis ESLint config",
|
|
5
5
|
"author": "Commencis WEB Team",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"dependencies": {
|
|
61
61
|
"@eslint/js": "9.14.0",
|
|
62
62
|
"@next/eslint-plugin-next": "15.0.2",
|
|
63
|
-
"@typescript-eslint/utils": "8.
|
|
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",
|