forked from CVEProject/cve-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
35 lines (35 loc) · 967 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
module.exports = {
root: true,
env: {
node: true,
},
extends: [
'plugin:vue/essential',
'@vue/airbnb',
],
parserOptions: {
parser: '@babel/eslint-parser',
},
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'vuejs-accessibility/no-redundant-roles': 'off',
'vuejs-accessibility/heading-has-content': 'off',
'vuejs-accessibility/label-has-for': 'off',
'vuejs-accessibility/form-control-has-label': 'off',
'vuejs-accessibility/aria-role': 'off',
'vuejs-accessibility/iframe-has-title': 'off',
'vuejs-accessibility/click-events-have-key-events': 'off',
'function-paren-newline': 'off',
'prefer-regex-literals': 'off',
'function-call-argument-newline': 'off'
},
overrides: [
{
files: ['*.vue', '*.js'],
rules: {
'max-len': ['error', 150],
},
},
],
};