Skip to content

Commit 560ed5c

Browse files
authored
Update eslint, and consistently format all JS code (#7170)
1 parent a49d64f commit 560ed5c

27 files changed

+12737
-19543
lines changed

.eslintignore

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

.eslintrc

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

eslint.config.js

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
const { Linter } = require("eslint");
2+
3+
/** @type {Linter.Config} */
4+
const config = [
5+
{
6+
rules: {
7+
indent: ["error", 2],
8+
quotes: ["warn", "single"],
9+
"linebreak-style": ["error", "unix"],
10+
semi: ["error", "always"],
11+
"no-console": ["warn"]
12+
},
13+
languageOptions: {
14+
globals: {
15+
es6: true,
16+
node: true
17+
}
18+
},
19+
ignores: [
20+
"node_modules/",
21+
"build/",
22+
"dist/",
23+
"coverage/"
24+
]
25+
}
26+
];
27+
28+
module.exports = config;

0 commit comments

Comments
 (0)