@commencis/eslint-config 1.4.1 → 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 CHANGED
@@ -1,5 +1,13 @@
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
+
3
11
  ## 1.4.1
4
12
 
5
13
  ### Patch Changes
@@ -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",
@@ -30,7 +30,7 @@ var importSortRules = {
30
30
  // Internal directories
31
31
  ["^@/"],
32
32
  // Components
33
- ["((.*)/)?(providers|layouts|pages|modules|features|components)/"],
33
+ ["((.*)/)?(providers|layouts|pages|modules|features|components)/?"],
34
34
  // Relative parent imports: '../' comes last
35
35
  ["^\\.\\.(?!/?$)", "^\\.\\./?$"],
36
36
  // Relative imports: './' comes last
@@ -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",
@@ -30,7 +30,7 @@ var importSortRules = {
30
30
  // Internal directories
31
31
  ["^@/"],
32
32
  // Components
33
- ["((.*)/)?(providers|layouts|pages|modules|features|components)/"],
33
+ ["((.*)/)?(providers|layouts|pages|modules|features|components)/?"],
34
34
  // Relative parent imports: '../' comes last
35
35
  ["^\\.\\.(?!/?$)", "^\\.\\./?$"],
36
36
  // Relative imports: './' comes last
@@ -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",
@@ -30,7 +30,7 @@ var importSortRules = {
30
30
  // Internal directories
31
31
  ["^@/"],
32
32
  // Components
33
- ["((.*)/)?(providers|layouts|pages|modules|features|components)/"],
33
+ ["((.*)/)?(providers|layouts|pages|modules|features|components)/?"],
34
34
  // Relative parent imports: '../' comes last
35
35
  ["^\\.\\.(?!/?$)", "^\\.\\./?$"],
36
36
  // Relative imports: './' comes last
@@ -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",
@@ -30,7 +30,7 @@ var importSortRules = {
30
30
  // Internal directories
31
31
  ["^@/"],
32
32
  // Components
33
- ["((.*)/)?(providers|layouts|pages|modules|features|components)/"],
33
+ ["((.*)/)?(providers|layouts|pages|modules|features|components)/?"],
34
34
  // Relative parent imports: '../' comes last
35
35
  ["^\\.\\.(?!/?$)", "^\\.\\./?$"],
36
36
  // Relative imports: './' comes last
@@ -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",
@@ -33,7 +33,7 @@ var importSortRules = {
33
33
  // Internal directories
34
34
  ["^@/"],
35
35
  // Components
36
- ["((.*)/)?(providers|layouts|pages|modules|features|components)/"],
36
+ ["((.*)/)?(providers|layouts|pages|modules|features|components)/?"],
37
37
  // Relative parent imports: '../' comes last
38
38
  ["^\\.\\.(?!/?$)", "^\\.\\./?$"],
39
39
  // Relative imports: './' comes last
package/dist/index.js CHANGED
@@ -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",
@@ -33,7 +33,7 @@ var importSortRules = {
33
33
  // Internal directories
34
34
  ["^@/"],
35
35
  // Components
36
- ["((.*)/)?(providers|layouts|pages|modules|features|components)/"],
36
+ ["((.*)/)?(providers|layouts|pages|modules|features|components)/?"],
37
37
  // Relative parent imports: '../' comes last
38
38
  ["^\\.\\.(?!/?$)", "^\\.\\./?$"],
39
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.1",
3
+ "version": "1.4.2",
4
4
  "description": "Commencis ESLint config",
5
5
  "author": "Commencis WEB Team",
6
6
  "license": "Apache-2.0",
@@ -59,7 +59,7 @@
59
59
  },
60
60
  "dependencies": {
61
61
  "@eslint/js": "9.14.0",
62
- "@next/eslint-plugin-next": "15.0.2",
62
+ "@next/eslint-plugin-next": "15.0.3",
63
63
  "@typescript-eslint/utils": "8.13.0",
64
64
  "eslint-config-prettier": "9.1.0",
65
65
  "eslint-plugin-jsx-a11y": "6.10.2",