Skip to content

Support for ESLint 8.x.x. Drop support for node 12 #358

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/[email protected]
with:
node-version: '12.x'
node-version: '14.x'
- run: npm ci --no-progress
- run: npm run lint

Expand All @@ -27,7 +27,7 @@ jobs:

strategy:
matrix:
node: [12, 14]
node: [14, 16]
os: [ubuntu-latest, windows-latest]

steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/[email protected]
with:
node-version: '12.x'
node-version: '14.x'
registry-url: 'https://registry.npmjs.org'
- run: npm ci --no-progress --production
- run: npm version --no-push --no-git-tag-version --yes ${{ github.event.release.tag_name }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/[email protected]
with:
node-version: '12.x'
node-version: '14.x'
registry-url: 'https://registry.npmjs.org'
- run: npm ci --no-progress --production
- run: npm version --no-push --no-git-tag-version --yes ${{ github.event.release.tag_name }}
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

### Node

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

## Install project dependencies
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ First thing first, let's make sure you have the necessary pre-requisites.

#### Node

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

### Command
Expand Down
12 changes: 12 additions & 0 deletions export-maps-resolver.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// TODO: Remove workaround for https://github.com/facebook/jest/issues/9771
// after Jest v28 is released.
// eslint-disable-next-line import/no-extraneous-dependencies
const enhancedResolve = require('enhanced-resolve');

const resolver = enhancedResolve.create.sync({
conditionNames: ['require', 'node', 'default'],
extensions: ['.js', '.json'],
mainFields: ['exports', 'main', 'require'],
});

module.exports = (request, options) => resolver(options.basedir, request);
5 changes: 1 addition & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@ const vuex = require.resolve('./rules/vuex');
const testId = require.resolve('./rules/test-id');

module.exports = {
extends: ['plugin:vue/recommended', a11y, vue, vuex, testId],
parserOptions: {
parser: 'babel-eslint',
},
extends: ['plugin:vue/base', 'plugin:vue/recommended', a11y, vue, vuex, testId],
plugins: ['vue', 'vuejs-accessibility', 'test-id'],
env: {
es6: true,
Expand Down
3 changes: 3 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
resolver: './export-maps-resolver.js',
};
Loading