2018-03-07 22:28:48 +09:00
|
|
|
module.exports = {
|
|
|
|
root: true,
|
2019-04-03 22:15:46 +09:00
|
|
|
parser: 'vue-eslint-parser',
|
2018-03-07 22:28:48 +09:00
|
|
|
parserOptions: {
|
2019-04-03 22:15:46 +09:00
|
|
|
parser: '@typescript-eslint/parser',
|
2022-07-28 00:27:21 +09:00
|
|
|
sourceType: 'module',
|
|
|
|
ecmaVersion: 12
|
2018-03-07 22:28:48 +09:00
|
|
|
},
|
|
|
|
env: {
|
|
|
|
browser: true,
|
2022-07-28 00:27:21 +09:00
|
|
|
node: true,
|
|
|
|
es2021: true
|
2018-03-07 22:28:48 +09:00
|
|
|
},
|
2022-07-28 00:27:21 +09:00
|
|
|
extends: ['eslint:recommended', 'plugin:vue/vue3-recommended', '@vue/typescript/recommended', 'prettier'],
|
2018-03-07 22:28:48 +09:00
|
|
|
globals: {
|
|
|
|
__static: true
|
|
|
|
},
|
2022-07-28 00:27:21 +09:00
|
|
|
plugins: ['@typescript-eslint', 'vue'],
|
2019-04-03 22:15:46 +09:00
|
|
|
rules: {
|
2018-03-07 22:28:48 +09:00
|
|
|
// allow paren-less arrow functions
|
|
|
|
'arrow-parens': 0,
|
|
|
|
// allow async-await
|
|
|
|
'generator-star-spacing': 0,
|
|
|
|
// allow debugger during development
|
2019-04-03 22:15:46 +09:00
|
|
|
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
|
|
|
|
'no-unused-vars': 'off',
|
|
|
|
'@typescript-eslint/no-unused-vars': [
|
|
|
|
'error',
|
|
|
|
{
|
2019-04-20 13:39:26 +09:00
|
|
|
argsIgnorePattern: '^_'
|
2019-04-03 22:15:46 +09:00
|
|
|
}
|
2019-04-06 22:08:29 +09:00
|
|
|
],
|
2022-08-12 22:21:32 +09:00
|
|
|
'@typescript-eslint/no-explicit-any': 'off',
|
2019-04-20 13:39:26 +09:00
|
|
|
camelcase: 'off',
|
2019-04-20 15:43:11 +09:00
|
|
|
'@typescript-eslint/camelcase': 'off',
|
2022-08-14 22:19:27 +09:00
|
|
|
'space-before-function-paren': 'off',
|
2023-01-02 09:42:16 +09:00
|
|
|
'vue/multi-word-component-names': 'off',
|
2023-01-02 09:45:36 +09:00
|
|
|
'vue/attributes-order': 'off',
|
2023-01-29 17:42:10 +09:00
|
|
|
'vue/attribute-hyphenation': 'off',
|
|
|
|
'vue/no-v-html': 'off'
|
2018-03-07 22:28:48 +09:00
|
|
|
}
|
|
|
|
}
|