mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-21 04:50:14 +08:00
72 lines
1.5 KiB
JavaScript
72 lines
1.5 KiB
JavaScript
module.exports = {
|
|
extends: ['plugin:markdown/recommended'],
|
|
overrides: [
|
|
{
|
|
files: '**/*.vue',
|
|
extends: [
|
|
'plugin:vue/essential',
|
|
'@vue/standard'
|
|
// '@vue/typescript/recommended'
|
|
],
|
|
rules: {
|
|
'vue/max-attributes-per-line': [
|
|
2,
|
|
{
|
|
singleline: 20,
|
|
multiline: {
|
|
max: 1,
|
|
allowFirstLine: false
|
|
}
|
|
}
|
|
],
|
|
'vue/no-multiple-template-root': 0,
|
|
'vue/no-lone-template': 0,
|
|
'vue/no-v-model-argument': 0
|
|
}
|
|
},
|
|
{
|
|
files: ['*.ts', '*.js', '*.tsx'],
|
|
extends: ['standard-with-typescript'],
|
|
parserOptions: {
|
|
project: './tsconfig.json',
|
|
ecmaFeatures: {
|
|
jsx: true
|
|
}
|
|
},
|
|
rules: {
|
|
'@typescript-eslint/strict-boolean-expressions': 0,
|
|
'@typescript-eslint/prefer-nullish-coalescing': 0,
|
|
'@typescript-eslint/naming-convention': 0,
|
|
'no-void': 0
|
|
}
|
|
},
|
|
{
|
|
files: ['light.ts'],
|
|
rules: {
|
|
'@typescript-eslint/explicit-module-boundary-types': 0,
|
|
'@typescript-eslint/explicit-function-return-type': 0
|
|
}
|
|
},
|
|
{
|
|
files: '**/*.md/*.js',
|
|
rules: {
|
|
'no-undef': 0
|
|
}
|
|
},
|
|
{
|
|
files: '*.spec.js',
|
|
globals: {
|
|
describe: 'readonly',
|
|
it: 'readonly',
|
|
expect: 'readonly'
|
|
}
|
|
},
|
|
{
|
|
files: '*',
|
|
globals: {
|
|
__DEV__: 'readonly'
|
|
}
|
|
}
|
|
]
|
|
}
|