forked from synclounge/synclounge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
42 lines (40 loc) · 1.15 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
// Inspired by https://stackoverflow.com/a/60187886
const path = require('node:path');
const createAliasSetting = require('@vue/eslint-config-airbnb/createAliasSetting');
module.exports = {
root: true,
env: {
browser: true,
},
extends: ['plugin:vue/recommended', '@vue/airbnb'],
parserOptions: {
parser: '@babel/eslint-parser',
ecmaVersion: 2020,
},
rules: {
'max-len': [
'error',
{
code: 100,
// ignoreComments: true,
// ignoreUrls: true,
// ignoreStrings: true,
// ignoreTemplateLiterals: true,
},
],
'no-console': 'off',
'import/no-extraneous-dependencies': ['error', { devDependencies: true }],
'vuejs-accessibility/alt-text': 'off',
'vuejs-accessibility/mouse-events-have-key-events': 'off',
'vuejs-accessibility/label-has-for': 'off',
'vuejs-accessibility/media-has-caption': 'off',
'vuejs-accessibility/click-events-have-key-events': 'off',
'vue/no-v-text-v-html-on-component': 'off',
'vue/no-template-target-blank': 'off',
},
settings: {
...createAliasSetting({
'@': `${path.resolve(__dirname, './src')}`,
}),
},
};