Skip to content

Commit 229f272

Browse files
committed
Update eslint, and consistently format all JS code
1 parent a49d64f commit 229f272

27 files changed

+12738
-19543
lines changed

.eslintignore

-2
This file was deleted.

.eslintrc

-28
This file was deleted.

eslint.config.js

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import { Linter } from "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+
export default config;

0 commit comments

Comments
 (0)