-
-
Notifications
You must be signed in to change notification settings - Fork 42
/
Copy path.eslintrc.js
29 lines (29 loc) · 868 Bytes
/
.eslintrc.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
const extensions = [".mjs", ".js", ".cjs", ".json"];
module.exports = {
root: true,
extends: [
"eslint:recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:unicorn/recommended",
"prettier",
],
env: { node: true, browser: false, es6: true },
parserOptions: { sourceType: "module" },
plugins: ["unicorn"],
rules: {
"no-await-in-loop": "error",
"no-var": "error",
"prefer-const": "error",
"prefer-template": "error",
"sort-vars": "error",
"unicorn/no-null": "off",
"unicorn/prefer-json-parse-buffer": "off",
"unicorn/prefer-module": "off",
"unicorn/prefer-node-protocol": "off",
"unicorn/prefer-set-has": "off",
"unicorn/prevent-abbreviations": "off",
yoda: ["error", "never", { exceptRange: true }],
},
settings: { "import/resolver": { node: { extensions } } },
};