forked from SyedWasiHaider/vue-highlightable-input
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
39 lines (39 loc) · 1.27 KB
/
.eslintrc.cjs
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
// Reference: https://eslint.vuejs.org/user-guide/
module.exports = {
env: {
browser: true,
es6: true,
node: true,
mocha: true
},
extends: [
'eslint:recommended',
// 'plugin:vue/vue3-recommended',
'plugin:vue/recommended', // Vue.js 2.x
],
rules: {
"arrow-spacing": ["error", { "before": true, "after": true }],
"brace-style": ["error"],
"camelcase": ["error"],
"comma-spacing": ["error", { "before": false, "after": true }],
"curly": ["error", "multi-line", "consistent"],
"dot-notation": ["error"],
"eqeqeq": ["warn", "always", {"null": "ignore"}],
"func-call-spacing": ["error", "never"],
"indent": ["error", 2],
"key-spacing": ["error", { "beforeColon": false }],
"keyword-spacing": ["error", { "before": true, "after": true }],
"no-console": ["error"],
"no-trailing-spaces": ["error"],
"no-unreachable": ["error"],
"no-var": ["error"],
"object-curly-spacing": ["error", "always"],
"one-var-declaration-per-line": ["error", "always"],
"semi": ["error", "never"],
"space-before-blocks": ["error"],
"space-infix-ops": ["error"],
"space-unary-ops": ["error"],
"spaced-comment": ["error", "always"],
"quotes": ["error", "single"]
}
}