@adobe/eslint-config-helix 3.0.0 → 3.0.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 +14 -0
- package/README.md +7 -3
- package/eslint.config.js +4 -2
- package/index.js +5 -13
- package/package.json +2 -2
- package/rules/header.js +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [3.0.2](https://github.com/adobe/helix-eslint-config/compare/v3.0.1...v3.0.2) (2025-06-02)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **deps:** update dependency globals to v15.15.0 ([#231](https://github.com/adobe/helix-eslint-config/issues/231)) ([67f49b2](https://github.com/adobe/helix-eslint-config/commit/67f49b2ade999a26f8738c2237b8c872a8d9d451))
|
|
7
|
+
|
|
8
|
+
## [3.0.1](https://github.com/adobe/helix-eslint-config/compare/v3.0.0...v3.0.1) (2025-05-29)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* missing header should end processing ([e077281](https://github.com/adobe/helix-eslint-config/commit/e077281f10900f51a5987b878366e0e8ed0a251e))
|
|
14
|
+
|
|
1
15
|
# [3.0.0](https://github.com/adobe/helix-eslint-config/compare/v2.0.9...v3.0.0) (2025-05-28)
|
|
2
16
|
|
|
3
17
|
|
package/README.md
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
# Helix eslint config
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
ESLint config used in helix projects.
|
|
4
4
|
|
|
5
5
|
## Usage
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
### For ESLint v9.x
|
|
8
|
+
|
|
9
|
+
In your `eslint.config.js`, import the `recommended` settings, `source` and `test` configurations and add your ignores, e.g.:
|
|
8
10
|
|
|
9
11
|
```
|
|
10
12
|
import { defineConfig, globalIgnores } from '@eslint/config-helpers'
|
|
11
|
-
import { recommended } from '@adobe/eslint-config-helix';
|
|
13
|
+
import { recommended, source, test } from '@adobe/eslint-config-helix';
|
|
12
14
|
|
|
13
15
|
export default defineConfig([
|
|
14
16
|
globalIgnores([
|
|
@@ -19,6 +21,8 @@ export default defineConfig([
|
|
|
19
21
|
{
|
|
20
22
|
extends: [recommended],
|
|
21
23
|
},
|
|
24
|
+
source,
|
|
25
|
+
test,
|
|
22
26
|
]);
|
|
23
27
|
```
|
|
24
28
|
|
package/eslint.config.js
CHANGED
|
@@ -10,11 +10,13 @@
|
|
|
10
10
|
* governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
import { defineConfig } from '@eslint/config-helpers';
|
|
13
|
-
import {
|
|
13
|
+
import { recommended } from './index.js';
|
|
14
14
|
|
|
15
15
|
export default defineConfig(
|
|
16
|
+
{
|
|
17
|
+
extends: [recommended],
|
|
18
|
+
},
|
|
16
19
|
{
|
|
17
20
|
files: ['**/*.js'],
|
|
18
|
-
extends: [base],
|
|
19
21
|
},
|
|
20
22
|
);
|
package/index.js
CHANGED
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
* governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
import globals from 'globals';
|
|
13
|
-
import { defineConfig } from '@eslint/config-helpers';
|
|
14
13
|
|
|
15
14
|
import bestPractices from './rules/best-practices.js';
|
|
16
15
|
import errors from './rules/errors.js';
|
|
@@ -23,7 +22,7 @@ import strict from './rules/strict.js';
|
|
|
23
22
|
|
|
24
23
|
import header from './rules/header.js';
|
|
25
24
|
|
|
26
|
-
const
|
|
25
|
+
const recommended = {
|
|
27
26
|
languageOptions: {
|
|
28
27
|
ecmaVersion: 2022,
|
|
29
28
|
sourceType: 'module',
|
|
@@ -105,7 +104,6 @@ const base = {
|
|
|
105
104
|
' ',
|
|
106
105
|
],
|
|
107
106
|
}],
|
|
108
|
-
|
|
109
107
|
'id-match': ['error', '^(?!.*?([wW][hH][iI][tT][eE]|[bB][lL][aA][cC][kK]).*[lL][iI][sS][tT]).*$', {
|
|
110
108
|
properties: true,
|
|
111
109
|
}],
|
|
@@ -116,31 +114,25 @@ const base = {
|
|
|
116
114
|
linterOptions: {
|
|
117
115
|
reportUnusedDisableDirectives: 'off',
|
|
118
116
|
},
|
|
117
|
+
ignores: ['eslint.config.js', '.releaserc.cjs'],
|
|
119
118
|
};
|
|
120
119
|
|
|
121
120
|
const source = {
|
|
122
|
-
...base,
|
|
123
121
|
files: ['src/**/*.js', 'test/dev/*.mjs'],
|
|
124
122
|
};
|
|
125
123
|
|
|
126
124
|
const test = {
|
|
127
|
-
...base,
|
|
128
125
|
files: ['test/**/*.js'],
|
|
129
126
|
languageOptions: {
|
|
130
|
-
...
|
|
127
|
+
...recommended.languageOptions,
|
|
131
128
|
globals: {
|
|
132
|
-
...
|
|
129
|
+
...recommended.languageOptions.globals,
|
|
133
130
|
...globals.mocha,
|
|
134
131
|
__testdir: true,
|
|
135
132
|
},
|
|
136
133
|
},
|
|
137
134
|
};
|
|
138
135
|
|
|
139
|
-
const recommended = defineConfig([
|
|
140
|
-
source,
|
|
141
|
-
test,
|
|
142
|
-
]);
|
|
143
|
-
|
|
144
136
|
export {
|
|
145
|
-
|
|
137
|
+
source, test, recommended,
|
|
146
138
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/eslint-config-helix",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.2",
|
|
4
4
|
"description": "Helix's ESLint config, based on Airbnb's style guide",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@eslint/config-helpers": "0.2.2",
|
|
30
30
|
"eslint-plugin-import": "2.31.0",
|
|
31
|
-
"globals": "15.
|
|
31
|
+
"globals": "15.15.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@semantic-release/changelog": "6.0.3",
|