2023-07-24 10:34:24 +00:00
|
|
|
module.exports = {
|
|
|
|
root: true,
|
|
|
|
parserOptions: {
|
|
|
|
ecmaVersion: 2021,
|
2023-08-16 14:48:13 +00:00
|
|
|
sourceType: "module"
|
2023-07-24 10:34:24 +00:00
|
|
|
},
|
|
|
|
env: {
|
|
|
|
browser: true,
|
|
|
|
es2021: true,
|
2023-08-16 14:48:13 +00:00
|
|
|
node: true
|
2023-07-24 10:34:24 +00:00
|
|
|
},
|
|
|
|
extends: ["eslint:recommended"],
|
|
|
|
rules: {
|
|
|
|
indent: ["error", 2],
|
|
|
|
"linebreak-style": ["error", "unix"],
|
|
|
|
quotes: ["error", "double"],
|
|
|
|
semi: ["error", "always"],
|
|
|
|
"no-unused-vars": [
|
|
|
|
"error",
|
2023-08-16 14:48:13 +00:00
|
|
|
{ vars: "all", args: "after-used", ignoreRestSiblings: false }
|
2023-07-24 10:34:24 +00:00
|
|
|
],
|
2023-08-16 14:48:13 +00:00
|
|
|
"no-console": "warn"
|
|
|
|
}
|
2023-07-24 10:34:24 +00:00
|
|
|
};
|