forked from riophae/vue-treeselect
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
62 lines (62 loc) · 1.37 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
module.exports = {
root: true,
extends: [
"plugin:vue/base",
"eslint:recommended",
"plugin:vue/recommended",
"prettier",
],
plugins: ["react"],
parser: "vue-eslint-parser",
parserOptions: {
ecmaVersion: 2020,
ecmaFeatures: {
jsx: true,
},
},
env: {
node: true,
},
globals: {
PKG_VERSION: true,
},
settings: {
"import/resolver": {
node: null,
webpack: {
config: "build/webpack-configs/base.js",
},
},
},
rules: {
"import/no-named-as-default": 0,
"unicorn/consistent-function-scoping": 0,
"vue/attributes-order": 0,
"vue/no-v-html": 0,
"vue/multi-word-component-names": 0,
"vue/component-definition-name-casing": 0,
"no-confusing-arrow": 0,
"no-console": 0,
"no-warning-comments": 0,
"no-undefined": 0,
"prefer-destructuring": 0,
"no-unused-vars": ["error", { argsIgnorePattern: "h" }],
},
overrides: [
{
files: ["src/**"],
rules: {
"unicorn/no-for-loop": 0,
"unicorn/prefer-includes": 0,
"no-restricted-syntax": [
"error",
{
selector:
"CallExpression[callee.object.name='console'][callee.property.name!=/^(log|warn|error|info|trace)$/]",
message: "Unexpected property on console object was called",
},
],
},
},
],
};