1 Star 1 Fork 1

Benzolamps/bz-music-we

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.eslintrc 2.29 KB
一键复制 编辑 原始数据 按行查看 历史
Benzolamps 提交于 2023-04-01 20:01 . 1. 文件信息功能
env:
browser: true
es2021: true
node: true
extends:
- 'eslint:recommended'
- 'plugin:vue/essential'
- 'plugin:@typescript-eslint/recommended'
parser: vue-eslint-parser
parserOptions:
ecmaVersion: latest
parser: '@typescript-eslint/parser'
sourceType: module
project: ./tsconfig.json
extraFileExtensions: [.vue]
plugins: ['vue', '@typescript-eslint']
rules:
'@typescript-eslint/array-type': [warn, {default: generic, readonly: generic}]
'@typescript-eslint/comma-dangle': [warn, never]
'@typescript-eslint/dot-notation': warn
'@typescript-eslint/indent': [warn, 2, {SwitchCase: 1}]
'@typescript-eslint/member-delimiter-style':
- warn
- multiline:
delimiter: semi
requireLast: true
singleline:
delimiter: comma
requireLast: false
multilineDetection: brackets
'@typescript-eslint/no-empty-function': off
'@typescript-eslint/no-empty-interface': off
'@typescript-eslint/no-explicit-any': off
'@typescript-eslint/no-extra-parens': [warn, all]
'@typescript-eslint/no-extra-semi': warn
'@typescript-eslint/no-unused-vars': off
'@typescript-eslint/no-var-requires': off
'@typescript-eslint/prefer-readonly': warn
'@typescript-eslint/quotes': [warn, single, {avoidEscape: true}]
'@typescript-eslint/require-await': warn
'@typescript-eslint/return-await': warn
'@typescript-eslint/semi': [warn, always]
arrow-body-style: [warn, as-needed]
arrow-parens: [warn, as-needed]
consistent-return: warn
consistent-this: [warn, that]
constructor-super: warn
curly: [warn, all]
default-case: warn
dot-location: [warn, property]
eol-last: warn
eqeqeq: warn
func-style: [warn, declaration]
implicit-arrow-linebreak: [warn, beside]
no-cond-assign: off
no-param-reassign: warn
no-sequences: warn
no-unneeded-ternary: warn
no-var: warn
object-curly-newline: [warn, {consistent: true}]
object-shorthand: warn
operator-assignment: [warn, always]
prefer-const: warn
prefer-numeric-literals: warn
prefer-promise-reject-errors: warn
prefer-rest-params: warn
prefer-spread: warn
quote-props: [warn, consistent-as-needed]
require-yield: warn
yoda: warn
vue/html-self-closing:
- warn
- html:
void: always
normal: always
component: always
svg: always
math: always
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/Benzolamps/bz-music-we.git
git@gitee.com:Benzolamps/bz-music-we.git
Benzolamps
bz-music-we
bz-music-we
master

搜索帮助