naive-ui/.eslintrc.js

72 lines
1.5 KiB
JavaScript
Raw Normal View History

2019-06-04 11:30:56 +08:00
module.exports = {
extends: ['plugin:markdown/recommended'],
2020-02-13 20:51:40 +08:00
overrides: [
{
files: 'src/**/*.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,
2021-01-18 19:12:01 +08:00
'@typescript-eslint/prefer-nullish-coalescing': 0,
'@typescript-eslint/naming-convention': 0,
'no-void': 0
}
},
2021-01-15 19:08:31 +08:00
{
files: ['light.ts'],
rules: {
'@typescript-eslint/explicit-module-boundary-types': 0,
'@typescript-eslint/explicit-function-return-type': 0
2021-01-15 19:08:31 +08:00
}
},
2020-12-12 15:33:41 +08:00
{
files: '**/*.md/*.js',
rules: {
'no-undef': 0
}
},
2020-06-18 23:38:54 +08:00
{
files: '*.spec.js',
globals: {
describe: 'readonly',
2020-11-03 11:53:37 +08:00
it: 'readonly',
expect: 'readonly'
2020-06-18 23:38:54 +08:00
}
2020-09-17 01:02:59 +08:00
},
{
files: '*',
globals: {
__DEV__: 'readonly'
}
2020-02-13 20:51:40 +08:00
}
]
}