-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.mjs
More file actions
62 lines (61 loc) · 1.6 KB
/
Copy patheslint.config.mjs
File metadata and controls
62 lines (61 loc) · 1.6 KB
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
56
57
58
59
60
61
62
import withNuxt from './.nuxt/eslint.config.mjs'
import tailwind from 'eslint-plugin-tailwindcss'
import vue from 'eslint-plugin-vue'
export default withNuxt(
{
ignores: [
'/dist',
'/src-capacitor',
'/src-cordova',
'/.quasar',
'/.nuxt',
'/.output',
'/node_modules',
'.eslintrc.js',
'/src-ssr',
'/quasar.config.*.temporary.compiled*',
],
},
...tailwind.configs['flat/recommended'],
...vue.configs['flat/recommended'],
{
rules: {
'@typescript-eslint/no-namespace': 'off',
'prefer-promise-reject-errors': 'off',
eqeqeq: 'off',
quotes: ['error', 'single', { avoidEscape: true }],
'@typescript-eslint/explicit-function-return-type': 'off',
'no-debugger': 'off',
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': ['warn'],
'comma-dangle': ['error', {
arrays: 'always-multiline',
objects: 'always-multiline',
imports: 'always-multiline',
exports: 'always-multiline',
functions: 'never',
}],
'vue/max-attributes-per-line': ['error', {
singleline: {
max: 2,
},
multiline: {
max: 1,
},
}],
'vue/component-name-in-template-casing': ['error', 'PascalCase', {
registeredComponentsOnly: false,
ignores: [],
}],
'vue/multi-word-component-names': 'off',
indent: 'off',
'tailwindcss/no-custom-classname': 'off',
semi: ['error', 'never'],
},
settings: {
tailwindcss: {
config: 'tailwind.config.cjs',
},
},
}
)