Skip to content

Commit

Permalink
chore(dev-deps): migrate eslint-plugin-node to eslint-plugin-n 17.10.2
Browse files Browse the repository at this point in the history
  • Loading branch information
renovate[bot] authored and 100terres committed Sep 15, 2024
1 parent d7628b1 commit 52b6c85
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 59 deletions.
15 changes: 4 additions & 11 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,9 @@ module.exports = {
},
},

// NodeJS files
// NodeJS files (CommonJS)
{
extends: ['plugin:node/recommended'],
extends: ['plugin:n/recommended-script'],
files: [
'**/*.eslintrc.js',
'.stylelintrc.js',
Expand All @@ -214,8 +214,9 @@ module.exports = {
],
},

// NodeJS files (ES Modules)
{
extends: ['plugin:node/recommended-module'],
extends: ['plugin:n/recommended-module'],
parserOptions: {
project: './tsconfig.json',
ecmaVersion: 2020,
Expand All @@ -226,14 +227,6 @@ module.exports = {
es6: false,
},
files: ['rollup.config.js'],
rules: {
'node/no-unsupported-features/es-syntax': [
'error',
{
ignores: ['modules'],
},
],
},
},

// Typescript files
Expand Down
2 changes: 1 addition & 1 deletion a11y-audit-parse.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// eslint-disable-next-line import/no-unresolved, node/no-missing-require
// eslint-disable-next-line import/no-unresolved, n/no-missing-require
const a11yReport = require('./test-reports/lighthouse/a11y.report.json');

const a11yScore = a11yReport.categories.accessibility.score;
Expand Down
2 changes: 1 addition & 1 deletion browser-test-harness.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ waitOn({
});

child.on('exit', (code) => {
// eslint-disable-next-line no-process-exit
// eslint-disable-next-line n/no-process-exit
process.exit(code);
});
})
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@
"eslint-plugin-import": "2.30.0",
"eslint-plugin-jest": "27.9.0",
"eslint-plugin-jsx-a11y": "6.10.0",
"eslint-plugin-node": "11.1.0",
"eslint-plugin-n": "17.10.2",
"eslint-plugin-prettier": "5.2.1",
"eslint-plugin-react": "7.36.1",
"eslint-plugin-react-hooks": "4.6.2",
Expand Down
96 changes: 51 additions & 45 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 52b6c85

Please sign in to comment.