mirror of
https://gitee.com/wot-design-uni/wot-design-uni.git
synced 2025-12-06 09:08:51 +08:00
51 lines
1.5 KiB
JavaScript
51 lines
1.5 KiB
JavaScript
/*
|
|
* @Author: weisheng
|
|
* @Date: 2023-03-14 16:06:21
|
|
* @LastEditTime: 2025-05-06 21:14:16
|
|
* @LastEditors: weisheng
|
|
* @Description:
|
|
* @FilePath: /wot-design-uni/.eslintrc.js
|
|
* 记得注释
|
|
*/
|
|
module.exports = {
|
|
env: {
|
|
browser: true,
|
|
es2021: true
|
|
},
|
|
extends: ['eslint:recommended', 'plugin:vue/vue3-essential', 'plugin:@typescript-eslint/recommended', 'plugin:prettier/recommended'],
|
|
overrides: [],
|
|
parser: 'vue-eslint-parser',
|
|
parserOptions: {
|
|
parser: '@typescript-eslint/parser',
|
|
ecmaVersion: 2020
|
|
},
|
|
plugins: ['vue', '@typescript-eslint'],
|
|
rules: {
|
|
'linebreak-style': ['error', 'unix'],
|
|
quotes: ['error', 'single'],
|
|
semi: ['error', 'never'],
|
|
'no-console': 'off',
|
|
'no-debugger': 'off',
|
|
'no-undef': 'off',
|
|
'@typescript-eslint/no-explicit-any': 'off',
|
|
'@typescript-eslint/no-use-before-define': 'off',
|
|
'@typescript-eslint/no-inferrable-types': 'off',
|
|
'@typescript-eslint/no-unused-vars': 'off',
|
|
'@typescript-eslint/no-non-null-assertion': 'off',
|
|
'@typescript-eslint/no-var-requires': 'off',
|
|
'@typescript-eslint/no-namespace': 'off',
|
|
'no-inner-declarations': 'off',
|
|
'@typescript-eslint/no-this-alias': 'off',
|
|
'@typescript-eslint/no-empty-function': 'off',
|
|
'vue/multi-word-component-names': 'off',
|
|
'@typescript-eslint/consistent-type-imports': [
|
|
'error',
|
|
{
|
|
prefer: 'type-imports',
|
|
disallowTypeAnnotations: false,
|
|
fixStyle: 'inline-type-imports'
|
|
}
|
|
]
|
|
}
|
|
}
|