@websolutespa/eslint-config 2.0.1-next.2 → 3.0.1-next.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 +4 -16
- package/base.js +22 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,28 +1,16 @@
|
|
|
1
1
|
# @websolutespa/eslint-config
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## 3.0.1-next.0
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
-
-
|
|
7
|
+
- Add a `no-restricted-imports` rule for `next/headers` outside `src/app` and route handlers.
|
|
8
8
|
|
|
9
|
-
##
|
|
9
|
+
## 3.0.0
|
|
10
10
|
|
|
11
11
|
### Major Changes
|
|
12
12
|
|
|
13
|
-
-
|
|
14
|
-
|
|
15
|
-
## 1.10.0-next.1
|
|
16
|
-
|
|
17
|
-
### Patch Changes
|
|
18
|
-
|
|
19
|
-
- 64289c4: Updating: React 19.x, Payload 3.x
|
|
20
|
-
|
|
21
|
-
## 1.10.0-next.0
|
|
22
|
-
|
|
23
|
-
### Minor Changes
|
|
24
|
-
|
|
25
|
-
- Updating: React 19.x, Payload 3.x
|
|
13
|
+
- Release: Bom 3.0
|
|
26
14
|
|
|
27
15
|
## 0.1.2
|
|
28
16
|
|
package/base.js
CHANGED
|
@@ -35,6 +35,28 @@ export const base = [
|
|
|
35
35
|
onlyWarn,
|
|
36
36
|
},
|
|
37
37
|
},
|
|
38
|
+
{
|
|
39
|
+
// Helpers must not read request data: only the template (page, layout,
|
|
40
|
+
// route handler) reads headers()/cookies()/draftMode() and passes it down.
|
|
41
|
+
rules: {
|
|
42
|
+
'no-restricted-imports': ['warn', {
|
|
43
|
+
paths: [{
|
|
44
|
+
name: 'next/headers',
|
|
45
|
+
message: 'Read request data (headers, cookies, draftMode) in the template under src/app and pass it down as an argument.',
|
|
46
|
+
}],
|
|
47
|
+
}],
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
files: [
|
|
52
|
+
'src/app/**',
|
|
53
|
+
'**/handlers/**',
|
|
54
|
+
'**/*.test.{ts,tsx}',
|
|
55
|
+
],
|
|
56
|
+
rules: {
|
|
57
|
+
'no-restricted-imports': 'off',
|
|
58
|
+
},
|
|
59
|
+
},
|
|
38
60
|
{
|
|
39
61
|
ignores: [
|
|
40
62
|
'.next/**',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@websolutespa/eslint-config",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.1-next.0",
|
|
4
4
|
"description": "Eslint shared config of the BOM Repository",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bom",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@eslint/js": "9.31.0",
|
|
19
|
-
"@next/eslint-plugin-next": "
|
|
19
|
+
"@next/eslint-plugin-next": "16.1.6",
|
|
20
20
|
"@stylistic/eslint-plugin": "5.2.3",
|
|
21
21
|
"eslint": "9.31.0",
|
|
22
22
|
"eslint-config-prettier": "10.1.1",
|