2020-05-27 19:34:29 +00:00
|
|
|
// Inspired by https://stackoverflow.com/questions/60187885/how-to-configure-vue-cli-4-with-eslint-airbnb-rules-typescript-stylelint-f
|
2018-07-20 04:31:44 +00:00
|
|
|
module.exports = {
|
|
|
|
root: true,
|
|
|
|
env: {
|
2020-05-27 18:41:08 +00:00
|
|
|
node: true,
|
2020-05-25 22:12:22 +00:00
|
|
|
},
|
2020-05-27 19:34:29 +00:00
|
|
|
extends: ['plugin:vue/recommended', '@vue/airbnb'],
|
2020-05-25 22:12:22 +00:00
|
|
|
parserOptions: {
|
2020-05-27 18:41:08 +00:00
|
|
|
parser: 'babel-eslint',
|
2020-05-27 19:34:29 +00:00
|
|
|
ecmaVersion: 2020,
|
2018-07-20 04:31:44 +00:00
|
|
|
},
|
|
|
|
rules: {
|
2020-05-27 19:34:29 +00:00
|
|
|
'class-methods-use-this': 0,
|
|
|
|
'max-len': [
|
|
|
|
'error',
|
|
|
|
{
|
|
|
|
code: 100,
|
|
|
|
ignoreComments: true,
|
2020-05-28 02:42:57 +00:00
|
|
|
//ignoreUrls: true,
|
|
|
|
//ignoreStrings: true,
|
|
|
|
ignoreTemplateLiterals: true
|
2020-05-27 19:34:29 +00:00
|
|
|
},
|
|
|
|
],
|
2020-05-27 18:41:08 +00:00
|
|
|
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
|
|
|
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
|
|
|
'import/no-extraneous-dependencies': ['error', { devDependencies: true }],
|
|
|
|
},
|
2020-05-25 22:12:22 +00:00
|
|
|
};
|