forked from techouse/intl-date-time
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
78 lines (78 loc) · 1.98 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
module.exports = {
parserOptions: {
"ecmaVersion": 2018,
"parser": "babel-eslint",
"sourceType": "module"
},
extends: [
"airbnb-base",
"eslint:recommended",
"plugin:vue/recommended",
],
globals: {
"process": true,
"require": true,
"moment": true,
"Nova": true,
"Vue": true,
},
env: {
browser: true,
es6: true,
node: true
},
settings: {
"import/resolver": {
node: {
extensions: [".mjs", ".js", ".json", ".vue"]
}
},
"import/extensions": [
".js",
".mjs",
".jsx",
".vue"
],
"import/core-modules": [],
"import/ignore": [
"node_modules",
"\\.(coffee|scss|css|less|hbs|svg|json)$",
]
},
rules: {
"no-multi-spaces": 0,
"no-debugger": process.env.NODE_ENV === "production" ? 2 : 0,
"no-console": 0,
"camelcase": "off",
"template-curly-spacing" : "off",
"indent": "off",
"linebreak-style": ["error", "unix"],
"quotes": ["error", "double"],
"semi": ["error", "never"],
"max-len": ["error", 120, 2, {
ignoreUrls: true,
ignoreComments: false,
ignoreRegExpLiterals: true,
ignoreStrings: true,
ignoreTemplateLiterals: true,
}],
"no-param-reassign": ["error", { "props": false }],
"no-shadow": ["error", { "allow": ["state"] }],
"object-curly-newline": "off",
"vue/html-indent": ["error", 4],
"vue/max-attributes-per-line": 0,
"import/extensions": ["error", "always", {
js: "never",
mjs: "never",
jsx: "never",
ts: "never",
tsx: "never",
vue: "never"
}],
"no-new": "off",
},
plugins: [
"import",
"vue"
]
}