vue-baidu-analytics/.eslintrc.ts
2021-06-15 15:22:46 +08:00

23 lines
446 B
TypeScript

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