1 Star 0 Fork 30

gantoday-collection-2024 / 权限管家 - 前端工程

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.eslintrc.js 2.30 KB
一键复制 编辑 原始数据 按行查看 历史
王松岩 提交于 2021-09-01 15:59 . Initial commit
module.exports = {
root: true,
env: {
browser: true,
node: true,
es6: true
},
parserOptions: {
parser: '@typescript-eslint/parser',
sourceType: 'module'
},
plugins: ['vue'],
rules: {
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/member-delimiter-style': [
'error',
{
multiline: {
delimiter: 'none'
},
singleline: {
delimiter: 'comma'
}
}
],
'@typescript-eslint/no-explicit-any': 'off',
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'space-before-function-paren': ['error', 'never'],
'vue/require-default-prop': 'off',
'vue/require-prop-type-constructor': 'off',
'vue/require-prop-types': 'off',
'vue/prop-name-casing': 'off',
'vue/array-bracket-spacing': 'error',
'vue/arrow-spacing': 'error',
'vue/block-spacing': 'error',
'vue/brace-style': 'error',
'vue/camelcase': 'off',
'vue/comma-dangle': 'error',
'vue/component-name-in-template-casing': 'error',
'vue/eqeqeq': 'error',
'vue/key-spacing': 'error',
'vue/match-component-file-name': 'error',
'vue/no-v-html': 'off',
// 'vue/object-curly-spacing': 'error',
'vue/html-self-closing': [
// Require self-closing on HTML elements (<div>) vue/html-self-closing的解决方法
'error',
{
html: {
void: 'never',
normal: 'never',
component: 'always'
},
svg: 'always',
math: 'always'
}
],
'vue/html-closing-bracket-spacing': [
'error',
{
startTag: 'never',
endTag: 'never',
selfClosingTag: 'always'
}
],
'vue/max-attributes-per-line': [
// 解决 Attribute "mode" should be on a new line (vue/max-attributes-per-line)
'error',
{
singleline: 100,
multiline: {
max: 3,
allowFirstLine: true
}
}
],
indent: ['off', 2],
'no-tabs': 'off',
'vue/singleline-html-element-content-newline': 'off'
},
extends: [
'eslint:recommended',
'plugin:vue/recommended',
'@vue/standard',
'@vue/typescript'
]
}
JavaScript
1
https://gitee.com/gantoday-collection-2024/itcast-authority-web.git
git@gitee.com:gantoday-collection-2024/itcast-authority-web.git
gantoday-collection-2024
itcast-authority-web
权限管家 - 前端工程
open

搜索帮助

53164aa7 5694891 3bd8fe86 5694891