Skip to content

Commit 1d37d9f

Browse files
committed
Upgrade to eslint v9 and get tests passing
1 parent 9235b25 commit 1d37d9f

20 files changed

+1200
-1568
lines changed

.eslintrc.js

-39
This file was deleted.

eslint.config.js

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
const eslintPlugin = require('eslint-plugin-eslint-plugin')
2+
const github = require('eslint-plugin-github')
3+
4+
module.exports = [
5+
github.getFlatConfigs().recommended,
6+
eslintPlugin.configs['flat/recommended'],
7+
{
8+
languageOptions: {
9+
parserOptions: {
10+
ecmaVersion: 'latest',
11+
},
12+
},
13+
env: {
14+
commonjs: true,
15+
node: true,
16+
},
17+
rules: {
18+
'import/no-commonjs': 'off',
19+
'no-shadow': 'off',
20+
'no-unused-vars': [
21+
'error',
22+
{
23+
varsIgnorePattern: '^_',
24+
},
25+
],
26+
},
27+
overrides: [
28+
{
29+
files: ['**/*.test.js'],
30+
env: {
31+
jest: true,
32+
},
33+
},
34+
{
35+
files: ['.eslintrc.js'],
36+
rules: {
37+
'filenames/match-regex': 'off',
38+
},
39+
},
40+
],
41+
}
42+
]

0 commit comments

Comments
 (0)