forked from data-preservation-programs/singularity-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
46 lines (46 loc) · 1.18 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
module.exports = {
parserOptions: {
ecmaVersion: 'latest'
},
extends: [
'@nuxt/eslint-config',
'./.nuxt/.eslint.nuxt3-globals.json',
'plugin:vue/vue3-recommended'
],
ignorePatterns: [
'.nuxt/',
'.output/',
'dist/',
'.stories.js'
],
rules: {
'no-console': process.env.NODE_ENV !== 'development' ? 'error' : 'off',
'vue/html-closing-bracket-newline': ['error', {
singleline: 'never',
multiline: 'never'
}],
'vue/multiline-html-element-content-newline': 'off',
'vue/singleline-html-element-content-newline': ['error', {
ignoreWhenNoAttributes: true,
ignores: ['th', 'td', 'span', 'label']
}],
'no-trailing-spaces': ['error', {
skipBlankLines: true
}],
'vue/html-self-closing': 'off',
'vue/no-v-html': 'off',
'no-lonely-if': 'off',
'no-new': 'off',
'no-prototype-builtins': 'off',
'promise/param-names': 'off',
'multiline-ternary': 'off',
'vue/multi-word-component-names': 'off',
"vue/max-attributes-per-line": ["error", {
"singleline": {
"max": 3
}
}],
'vue/script-setup-uses-vars': 'error',
'vue/no-v-for-template-key': 'off'
}
}