-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
41 lines (36 loc) · 1.12 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
module.exports = {
root: true,
parser: 'vue-eslint-parser',
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
tsconfigRootDir: __dirname,
project: ['./tsconfig.json', './tsconfig.eslint.json'],
extraFileExtensions: ['.vue'],
},
extends: [
// Base ESLint recommended rules
'eslint:recommended',
// ESLint typescript rules
// https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/eslint-plugin#usage
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
// Nuxt
// https://typescript.nuxtjs.org/guide/lint.html#lint
'@nuxtjs/eslint-config-typescript',
// Prettier
'plugin:prettier/recommended',
],
plugins: ['vuetify'],
rules: {
// @typescript-eslint
'@typescript-eslint/camelcase': 'off',
// vue
'vue/html-self-closing': ['error', { html: { void: 'always' } }],
'vue/multi-word-component-names': 'off',
// vuetify
'vuetify/no-deprecated-classes': 'error',
'vuetify/grid-unknown-attributes': 'error',
'vuetify/no-legacy-grid': 'error',
},
}