-
-
Notifications
You must be signed in to change notification settings - Fork 63
/
eslint.config.js
33 lines (32 loc) · 952 Bytes
/
eslint.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import js from "@eslint/js";
import globals from "globals";
import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended";
import importPlugin from 'eslint-plugin-import';
export default [
js.configs.recommended,
eslintPluginPrettierRecommended,
importPlugin.flatConfigs.recommended,
{
languageOptions: {
ecmaVersion: "latest",
sourceType: "module",
globals: {
...globals.browser,
...globals.node,
...globals.mocha,
}
},
rules: {
"eol-last": "error",
"import/extensions": ["error", "always"],
'import/no-unresolved': 0, // https://github.com/import-js/eslint-plugin-import/issues/3082
"no-console": "error",
"no-constant-condition": ["error", { "checkLoops": false }],
"no-eval": "error",
"no-implied-eval": "error",
"no-trailing-spaces": "error",
"prefer-const": "error",
"semi": "error"
},
},
];