2019-06-04 11:30:56 +08:00
|
|
|
module.exports = {
|
2021-09-03 02:13:12 +08:00
|
|
|
extends: ['plugin:markdown/recommended', 'prettier'],
|
2020-02-13 20:51:40 +08:00
|
|
|
overrides: [
|
2021-12-13 03:55:41 +08:00
|
|
|
{
|
|
|
|
files: '*.vue',
|
|
|
|
extends: [
|
|
|
|
'@vue/typescript/recommended',
|
|
|
|
'plugin:vue/vue3-recommended',
|
|
|
|
'@vue/typescript'
|
|
|
|
]
|
|
|
|
},
|
2021-01-16 15:25:28 +08:00
|
|
|
{
|
2021-02-14 20:34:23 +08:00
|
|
|
files: ['*.vue', '*.js'],
|
2022-01-05 02:20:22 +08:00
|
|
|
extends: ['plugin:vue/essential', '@vue/standard'],
|
2021-01-16 15:25:28 +08:00
|
|
|
rules: {
|
2022-01-08 19:36:57 +08:00
|
|
|
'vue/multi-word-component-names': 0,
|
2021-01-16 15:25:28 +08:00
|
|
|
'vue/max-attributes-per-line': [
|
|
|
|
2,
|
|
|
|
{
|
|
|
|
singleline: 20,
|
2022-01-08 19:36:57 +08:00
|
|
|
multiline: 1
|
2021-01-16 15:25:28 +08:00
|
|
|
}
|
|
|
|
],
|
2022-01-05 02:20:22 +08:00
|
|
|
'vue/require-default-prop': 0,
|
2021-01-16 15:25:28 +08:00
|
|
|
'vue/no-multiple-template-root': 0,
|
|
|
|
'vue/no-lone-template': 0,
|
2022-01-04 13:46:32 +08:00
|
|
|
'vue/no-v-model-argument': 0,
|
2022-01-28 10:51:44 +08:00
|
|
|
'vue/one-component-per-file': 0,
|
|
|
|
'import/no-cycle': 1
|
2021-01-16 15:25:28 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2021-02-14 20:34:23 +08:00
|
|
|
files: ['*.ts', '*.tsx'],
|
2022-01-28 10:51:44 +08:00
|
|
|
extends: ['standard-with-typescript', 'plugin:import/typescript'],
|
2021-01-16 15:25:28 +08:00
|
|
|
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,
|
2021-06-07 18:16:31 +08:00
|
|
|
'multiline-ternary': 0,
|
2022-01-28 10:51:44 +08:00
|
|
|
'no-void': 0,
|
|
|
|
'import/no-cycle': 1
|
2021-01-16 15:25:28 +08:00
|
|
|
}
|
|
|
|
},
|
2021-01-15 19:08:31 +08:00
|
|
|
{
|
|
|
|
files: ['light.ts'],
|
|
|
|
rules: {
|
2021-01-16 15:25:28 +08:00
|
|
|
'@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
|
|
|
|
}
|
|
|
|
},
|
2021-12-13 03:55:41 +08:00
|
|
|
{
|
|
|
|
files: ['**/*.md/*.ts'],
|
|
|
|
processor: 'markdown/markdown',
|
|
|
|
rules: {
|
|
|
|
'import/order': 0,
|
|
|
|
'prettier/prettier': 0,
|
|
|
|
'@typescript-eslint/consistent-type-definitions': 0
|
|
|
|
}
|
|
|
|
},
|
2020-06-18 23:38:54 +08:00
|
|
|
{
|
2021-02-17 15:04:19 +08:00
|
|
|
files: '*.spec.ts',
|
2020-06-18 23:38:54 +08:00
|
|
|
globals: {
|
|
|
|
describe: 'readonly',
|
2020-11-03 11:53:37 +08:00
|
|
|
it: 'readonly',
|
|
|
|
expect: 'readonly'
|
2021-02-17 15:04:19 +08:00
|
|
|
},
|
|
|
|
rules: {
|
|
|
|
'@typescript-eslint/no-floating-promises': 0
|
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
|
|
|
}
|
|
|
|
]
|
2019-11-06 13:31:01 +08:00
|
|
|
}
|