Skip to content

Commit b716b12

Browse files
authored
Merge pull request #170 from css-george/eslint9
Update to new eslint config format
2 parents 6d6914b + 9f6fc9f commit b716b12

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

.eslintrc renamed to eslint.config.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
{
2-
"root": true,
3-
"parserOptions": {
1+
module.exports = [{
2+
languageOptions: {
43
"ecmaVersion": 2017
54
},
6-
"rules": {
5+
rules: {
76
"brace-style": ["error", "1tbs"],
87
"curly": "error",
98
"eol-last": ["error", "always"],
@@ -21,4 +20,4 @@
2120
"radix": "error",
2221
"semi": ["error", "always"],
2322
}
24-
}
23+
}];

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"css variables"
1818
],
1919
"scripts": {
20-
"lint": "eslint .",
20+
"lint": "eslint",
2121
"test": "tap test/*.js",
2222
"preversion": "npm run lint && npm test",
2323
"postversion": "git push && git push --tags"

0 commit comments

Comments
 (0)