-
-
Notifications
You must be signed in to change notification settings - Fork 26
/
.eslintrc.js
40 lines (40 loc) · 1.14 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
module.exports = {
root: true,
env: {
browser: true,
node: true,
},
ignorePatterns: ['dist/**/*', '.output/**/*', '.nuxt/**/*', '*.css', '*.md'],
extends: ['@nuxtjs/eslint-config-typescript', '@antfu', 'plugin:prettier-vue/recommended', 'prettier'],
settings: {
'import/ignore': ['vue'],
},
rules: {
semi: 'error',
'antfu/if-newline': 0,
'new-cap': 0,
'vue/static-class-names-order': 'off',
'vue/multi-word-component-names': 'off',
'vue/require-component-is': 'off',
'vue/no-multiple-template-root': 'off',
'vue/no-v-text-v-html-on-component': 'off',
'@typescript-eslint/no-unused-vars': ['off'],
'@typescript-eslint/semi': ['error'],
'@typescript-eslint/comma-dangle': ['error'],
'comma-dangle': 'error',
'no-unused-vars': 0,
'prettier-vue/prettier': [
'error',
{
// Override all options of `prettier` here
// @see https://prettier.io/docs/en/options.html
// plugins: ['prettier-plugin-tailwindcss'],
printWidth: 180,
semi: false,
singleQuote: true,
tabWidth: 2,
trailingComma: 'all',
},
],
},
}