forked from datalab-org/datalab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
37 lines (37 loc) · 1.22 KB
/
.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
30
31
32
33
34
35
36
37
module.exports = {
root: true,
env: {
node: true,
"cypress/globals": true,
},
extends: [
"plugin:vue/vue3-recommended",
"eslint:recommended",
"plugin:prettier/recommended",
"@vue/prettier",
"plugin:cypress/recommended",
],
parserOptions: {
parser: "@babel/eslint-parser",
requireConfigFile: false,
babelOptions: {
babelrc: false,
configFile: false,
presets: ["@vue/cli-plugin-babel/preset"],
plugins: ["@babel/plugin-transform-export-namespace-from"],
},
},
rules: {
//"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
"vue/multi-word-component-names": "off",
// Rule disable for item_id, block_id and collection_id
"vue/prop-name-casing": "off",
"vue/no-unused-components": process.env.NODE_ENV === "production" ? "error" : "warn",
"vue/no-unused-vars": process.env.NODE_ENV === "production" ? "error" : "warn",
"cypress/no-assigning-return-values": "warn",
"cypress/no-unnecessary-waiting": "warn",
"cypress/unsafe-to-chain-command": "warn",
"prettier/prettier": process.env.NODE_ENV === "production" ? "error" : "warn",
},
};