forked from vuejs/eslint-plugin-vue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
38 lines (35 loc) · 849 Bytes
/
.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
'use strict'
const version = require('./package.json').version
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'
},
overrides: [{
files: ['lib/rules/*.js'],
rules: {
"consistent-docs-description": "error",
"no-invalid-meta": "error",
"require-meta-docs-url": ["error", {
"pattern": `https://github.com/vuejs/eslint-plugin-vue/blob/v${version}/docs/rules/{{name}}.md`
}]
}
}]
}