@commencis/eslint-config 1.2.0 → 1.3.0

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 CHANGED
@@ -1,5 +1,30 @@
1
1
  # @commencis/eslint-config
2
2
 
3
+ ## 1.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - improve existing eslint sorting rules and add new ones ([#113](https://github.com/Commencis/js-toolkit/pull/113))
8
+
9
+ ### Patch Changes
10
+
11
+ - update dependency: eslint@9.14.0 @eslint/js@9.14.0 ([#115](https://github.com/Commencis/js-toolkit/pull/115))
12
+
13
+ ## 1.2.1
14
+
15
+ ### Patch Changes
16
+
17
+ - update dependency: eslint-plugin-jsx-a11y@6.10.2 ([#107](https://github.com/Commencis/js-toolkit/pull/107))
18
+
19
+ - update dependency: eslint-plugin-react@7.37.2 ([#98](https://github.com/Commencis/js-toolkit/pull/98))
20
+
21
+ - update dependency: eslint-plugin-vue@9.30.0 ([#108](https://github.com/Commencis/js-toolkit/pull/108))
22
+
23
+ - update dependency: @next/eslint-plugin-next@15.0.2 ([#99](https://github.com/Commencis/js-toolkit/pull/99))
24
+
25
+ - update dependency: @typescript-eslint/utils@8.12.2 ([#109](https://github.com/Commencis/js-toolkit/pull/109))
26
+ update dependency: typescript-eslint@8.12.2
27
+
3
28
  ## 1.2.0
4
29
 
5
30
  ### Minor Changes
@@ -11,20 +11,35 @@ var importSortRules = {
11
11
  "error",
12
12
  {
13
13
  groups: [
14
- // External package imports
15
- ["^\\w", "^@\\w"],
16
- // @commencis package imports
17
- ["^@commencis"],
18
- // Config, util imports
19
- ["(@/config|@/util)"],
20
- // Type imports
21
- ["@/type"],
22
- // Absolute imports
14
+ // Side effect imports.
15
+ ["^\\u0000"],
16
+ // Main frameworks & libraries
17
+ [
18
+ "^react",
19
+ "^next",
20
+ "^vue",
21
+ "^nuxt",
22
+ "^@angular(/.*|$)",
23
+ "^expo",
24
+ "^node"
25
+ ],
26
+ // External packages
27
+ ["^@commencis", "^@?\\w"],
23
28
  ["^@/"],
24
- // Relative imports
25
- ["^\\.\\./", "^\\./"],
26
- // Style imports
27
- ["^.+\\.s?css$"]
29
+ // Internal imports
30
+ [
31
+ "^@?/?(configs(s?)|types(s?)|constants(s?)|helpers(s?)|utils(s?)|lib(s?)|providers(s?))(/.*|$)"
32
+ ],
33
+ // Project folders
34
+ ["((.*)/)?(layouts|pages|modules|features|components)/"],
35
+ // Parent imports. Put `..` last.
36
+ ["^\\.\\.(?!/?$)", "^\\.\\./?$"],
37
+ // Other relative imports. Put same-folder imports and `.` last.
38
+ ["^\\./(?=.*/)(?!/?$)", "^\\.(?!/?$)", "^\\./?$"],
39
+ // Styles
40
+ ["^.+\\.(s?css|(style(s)?)\\..+)$"],
41
+ // Images
42
+ ["(asset(s?)|public|static|images)(/.*|$)", "^.+\\.svg$", "^.+\\.png$"]
28
43
  ]
29
44
  }
30
45
  ],
@@ -11,20 +11,35 @@ var importSortRules = {
11
11
  "error",
12
12
  {
13
13
  groups: [
14
- // External package imports
15
- ["^\\w", "^@\\w"],
16
- // @commencis package imports
17
- ["^@commencis"],
18
- // Config, util imports
19
- ["(@/config|@/util)"],
20
- // Type imports
21
- ["@/type"],
22
- // Absolute imports
14
+ // Side effect imports.
15
+ ["^\\u0000"],
16
+ // Main frameworks & libraries
17
+ [
18
+ "^react",
19
+ "^next",
20
+ "^vue",
21
+ "^nuxt",
22
+ "^@angular(/.*|$)",
23
+ "^expo",
24
+ "^node"
25
+ ],
26
+ // External packages
27
+ ["^@commencis", "^@?\\w"],
23
28
  ["^@/"],
24
- // Relative imports
25
- ["^\\.\\./", "^\\./"],
26
- // Style imports
27
- ["^.+\\.s?css$"]
29
+ // Internal imports
30
+ [
31
+ "^@?/?(configs(s?)|types(s?)|constants(s?)|helpers(s?)|utils(s?)|lib(s?)|providers(s?))(/.*|$)"
32
+ ],
33
+ // Project folders
34
+ ["((.*)/)?(layouts|pages|modules|features|components)/"],
35
+ // Parent imports. Put `..` last.
36
+ ["^\\.\\.(?!/?$)", "^\\.\\./?$"],
37
+ // Other relative imports. Put same-folder imports and `.` last.
38
+ ["^\\./(?=.*/)(?!/?$)", "^\\.(?!/?$)", "^\\./?$"],
39
+ // Styles
40
+ ["^.+\\.(s?css|(style(s)?)\\..+)$"],
41
+ // Images
42
+ ["(asset(s?)|public|static|images)(/.*|$)", "^.+\\.svg$", "^.+\\.png$"]
28
43
  ]
29
44
  }
30
45
  ],
@@ -11,20 +11,35 @@ var importSortRules = {
11
11
  "error",
12
12
  {
13
13
  groups: [
14
- // External package imports
15
- ["^\\w", "^@\\w"],
16
- // @commencis package imports
17
- ["^@commencis"],
18
- // Config, util imports
19
- ["(@/config|@/util)"],
20
- // Type imports
21
- ["@/type"],
22
- // Absolute imports
14
+ // Side effect imports.
15
+ ["^\\u0000"],
16
+ // Main frameworks & libraries
17
+ [
18
+ "^react",
19
+ "^next",
20
+ "^vue",
21
+ "^nuxt",
22
+ "^@angular(/.*|$)",
23
+ "^expo",
24
+ "^node"
25
+ ],
26
+ // External packages
27
+ ["^@commencis", "^@?\\w"],
23
28
  ["^@/"],
24
- // Relative imports
25
- ["^\\.\\./", "^\\./"],
26
- // Style imports
27
- ["^.+\\.s?css$"]
29
+ // Internal imports
30
+ [
31
+ "^@?/?(configs(s?)|types(s?)|constants(s?)|helpers(s?)|utils(s?)|lib(s?)|providers(s?))(/.*|$)"
32
+ ],
33
+ // Project folders
34
+ ["((.*)/)?(layouts|pages|modules|features|components)/"],
35
+ // Parent imports. Put `..` last.
36
+ ["^\\.\\.(?!/?$)", "^\\.\\./?$"],
37
+ // Other relative imports. Put same-folder imports and `.` last.
38
+ ["^\\./(?=.*/)(?!/?$)", "^\\.(?!/?$)", "^\\./?$"],
39
+ // Styles
40
+ ["^.+\\.(s?css|(style(s)?)\\..+)$"],
41
+ // Images
42
+ ["(asset(s?)|public|static|images)(/.*|$)", "^.+\\.svg$", "^.+\\.png$"]
28
43
  ]
29
44
  }
30
45
  ],
@@ -11,20 +11,35 @@ var importSortRules = {
11
11
  "error",
12
12
  {
13
13
  groups: [
14
- // External package imports
15
- ["^\\w", "^@\\w"],
16
- // @commencis package imports
17
- ["^@commencis"],
18
- // Config, util imports
19
- ["(@/config|@/util)"],
20
- // Type imports
21
- ["@/type"],
22
- // Absolute imports
14
+ // Side effect imports.
15
+ ["^\\u0000"],
16
+ // Main frameworks & libraries
17
+ [
18
+ "^react",
19
+ "^next",
20
+ "^vue",
21
+ "^nuxt",
22
+ "^@angular(/.*|$)",
23
+ "^expo",
24
+ "^node"
25
+ ],
26
+ // External packages
27
+ ["^@commencis", "^@?\\w"],
23
28
  ["^@/"],
24
- // Relative imports
25
- ["^\\.\\./", "^\\./"],
26
- // Style imports
27
- ["^.+\\.s?css$"]
29
+ // Internal imports
30
+ [
31
+ "^@?/?(configs(s?)|types(s?)|constants(s?)|helpers(s?)|utils(s?)|lib(s?)|providers(s?))(/.*|$)"
32
+ ],
33
+ // Project folders
34
+ ["((.*)/)?(layouts|pages|modules|features|components)/"],
35
+ // Parent imports. Put `..` last.
36
+ ["^\\.\\.(?!/?$)", "^\\.\\./?$"],
37
+ // Other relative imports. Put same-folder imports and `.` last.
38
+ ["^\\./(?=.*/)(?!/?$)", "^\\.(?!/?$)", "^\\./?$"],
39
+ // Styles
40
+ ["^.+\\.(s?css|(style(s)?)\\..+)$"],
41
+ // Images
42
+ ["(asset(s?)|public|static|images)(/.*|$)", "^.+\\.svg$", "^.+\\.png$"]
28
43
  ]
29
44
  }
30
45
  ],
@@ -14,20 +14,35 @@ var importSortRules = {
14
14
  "error",
15
15
  {
16
16
  groups: [
17
- // External package imports
18
- ["^\\w", "^@\\w"],
19
- // @commencis package imports
20
- ["^@commencis"],
21
- // Config, util imports
22
- ["(@/config|@/util)"],
23
- // Type imports
24
- ["@/type"],
25
- // Absolute imports
17
+ // Side effect imports.
18
+ ["^\\u0000"],
19
+ // Main frameworks & libraries
20
+ [
21
+ "^react",
22
+ "^next",
23
+ "^vue",
24
+ "^nuxt",
25
+ "^@angular(/.*|$)",
26
+ "^expo",
27
+ "^node"
28
+ ],
29
+ // External packages
30
+ ["^@commencis", "^@?\\w"],
26
31
  ["^@/"],
27
- // Relative imports
28
- ["^\\.\\./", "^\\./"],
29
- // Style imports
30
- ["^.+\\.s?css$"]
32
+ // Internal imports
33
+ [
34
+ "^@?/?(configs(s?)|types(s?)|constants(s?)|helpers(s?)|utils(s?)|lib(s?)|providers(s?))(/.*|$)"
35
+ ],
36
+ // Project folders
37
+ ["((.*)/)?(layouts|pages|modules|features|components)/"],
38
+ // Parent imports. Put `..` last.
39
+ ["^\\.\\.(?!/?$)", "^\\.\\./?$"],
40
+ // Other relative imports. Put same-folder imports and `.` last.
41
+ ["^\\./(?=.*/)(?!/?$)", "^\\.(?!/?$)", "^\\./?$"],
42
+ // Styles
43
+ ["^.+\\.(s?css|(style(s)?)\\..+)$"],
44
+ // Images
45
+ ["(asset(s?)|public|static|images)(/.*|$)", "^.+\\.svg$", "^.+\\.png$"]
31
46
  ]
32
47
  }
33
48
  ],
package/dist/index.js CHANGED
@@ -14,20 +14,35 @@ var importSortRules = {
14
14
  "error",
15
15
  {
16
16
  groups: [
17
- // External package imports
18
- ["^\\w", "^@\\w"],
19
- // @commencis package imports
20
- ["^@commencis"],
21
- // Config, util imports
22
- ["(@/config|@/util)"],
23
- // Type imports
24
- ["@/type"],
25
- // Absolute imports
17
+ // Side effect imports.
18
+ ["^\\u0000"],
19
+ // Main frameworks & libraries
20
+ [
21
+ "^react",
22
+ "^next",
23
+ "^vue",
24
+ "^nuxt",
25
+ "^@angular(/.*|$)",
26
+ "^expo",
27
+ "^node"
28
+ ],
29
+ // External packages
30
+ ["^@commencis", "^@?\\w"],
26
31
  ["^@/"],
27
- // Relative imports
28
- ["^\\.\\./", "^\\./"],
29
- // Style imports
30
- ["^.+\\.s?css$"]
32
+ // Internal imports
33
+ [
34
+ "^@?/?(configs(s?)|types(s?)|constants(s?)|helpers(s?)|utils(s?)|lib(s?)|providers(s?))(/.*|$)"
35
+ ],
36
+ // Project folders
37
+ ["((.*)/)?(layouts|pages|modules|features|components)/"],
38
+ // Parent imports. Put `..` last.
39
+ ["^\\.\\.(?!/?$)", "^\\.\\./?$"],
40
+ // Other relative imports. Put same-folder imports and `.` last.
41
+ ["^\\./(?=.*/)(?!/?$)", "^\\.(?!/?$)", "^\\./?$"],
42
+ // Styles
43
+ ["^.+\\.(s?css|(style(s)?)\\..+)$"],
44
+ // Images
45
+ ["(asset(s?)|public|static|images)(/.*|$)", "^.+\\.svg$", "^.+\\.png$"]
31
46
  ]
32
47
  }
33
48
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commencis/eslint-config",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "description": "Commencis ESLint config",
5
5
  "author": "Commencis WEB Team",
6
6
  "license": "Apache-2.0",
@@ -58,22 +58,22 @@
58
58
  }
59
59
  },
60
60
  "dependencies": {
61
- "@eslint/js": "9.13.0",
62
- "@next/eslint-plugin-next": "15.0.0",
63
- "@typescript-eslint/utils": "8.11.0",
61
+ "@eslint/js": "9.14.0",
62
+ "@next/eslint-plugin-next": "15.0.2",
63
+ "@typescript-eslint/utils": "8.12.2",
64
64
  "eslint-config-prettier": "9.1.0",
65
- "eslint-plugin-jsx-a11y": "6.10.1",
65
+ "eslint-plugin-jsx-a11y": "6.10.2",
66
66
  "eslint-plugin-prettier": "5.2.1",
67
- "eslint-plugin-react": "7.37.1",
67
+ "eslint-plugin-react": "7.37.2",
68
68
  "eslint-plugin-react-hooks": "5.0.0",
69
69
  "eslint-plugin-simple-import-sort": "12.1.1",
70
- "eslint-plugin-vue": "9.29.1",
70
+ "eslint-plugin-vue": "9.30.0",
71
71
  "globals": "15.11.0",
72
- "typescript-eslint": "8.11.0"
72
+ "typescript-eslint": "8.12.2"
73
73
  },
74
74
  "devDependencies": {
75
75
  "@types/eslint__js": "8.42.3",
76
- "tsup": "8.3.0",
76
+ "tsup": "8.3.5",
77
77
  "typescript": "5.6.3",
78
78
  "@commencis/ts-config": "0.0.2"
79
79
  },