Skip to content

Commit 0dc4eba

Browse files
authored
Use eslint v9 + flat config (#490)
1 parent 733ef42 commit 0dc4eba

File tree

3 files changed

+19
-9
lines changed

3 files changed

+19
-9
lines changed

.eslintrc.yaml

Lines changed: 0 additions & 7 deletions
This file was deleted.

eslint.config.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import problems from 'eslint-config-problems'
2+
import globals from 'globals'
3+
4+
export default [
5+
problems,
6+
{
7+
languageOptions: {
8+
globals: {
9+
...globals.node,
10+
},
11+
},
12+
rules: {
13+
'no-console': 'off',
14+
},
15+
},
16+
]

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@
3434
"ava": "^3.1.0",
3535
"c8": "^10.0.0",
3636
"coveralls": "^3.0.0",
37-
"eslint": "^8.55.0",
38-
"eslint-config-problems": "8.0.0",
37+
"eslint": "^9.22.0",
38+
"eslint-config-problems": "9.0.0",
39+
"globals": "^16.0.0",
3940
"postcss": "^8.0.4",
4041
"postcss-import": "^16.0.0",
4142
"prettier": "~3.5.0",

0 commit comments

Comments
 (0)