forked from FAIRDataTeam/FAIRDataPoint-client
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
42 lines (42 loc) · 1.17 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
module.exports = {
root: true,
env: {
node: true,
},
extends: [
'plugin:vue/recommended',
'@vue/airbnb',
'@vue/typescript',
],
rules: {
'class-methods-use-this': 'off',
'no-alert': 'off',
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-unused-vars': ['off'],
semi: ['error', 'never'],
'import/extensions': ['error', 'always', {
js: 'never',
mjs: 'never',
jsx: 'never',
ts: 'never',
tsx: 'never',
vue: 'always',
}],
'import/prefer-default-export': 'off',
'vue/component-name-in-template-casing': ['error', 'kebab-case', {
registeredComponentsOnly: false,
ignores: [],
}],
'vuejs-accessibility/click-events-have-key-events': 'off',
'vuejs-accessibility/form-control-has-label': 'off',
'vuejs-accessibility/label-has-for': 'off',
'vuejs-accessibility/anchor-has-content': 'off',
'max-classes-per-file': 'off',
'no-use-before-define': 'off',
'vue/multi-word-component-names': 'off',
},
parserOptions: {
parser: '@typescript-eslint/parser',
},
}