-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patheslint.config.js
40 lines (39 loc) · 954 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
34
35
36
37
38
39
40
const eslintPluginPrettier = require("eslint-plugin-prettier");
const globals = require("globals");
const eslintPluginNode = require("eslint-plugin-node");
module.exports = [
{
ignores: ["**/*.min.js", ".vscode/**/*", "eslint.config.js", "node_modules/**/*"],
},
{
languageOptions: {
ecmaVersion: "latest",
globals: {
...globals.browser,
},
parserOptions: {
ecmaFeatures: {
modules: true,
},
},
},
plugins: {
node: eslintPluginNode,
prettier: eslintPluginPrettier,
},
rules: {
"class-methods-use-this": "off",
"consistent-return": "off",
indent: ["error", "tab"],
"no-console": "off",
"no-continue": "off",
"no-html-link-for-pages": "off",
"no-param-reassign": "off",
"no-restricted-syntax": "off",
"no-unused-vars": ["error", { argsIgnorePattern: "^_", varsIgnorePattern: "^_" }],
"prettier/prettier": "warn",
radix: "off",
semi: ["error", "always"],
},
},
];