Skip to content

Commit

Permalink
Eslint v9 (#379)
Browse files Browse the repository at this point in the history
* Update eslint plugins

* Eslint v9
  • Loading branch information
BPScott authored Nov 30, 2024
1 parent 8fc0a35 commit 18f925c
Show file tree
Hide file tree
Showing 5 changed files with 273 additions and 504 deletions.
6 changes: 0 additions & 6 deletions .eslintignore

This file was deleted.

13 changes: 0 additions & 13 deletions .eslintrc.cjs

This file was deleted.

24 changes: 24 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import js from '@eslint/js';
import eslintPluginN from 'eslint-plugin-n';
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';

export default [
js.configs.recommended,
eslintPluginN.configs['flat/recommended-module'],
eslintPluginPrettierRecommended,
{
files: ['test/*.test.js'],
rules: {
// Bump version to allow using `test` apis that were still marked as
// experimental in node 18
'n/no-unsupported-features/node-builtins': ['error', {version: '^20.13'}],
},
},
{
ignores: [
// Ignore everything in the fixtures dir except the stylelint config
'test/fixtures',
'!test/fixtures/stylelint.config.js',
],
},
];
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,11 @@
"stylelint": ">=16.0.0"
},
"devDependencies": {
"eslint": "^8.44.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-n": "^16.3.1",
"eslint-plugin-prettier": "^5.0.0",
"@eslint/js": "^9.16.0",
"eslint": "^9.16.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-n": "^17.14.0",
"eslint-plugin-prettier": "^5.2.1",
"postcss": "^8.4.49",
"postcss-html": "^1.7.0",
"postcss-less": "^6.0.0",
Expand Down
Loading

0 comments on commit 18f925c

Please sign in to comment.