2021-07-21 00:08:57 +00:00
|
|
|
module.exports = {
|
|
|
|
"env": {
|
|
|
|
"browser": true,
|
|
|
|
"es2021": true,
|
|
|
|
"node": true,
|
|
|
|
},
|
|
|
|
"extends": "eslint:recommended",
|
2021-07-22 21:12:27 +00:00
|
|
|
"parser": "@babel/eslint-parser",
|
2021-07-21 00:08:57 +00:00
|
|
|
"rules": {
|
|
|
|
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
|
|
|
|
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
|
|
|
|
"indent": [
|
|
|
|
"error",
|
|
|
|
4
|
|
|
|
],
|
|
|
|
"quotes": [
|
|
|
|
"error",
|
|
|
|
"double"
|
|
|
|
],
|
|
|
|
"semi": [
|
|
|
|
"error",
|
|
|
|
"always"
|
|
|
|
],
|
|
|
|
"comma-dangle": ["error", "only-multiline"],
|
2021-07-22 21:12:27 +00:00
|
|
|
"space-before-function-paren": ["error", {
|
|
|
|
"anonymous": "always",
|
|
|
|
"named": "never",
|
|
|
|
"asyncArrow": "always"
|
|
|
|
}]
|
2021-07-21 00:08:57 +00:00
|
|
|
}
|
|
|
|
};
|