@commencis/eslint-config 2.1.0 → 2.2.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,21 @@
1
1
  # @commencis/eslint-config
2
2
 
3
+ ## 2.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - chore: update dependencies ([#388](https://github.com/Commencis/js-toolkit/pull/388))
8
+
9
+ - feat: re-organize import sort rules for styles and assets ([#388](https://github.com/Commencis/js-toolkit/pull/388))
10
+
11
+ ## 2.1.1
12
+
13
+ ### Patch Changes
14
+
15
+ - chore(deps): update typescript-eslint monorepo to v8.41.0 ([#373](https://github.com/Commencis/js-toolkit/pull/373))
16
+
17
+ - chore(deps): update dependency @next/eslint-plugin-next to v15.5.2 ([#374](https://github.com/Commencis/js-toolkit/pull/374))
18
+
3
19
  ## 2.1.0
4
20
 
5
21
  ### Minor Changes
@@ -56,16 +56,17 @@ var GROUPS = {
56
56
  "features",
57
57
  "components"
58
58
  ]),
59
- // Internal root alias (catch-all leftover @/ imports)
60
- INTERNAL_ROOT: ["^@/.+$"],
59
+ // Internal root alias (catch-all leftover @/ imports except styles and assets)
60
+ INTERNAL_ROOT: ["^@/(?!.*\\.(s?css|svg|png)$).+$"],
61
61
  // Relative parent imports then same-dir relatives
62
62
  RELATIVE_PARENT: ["^\\.\\.(?!/?$)", "^\\.\\./?$"],
63
63
  RELATIVE_SAME: ["^\\./(?=.*/)(?!/?$)", "^\\.(?!/?$)", "^\\./?$"],
64
64
  // Styles
65
- STYLES: ["^.+\\.(s?css|(style(s)?)\\..+)$"],
65
+ STYLES: ["^@/.+\\.s?css$", "^\\./.+\\.s?css$"],
66
66
  // Assets
67
67
  ASSETS: [
68
68
  "(asset(s?)|public|static|images)(/.*|$)",
69
+ "^@/.+\\.(svg|png)$",
69
70
  "^.+\\.svg$",
70
71
  "^.+\\.png$"
71
72
  ]
@@ -56,16 +56,17 @@ var GROUPS = {
56
56
  "features",
57
57
  "components"
58
58
  ]),
59
- // Internal root alias (catch-all leftover @/ imports)
60
- INTERNAL_ROOT: ["^@/.+$"],
59
+ // Internal root alias (catch-all leftover @/ imports except styles and assets)
60
+ INTERNAL_ROOT: ["^@/(?!.*\\.(s?css|svg|png)$).+$"],
61
61
  // Relative parent imports then same-dir relatives
62
62
  RELATIVE_PARENT: ["^\\.\\.(?!/?$)", "^\\.\\./?$"],
63
63
  RELATIVE_SAME: ["^\\./(?=.*/)(?!/?$)", "^\\.(?!/?$)", "^\\./?$"],
64
64
  // Styles
65
- STYLES: ["^.+\\.(s?css|(style(s)?)\\..+)$"],
65
+ STYLES: ["^@/.+\\.s?css$", "^\\./.+\\.s?css$"],
66
66
  // Assets
67
67
  ASSETS: [
68
68
  "(asset(s?)|public|static|images)(/.*|$)",
69
+ "^@/.+\\.(svg|png)$",
69
70
  "^.+\\.svg$",
70
71
  "^.+\\.png$"
71
72
  ]
@@ -56,16 +56,17 @@ var GROUPS = {
56
56
  "features",
57
57
  "components"
58
58
  ]),
59
- // Internal root alias (catch-all leftover @/ imports)
60
- INTERNAL_ROOT: ["^@/.+$"],
59
+ // Internal root alias (catch-all leftover @/ imports except styles and assets)
60
+ INTERNAL_ROOT: ["^@/(?!.*\\.(s?css|svg|png)$).+$"],
61
61
  // Relative parent imports then same-dir relatives
62
62
  RELATIVE_PARENT: ["^\\.\\.(?!/?$)", "^\\.\\./?$"],
63
63
  RELATIVE_SAME: ["^\\./(?=.*/)(?!/?$)", "^\\.(?!/?$)", "^\\./?$"],
64
64
  // Styles
65
- STYLES: ["^.+\\.(s?css|(style(s)?)\\..+)$"],
65
+ STYLES: ["^@/.+\\.s?css$", "^\\./.+\\.s?css$"],
66
66
  // Assets
67
67
  ASSETS: [
68
68
  "(asset(s?)|public|static|images)(/.*|$)",
69
+ "^@/.+\\.(svg|png)$",
69
70
  "^.+\\.svg$",
70
71
  "^.+\\.png$"
71
72
  ]
@@ -56,16 +56,17 @@ var GROUPS = {
56
56
  "features",
57
57
  "components"
58
58
  ]),
59
- // Internal root alias (catch-all leftover @/ imports)
60
- INTERNAL_ROOT: ["^@/.+$"],
59
+ // Internal root alias (catch-all leftover @/ imports except styles and assets)
60
+ INTERNAL_ROOT: ["^@/(?!.*\\.(s?css|svg|png)$).+$"],
61
61
  // Relative parent imports then same-dir relatives
62
62
  RELATIVE_PARENT: ["^\\.\\.(?!/?$)", "^\\.\\./?$"],
63
63
  RELATIVE_SAME: ["^\\./(?=.*/)(?!/?$)", "^\\.(?!/?$)", "^\\./?$"],
64
64
  // Styles
65
- STYLES: ["^.+\\.(s?css|(style(s)?)\\..+)$"],
65
+ STYLES: ["^@/.+\\.s?css$", "^\\./.+\\.s?css$"],
66
66
  // Assets
67
67
  ASSETS: [
68
68
  "(asset(s?)|public|static|images)(/.*|$)",
69
+ "^@/.+\\.(svg|png)$",
69
70
  "^.+\\.svg$",
70
71
  "^.+\\.png$"
71
72
  ]
@@ -52,16 +52,17 @@ var GROUPS = {
52
52
  "features",
53
53
  "components"
54
54
  ]),
55
- // Internal root alias (catch-all leftover @/ imports)
56
- INTERNAL_ROOT: ["^@/.+$"],
55
+ // Internal root alias (catch-all leftover @/ imports except styles and assets)
56
+ INTERNAL_ROOT: ["^@/(?!.*\\.(s?css|svg|png)$).+$"],
57
57
  // Relative parent imports then same-dir relatives
58
58
  RELATIVE_PARENT: ["^\\.\\.(?!/?$)", "^\\.\\./?$"],
59
59
  RELATIVE_SAME: ["^\\./(?=.*/)(?!/?$)", "^\\.(?!/?$)", "^\\./?$"],
60
60
  // Styles
61
- STYLES: ["^.+\\.(s?css|(style(s)?)\\..+)$"],
61
+ STYLES: ["^@/.+\\.s?css$", "^\\./.+\\.s?css$"],
62
62
  // Assets
63
63
  ASSETS: [
64
64
  "(asset(s?)|public|static|images)(/.*|$)",
65
+ "^@/.+\\.(svg|png)$",
65
66
  "^.+\\.svg$",
66
67
  "^.+\\.png$"
67
68
  ]
@@ -59,16 +59,17 @@ var GROUPS = {
59
59
  "features",
60
60
  "components"
61
61
  ]),
62
- // Internal root alias (catch-all leftover @/ imports)
63
- INTERNAL_ROOT: ["^@/.+$"],
62
+ // Internal root alias (catch-all leftover @/ imports except styles and assets)
63
+ INTERNAL_ROOT: ["^@/(?!.*\\.(s?css|svg|png)$).+$"],
64
64
  // Relative parent imports then same-dir relatives
65
65
  RELATIVE_PARENT: ["^\\.\\.(?!/?$)", "^\\.\\./?$"],
66
66
  RELATIVE_SAME: ["^\\./(?=.*/)(?!/?$)", "^\\.(?!/?$)", "^\\./?$"],
67
67
  // Styles
68
- STYLES: ["^.+\\.(s?css|(style(s)?)\\..+)$"],
68
+ STYLES: ["^@/.+\\.s?css$", "^\\./.+\\.s?css$"],
69
69
  // Assets
70
70
  ASSETS: [
71
71
  "(asset(s?)|public|static|images)(/.*|$)",
72
+ "^@/.+\\.(svg|png)$",
72
73
  "^.+\\.svg$",
73
74
  "^.+\\.png$"
74
75
  ]
package/dist/index.js CHANGED
@@ -59,16 +59,17 @@ var GROUPS = {
59
59
  "features",
60
60
  "components"
61
61
  ]),
62
- // Internal root alias (catch-all leftover @/ imports)
63
- INTERNAL_ROOT: ["^@/.+$"],
62
+ // Internal root alias (catch-all leftover @/ imports except styles and assets)
63
+ INTERNAL_ROOT: ["^@/(?!.*\\.(s?css|svg|png)$).+$"],
64
64
  // Relative parent imports then same-dir relatives
65
65
  RELATIVE_PARENT: ["^\\.\\.(?!/?$)", "^\\.\\./?$"],
66
66
  RELATIVE_SAME: ["^\\./(?=.*/)(?!/?$)", "^\\.(?!/?$)", "^\\./?$"],
67
67
  // Styles
68
- STYLES: ["^.+\\.(s?css|(style(s)?)\\..+)$"],
68
+ STYLES: ["^@/.+\\.s?css$", "^\\./.+\\.s?css$"],
69
69
  // Assets
70
70
  ASSETS: [
71
71
  "(asset(s?)|public|static|images)(/.*|$)",
72
+ "^@/.+\\.(svg|png)$",
72
73
  "^.+\\.svg$",
73
74
  "^.+\\.png$"
74
75
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commencis/eslint-config",
3
- "version": "2.1.0",
3
+ "version": "2.2.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.34.0",
62
- "@next/eslint-plugin-next": "15.5.0",
63
- "@typescript-eslint/utils": "8.40.0",
61
+ "@eslint/js": "9.36.0",
62
+ "@next/eslint-plugin-next": "15.5.4",
63
+ "@typescript-eslint/utils": "8.44.1",
64
64
  "eslint-config-prettier": "10.1.8",
65
65
  "eslint-plugin-jsx-a11y": "6.10.2",
66
66
  "eslint-plugin-prettier": "5.5.4",
67
67
  "eslint-plugin-react": "7.37.5",
68
68
  "eslint-plugin-react-hooks": "5.2.0",
69
69
  "eslint-plugin-simple-import-sort": "12.1.1",
70
- "eslint-plugin-vue": "10.4.0",
71
- "globals": "16.3.0",
72
- "typescript-eslint": "8.40.0"
70
+ "eslint-plugin-vue": "10.5.0",
71
+ "globals": "16.4.0",
72
+ "typescript-eslint": "8.44.1"
73
73
  },
74
74
  "devDependencies": {
75
75
  "@commencis/ts-config": "0.0.2",
76
- "eslint": "9.34.0",
76
+ "eslint": "9.36.0",
77
77
  "tsup": "8.5.0",
78
78
  "typescript": "5.9.2"
79
79
  },