vue-baidu-analytics/.eslintrc.js
2021-06-15 17:17:20 +08:00

19 lines
462 B
JavaScript

module.exports = {
root: true,
env: {
node: true,
browser: true,
},
extends: ['eslint:recommended', 'prettier'],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2020,
},
plugins: ['@typescript-eslint', 'prettier'],
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'prettier/prettier': 'warn',
},
}