@adobe/eslint-config-helix 1.3.2 → 2.0.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.
@@ -0,0 +1,41 @@
1
+ name: "CodeQL"
2
+
3
+ on:
4
+ push:
5
+ branches: [ "main" ]
6
+ pull_request:
7
+ branches: [ "main" ]
8
+ schedule:
9
+ - cron: "59 10 * * 5"
10
+
11
+ jobs:
12
+ analyze:
13
+ name: Analyze
14
+ runs-on: ubuntu-latest
15
+ permissions:
16
+ actions: read
17
+ contents: read
18
+ security-events: write
19
+
20
+ strategy:
21
+ fail-fast: false
22
+ matrix:
23
+ language: [ javascript ]
24
+
25
+ steps:
26
+ - name: Checkout
27
+ uses: actions/checkout@v3
28
+
29
+ - name: Initialize CodeQL
30
+ uses: github/codeql-action/init@v2
31
+ with:
32
+ languages: ${{ matrix.language }}
33
+ queries: +security-and-quality
34
+
35
+ - name: Autobuild
36
+ uses: github/codeql-action/autobuild@v2
37
+
38
+ - name: Perform CodeQL Analysis
39
+ uses: github/codeql-action/analyze@v2
40
+ with:
41
+ category: "/language:${{ matrix.language }}"
@@ -9,11 +9,11 @@ jobs:
9
9
  runs-on: ubuntu-latest
10
10
  if: "!contains(github.event.head_commit.message, '[skip ci]')"
11
11
  steps:
12
- - uses: actions/checkout@v2
13
- - name: Use Node.js 14.x
14
- uses: actions/setup-node@v2
12
+ - uses: actions/checkout@v3
13
+ - name: Use Node.js 18.x
14
+ uses: actions/setup-node@v3
15
15
  with:
16
- node-version: '14.x'
16
+ node-version: '18.x'
17
17
  - run: npm install
18
18
  - run: npm test
19
19
  - run: npm run semantic-release
package/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ # [2.0.0](https://github.com/adobe/helix-eslint-config/compare/v1.3.2...v2.0.0) (2023-01-23)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * upgrade to 2023 and default to modern ecma version ([7116410](https://github.com/adobe/helix-eslint-config/commit/71164103605a9b50033b3c40e8c47b9401ea01f6))
7
+
8
+
9
+ ### BREAKING CHANGES
10
+
11
+ * default source type is module and requires eslint-import-resolver-exports plugin.
12
+
1
13
  ## [1.3.2](https://github.com/adobe/helix-eslint-config/compare/v1.3.1...v1.3.2) (2022-01-06)
2
14
 
3
15
 
package/index.js CHANGED
@@ -16,18 +16,21 @@ module.exports = {
16
16
 
17
17
  env: {
18
18
  node: true,
19
- es2020: true,
19
+ es6: true,
20
20
  },
21
21
  parserOptions: {
22
- sourceType: 'script',
23
- ecmaVersion: 11,
22
+ sourceType: 'module',
23
+ ecmaVersion: 2022,
24
24
  },
25
25
  plugins: [
26
26
  'header',
27
+ 'import',
27
28
  ],
28
29
  rules: {
29
30
  strict: 0,
30
31
 
32
+ 'import/prefer-default-export': 0,
33
+
31
34
  // Forbid multiple statements in one line
32
35
  'max-statements-per-line': ['error', { max: 1 }],
33
36
 
@@ -59,11 +62,11 @@ module.exports = {
59
62
  }],
60
63
 
61
64
  // don't enforce extension rules
62
- 'import/extensions': 0,
65
+ 'import/extensions': [2, 'ignorePackages'],
63
66
 
64
67
  // enforce license header
65
68
  'header/header': [2, 'block', ['',
66
- { pattern: ' * Copyright \\d{4} Adobe\\. All rights reserved\\.', template: ' * Copyright 2022 Adobe. All rights reserved.' },
69
+ { pattern: ' * Copyright \\d{4} Adobe\\. All rights reserved\\.', template: ' * Copyright 2023 Adobe. All rights reserved.' },
67
70
  ' * This file is licensed to you under the Apache License, Version 2.0 (the "License");',
68
71
  ' * you may not use this file except in compliance with the License. You may obtain a copy',
69
72
  ' * of the License at http://www.apache.org/licenses/LICENSE-2.0',
@@ -79,4 +82,16 @@ module.exports = {
79
82
  properties: true,
80
83
  }],
81
84
  },
85
+ settings: {
86
+ // see
87
+ // - https://github.com/import-js/eslint-plugin-import/issues/1810
88
+ // - https://www.npmjs.com/package/eslint-import-resolver-exports
89
+ 'import/resolver': {
90
+ exports: {},
91
+ },
92
+ },
93
+ globals: {
94
+ __rootdir: true,
95
+ __testdir: true,
96
+ },
82
97
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/eslint-config-helix",
3
- "version": "1.3.2",
3
+ "version": "2.0.0",
4
4
  "description": "Helix's ESLint config, based on Airbnb's style guide",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -27,12 +27,13 @@
27
27
  "eslint-config-airbnb-base": "15.0.0"
28
28
  },
29
29
  "devDependencies": {
30
- "@semantic-release/changelog": "6.0.1",
30
+ "@semantic-release/changelog": "6.0.2",
31
31
  "@semantic-release/git": "10.0.1",
32
- "eslint": "8.6.0",
32
+ "eslint": "8.32.0",
33
+ "eslint-import-resolver-exports": "1.0.0-beta.4",
33
34
  "eslint-plugin-header": "3.1.1",
34
- "eslint-plugin-import": "2.25.3",
35
- "semantic-release": "18.0.1"
35
+ "eslint-plugin-import": "2.27.5",
36
+ "semantic-release": "20.0.3"
36
37
  },
37
38
  "peerDependencies": {
38
39
  "eslint": "^8.0.0"