1 Star 1 Fork 0

这代码不好写/vue-vite-template

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
.eslintrc.cjs 2.97 KB
一键复制 编辑 原始数据 按行查看 历史
山川 提交于 2022-10-08 14:28 . [修改] 重新处理tailwind问题
module.exports = {
env: {
browser: true,
es2021: true,
node: true,
},
extends: [
'airbnb-base',
'plugin:vue/vue3-recommended',
'plugin:tailwindcss/recommended',
],
parserOptions: {
ecmaVersion: 2021,
},
plugins: ['vue', 'tailwindcss'],
rules: {
'linebreak-style': 0,
'import/extensions': 'off',
'import/no-extraneous-dependencies': [0, { 'packageDir ': './src/' }],
'max-len': ['error', {
code: 160,
ignorePattern: 'class="([\\s\\S]*?)"|d="([\\s\\S]*?)"', // ignore classes or svg draw attributes
ignoreUrls: true,
}],
'vue/multi-word-component-names': 'off',
'import/no-unresolved': 'off',
'vue/html-indent': 'off',
'vue/max-attributes-per-line': 'off',
'rule-empty-line-before': 'off',
'no-custom-classname': 'off',
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
// '@typescript-eslint/ban-ts-ignore': 'off',
// '@typescript-eslint/explicit-function-return-type': 'off',
// '@typescript-eslint/no-explicit-any': 'off',
// '@typescript-eslint/no-var-requires': 'off',
// '@typescript-eslint/no-empty-function': 'off',
// 'vue/custom-event-name-casing': 'off',
// 'no-use-before-define': 'off',
// '@typescript-eslint/no-use-before-define': 'off',
// '@typescript-eslint/ban-ts-comment': 'off',
// '@typescript-eslint/ban-types': 'off',
// '@typescript-eslint/no-non-null-assertion': 'off',
// '@typescript-eslint/explicit-module-boundary-types': 'off',
// 'no-unused-vars': [
// 'error',
// {
// argsIgnorePattern: '^_',
// varsIgnorePattern: '^_',
// },
// ],
// 'space-before-function-paren': 'off',
'vue/name-property-casing': ['error', 'PascalCase'], // vue/component-definition-name-casing 对组件定义名称强制使用特定的大小
// 'vue/attributes-order': 'off',
// 'vue/one-component-per-file': 'off',
// 'vue/html-closing-bracket-newline': 'off',
// 'vue/max-attributes-per-line': 'off',
// 'vue/multiline-html-element-content-newline': 'off',
// 'vue/singleline-html-element-content-newline': 'off',
// 'vue/attribute-hyphenation': 'off',
// 'vue/require-default-prop': 'off',
// 'vue/script-setup-uses-vars': 'off',
'vue/html-self-closing': [
'error',
{
html: {
void: 'always',
normal: 'never',
component: 'always',
},
svg: 'always',
math: 'always',
},
],
},
settings: {
'import/resolver': {
node: {
extensions: ['.js', '.jsx', '.ts', '.tsx', '.vue', 'svg'],
moduleDirectory: ['node_modules', 'src/'],
},
alias: {
extensions: ['.js', '.jsx', '.ts', '.tsx', '.vue', 'svg'],
map: [['@', './src']],
},
},
},
globals: {
ElMessage: true,
ElMessageBox: true,
ElLoading: true,
ElNotification: true,
},
};
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/quietly-20201113/vue-vite-template.git
git@gitee.com:quietly-20201113/vue-vite-template.git
quietly-20201113
vue-vite-template
vue-vite-template
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385