24 Star 173 Fork 35

zebra/zebra-uniapp-swiper

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.eslintrc.js 1.93 KB
一键复制 编辑 原始数据 按行查看 历史
module.exports = {
globals: {
getApp: false,
getCurrentPages: false,
App: false,
wx: false,
uni: false
},
extends: [
'eslint:recommended',
'plugin:vue/vue3-recommended',
'plugin:@typescript-eslint/recommended',
'prettier'
],
parserOptions: {
parser: '@typescript-eslint/parser',
ecmaVersion: 2019,
sourceType: 'module',
extraFileExtensions: ['.vue']
},
plugins: ['@typescript-eslint'],
env: {
es6: true,
node: true,
jest: true,
browser: true
},
rules: {
'prefer-destructuring': ['error', { object: true, array: false }],
'vue/no-template-shadow': ['error', { allow: ['index', 'i'] }],
// eslint-plugin-vue
'vue/no-v-html': 'off',
'vue/attributes-order': 'off',
'vue/require-v-for-key': 'off',
'vue/require-default-prop': 'off',
'vue/no-unused-components': 'off',
'vue/multi-word-component-names': 'off',
'vue/no-setup-props-destructure': 'off',
'vue/return-in-computed-property': 'off',
// typescript-eslint
'@typescript-eslint/camelcase': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-unused-vars': 'error',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-this-alias': [
'error',
{
allowDestructuring: false,
allowedNames: ['swiper', 'self']
}
],
'vue/component-definition-name-casing': 'off'
},
overrides: [
{
files: ['*.vue'],
parser: require.resolve('vue-eslint-parser')
},
{
files: ['**/*.md/*.js', '**/*.md/*.ts'],
rules: {
'@typescript-eslint/no-unused-vars': 'off'
}
}
]
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/zebra-ui/zebra-uniapp-swiper.git
git@gitee.com:zebra-ui/zebra-uniapp-swiper.git
zebra-ui
zebra-uniapp-swiper
zebra-uniapp-swiper
master

搜索帮助