mirror of
https://github.com/HangarMC/Hangar.git
synced 2024-11-27 06:01:08 +08:00
25 lines
798 B
JavaScript
25 lines
798 B
JavaScript
module.exports = {
|
|
root: true,
|
|
env: {
|
|
browser: true,
|
|
node: true,
|
|
},
|
|
extends: ['@nuxtjs/eslint-config-typescript', 'prettier', 'prettier/vue', 'plugin:prettier/recommended', 'plugin:nuxt/recommended'],
|
|
plugins: ['prettier'],
|
|
// add your custom rules here
|
|
rules: {
|
|
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
|
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
|
'no-unused-vars': 'warn',
|
|
'@typescript-eslint/no-unused-vars': 'warn',
|
|
'vue/no-unused-components': 'warn',
|
|
'vue/valid-v-slot': [
|
|
'error',
|
|
{
|
|
allowModifiers: true,
|
|
},
|
|
],
|
|
'vue/valid-template-root': 'off', // dum false positive
|
|
},
|
|
};
|