Skip to content

Commit 6084385

Browse files
authored
Support for ESLint 8.x.x. Drop support for node 12 (#358)
* Drop support for node 12 * Add ESLint 8 support * Bump dep
1 parent 22a2bb0 commit 6084385

13 files changed

+332
-9280
lines changed

.github/workflows/ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- uses: actions/checkout@v3
1717
- uses: actions/[email protected]
1818
with:
19-
node-version: '12.x'
19+
node-version: '14.x'
2020
- run: npm ci --no-progress
2121
- run: npm run lint
2222

@@ -27,7 +27,7 @@ jobs:
2727

2828
strategy:
2929
matrix:
30-
node: [12, 14]
30+
node: [14, 16]
3131
os: [ubuntu-latest, windows-latest]
3232

3333
steps:

.github/workflows/prerelease.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- uses: actions/checkout@v3
1212
- uses: actions/[email protected]
1313
with:
14-
node-version: '12.x'
14+
node-version: '14.x'
1515
registry-url: 'https://registry.npmjs.org'
1616
- run: npm ci --no-progress --production
1717
- run: npm version --no-push --no-git-tag-version --yes ${{ github.event.release.tag_name }}

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- uses: actions/checkout@v3
1212
- uses: actions/[email protected]
1313
with:
14-
node-version: '12.x'
14+
node-version: '14.x'
1515
registry-url: 'https://registry.npmjs.org'
1616
- run: npm ci --no-progress --production
1717
- run: npm version --no-push --no-git-tag-version --yes ${{ github.event.release.tag_name }}

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
### Node
66

7-
* [Node.js](https://nodejs.org/) - v12.0.0+
7+
* [Node.js](https://nodejs.org/) - v14.0.0+
88
* [npm](https://www.npmjs.com/) - v6.0.0+
99

1010
## Install project dependencies

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ First thing first, let's make sure you have the necessary pre-requisites.
2020

2121
#### Node
2222

23-
* [Node.js](https://nodejs.org/) - v12.0.0+
23+
* [Node.js](https://nodejs.org/) - v14.0.0+
2424
* [npm](http://npmjs.com) - v6.0.0+
2525

2626
### Command

export-maps-resolver.js

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// TODO: Remove workaround for https://github.com/facebook/jest/issues/9771
2+
// after Jest v28 is released.
3+
// eslint-disable-next-line import/no-extraneous-dependencies
4+
const enhancedResolve = require('enhanced-resolve');
5+
6+
const resolver = enhancedResolve.create.sync({
7+
conditionNames: ['require', 'node', 'default'],
8+
extensions: ['.js', '.json'],
9+
mainFields: ['exports', 'main', 'require'],
10+
});
11+
12+
module.exports = (request, options) => resolver(options.basedir, request);

index.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@ const vuex = require.resolve('./rules/vuex');
44
const testId = require.resolve('./rules/test-id');
55

66
module.exports = {
7-
extends: ['plugin:vue/recommended', a11y, vue, vuex, testId],
8-
parserOptions: {
9-
parser: 'babel-eslint',
10-
},
7+
extends: ['plugin:vue/base', 'plugin:vue/recommended', a11y, vue, vuex, testId],
118
plugins: ['vue', 'vuejs-accessibility', 'test-id'],
129
env: {
1310
es6: true,

jest.config.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
resolver: './export-maps-resolver.js',
3+
};

0 commit comments

Comments
 (0)