mirror of
https://github.com/doocs/md.git
synced 2024-10-31 00:07:50 +08:00
b728bc5d55
从 package.json 中抽离规则为单独的配置文件
26 lines
520 B
JavaScript
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`,
|
|
},
|
|
}
|