-
Notifications
You must be signed in to change notification settings - Fork 71
Expand file tree
/
Copy path.eslintrc.js
More file actions
48 lines (42 loc) · 1.28 KB
/
.eslintrc.js
File metadata and controls
48 lines (42 loc) · 1.28 KB
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
41
42
43
44
45
46
47
48
module.exports = {
env: {
browser: true,
es6: true,
node: true
},
globals: {
Atomics: "readonly",
SharedArrayBuffer: "readonly"
},
// Position is important, the last rules take precident here. For the least amount of prettier conficts with other eslint plugins.
// it has to come last
extends: ["eslint:recommended", "plugin:vue/recommended", "@vue/typescript", "prettier/vue"],
parserOptions: {
ecmaVersion: 2018,
sourceType: "module",
parser: "@typescript-eslint/parser"
},
rules: {
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
"linebreak-style": ["error", "unix"],
quotes: ["warn", "double"],
semi: ["warn", "always"],
"no-unused-vars": "off",
"no-case-declarations": "off",
"vue/max-attributes-per-line": "off",
"no-prototype-builtins": "off",
"space-before-function-paren": "off",
"no-useless-escape": "off",
"no-empty-pattern": "warn"
},
ignorePatterns: ["src/test/**", "tests/**", "**/examples/**", "**/parameterMenu.js", "src/assets/**"],
overrides: [
{
files: ["**/__tests__/*.{j,t}s?(x)", "**/tests/unit/**/*.spec.{j,t}s?(x)"],
env: {
mocha: true
}
}
]
};