2020-08-06 20:05:33 +00:00
|
|
|
// Inspired by https://stackoverflow.com/a/60187886
|
2023-09-25 22:29:50 +00:00
|
|
|
const path = require('node:path');
|
|
|
|
const createAliasSetting = require('@vue/eslint-config-airbnb/createAliasSetting');
|
|
|
|
|
2018-07-20 04:31:44 +00:00
|
|
|
module.exports = {
|
|
|
|
root: true,
|
|
|
|
env: {
|
2020-06-07 05:22:11 +00:00
|
|
|
browser: true,
|
2020-05-25 22:12:22 +00:00
|
|
|
},
|
2023-09-25 21:33:24 +00:00
|
|
|
extends: ['plugin:vue/recommended', '@vue/airbnb'],
|
2020-05-25 22:12:22 +00:00
|
|
|
parserOptions: {
|
2023-09-25 21:33:24 +00:00
|
|
|
parser: '@babel/eslint-parser',
|
2020-05-27 19:34:29 +00:00
|
|
|
ecmaVersion: 2020,
|
2018-07-20 04:31:44 +00:00
|
|
|
},
|
|
|
|
rules: {
|
2023-09-25 21:33:24 +00:00
|
|
|
'max-len': [
|
|
|
|
'error',
|
2020-05-27 19:34:29 +00:00
|
|
|
{
|
|
|
|
code: 100,
|
2020-08-06 20:05:33 +00:00
|
|
|
// ignoreComments: true,
|
2020-06-07 05:22:11 +00:00
|
|
|
// ignoreUrls: true,
|
2020-08-06 21:06:59 +00:00
|
|
|
// ignoreStrings: true,
|
2020-08-06 21:17:19 +00:00
|
|
|
// ignoreTemplateLiterals: true,
|
2020-05-27 19:34:29 +00:00
|
|
|
},
|
|
|
|
],
|
2020-06-07 07:37:03 +00:00
|
|
|
|
2023-09-25 21:33:24 +00:00
|
|
|
'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',
|
2023-09-25 21:47:27 +00:00
|
|
|
'vue/no-v-text-v-html-on-component': 'off',
|
2023-09-25 22:29:50 +00:00
|
|
|
'vue/no-template-target-blank': 'off',
|
|
|
|
},
|
|
|
|
settings: {
|
|
|
|
...createAliasSetting({
|
|
|
|
'@': `${path.resolve(__dirname, './src')}`,
|
|
|
|
}),
|
2020-05-27 18:41:08 +00:00
|
|
|
},
|
2020-05-25 22:12:22 +00:00
|
|
|
};
|