md/.eslintrc.js
YangQi b728bc5d55
chore: add an eslint configuration file (#164)
从 package.json 中抽离规则为单独的配置文件
2022-08-01 19:59:36 +08:00

26 lines
520 B
JavaScript

module.exports = {
root: true,
env: {
node: true,
},
extends: [`plugin:vue/essential`, `eslint:recommended`, `@vue/prettier`],
parserOptions: {
parser: `babel-eslint`,
},
ignorePatterns: [`src/assets/scripts/renderers`],
rules: {
'prettier/prettier': [
`error`,
{
singleQuote: true,
semi: false,
},
],
semi: [`error`, `never`],
quotes: [`error`, `backtick`],
'no-unused-vars': `off`,
'no-console': `off`,
'no-debugger': `off`,
},
}