-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
55 lines (53 loc) · 1.36 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
'use strict'
module.exports = {
root: true,
parserOptions: {
ecmaVersion: 6,
},
env: {
node: true,
mocha: true,
},
extends: ['plugin:eslint-plugin/recommended', 'plugin:vue-libs/recommended'],
plugins: ['eslint-plugin'],
rules: {
'eslint-plugin/report-message-format': ['error', "^[A-Z`'{].*\\.$"],
'eslint-plugin/prefer-placeholders': 'error',
'eslint-plugin/consistent-output': 'error',
'no-mixed-operators': 'error',
'space-before-function-paren': 'off',
'vue/comma-dangle': ['error', 'always-multiline'],
'comma-dangle': ['error', 'always-multiline'],
'semi': ['error', 'always'],
'no-mixed-operators': [
"error",
{
"groups": [
["&", "|", "^", "~", "<<", ">>", ">>>"],
["==", "!=", "===", "!==", ">", ">=", "<", "<="],
["&&", "||"],
["in", "instanceof"]
],
"allowSamePrecedence": true
}
],
'curly': [1, 'all'],
'brace-style': [2, '1tbs'],
},
overrides: [
{
files: ['lib/rules/*.js'],
rules: {
'consistent-docs-description': 'error',
'no-invalid-meta': 'error',
'eslint-plugin/require-meta-type': 'error',
'require-meta-docs-url': [
'error',
{
pattern: `https://eslint.vuejs.org/rules/{{name}}.html`,
},
],
},
},
],
}