2021-01-21 11:36:18 +08:00
|
|
|
module.exports = {
|
|
|
|
root: true,
|
|
|
|
env: {
|
|
|
|
browser: true,
|
|
|
|
node: true,
|
|
|
|
},
|
2021-05-18 08:26:05 +08:00
|
|
|
extends: ['plugin:nuxt/recommended', 'plugin:prettier/recommended', '@nuxtjs/eslint-config-typescript', 'prettier'],
|
2021-01-21 11:36:18 +08:00
|
|
|
rules: {
|
|
|
|
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
|
|
|
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
2021-01-31 10:00:11 +08:00
|
|
|
'vue/valid-v-slot': [
|
|
|
|
'error',
|
|
|
|
{
|
|
|
|
allowModifiers: true,
|
|
|
|
},
|
|
|
|
],
|
2021-12-18 01:02:11 +08:00
|
|
|
'import/named': 'off', // broken as fuck
|
2021-01-21 11:36:18 +08:00
|
|
|
},
|
|
|
|
};
|