1.0.38 • Published 4 years ago

@ygsoft-cli/eslint-config-da v1.0.38

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

@ygsoft-cli/eslint-config-da

@ygsoft-cli/eslint-config-da 是 eslint 规则集合,用于部门前端代码规范。此规则以业界推荐的规则为基础,整合 eslint-config-recommended, eslint-config-vue(essential), eslint-config-prettier,并且融合当前公司前端规则。

📖 规则清单

规则名称错误级别规则所属
constructor-super"error"
for-direction"error"
getter-return"error"
no-async-promise-executor"error"
no-case-declarations"error"
no-class-assign"error"
no-compare-neg-zero"error"
no-cond-assign"error"
no-const-assign"error"
no-constant-condition"error"
no-control-regex"error"
no-debugger"error"
no-delete-var"error"
no-dupe-args"error"
no-dupe-class-members"error"
no-dupe-else-if"error"
no-dupe-keys"error"
no-duplicate-case"error"
no-empty"error"
no-empty-character-class"error"
no-empty-pattern"error"
no-ex-assign"error"
no-extra-boolean-cast"error"
no-extra-semi"off"
no-fallthrough"error"
no-func-assign"error"
no-global-assign"error"
no-import-assign"error"
no-inner-declarations"error"
no-invalid-regexp"error"
no-irregular-whitespace"error"
no-loss-of-precision"error"
no-misleading-character-class"error"
no-mixed-spaces-and-tabs"off"
no-new-symbol"error"
no-nonoctal-decimal-escape"error"
no-obj-calls"error"
no-octal"error"
no-prototype-builtins"error"
no-redeclare"error"
no-regex-spaces"error"
no-self-assign"error"
no-setter-return"error"
no-shadow-restricted-names"error"
no-sparse-arrays"error"
no-this-before-super"error"
no-undef"error"
no-unexpected-multiline0
no-unreachable"error"
no-unsafe-finally"error"
no-unsafe-negation"error"
no-unsafe-optional-chaining"error"
no-unused-labels"error"
no-unused-vars"error"
no-useless-backreference"error"
no-useless-catch"error"
no-useless-escape"error"
no-with"error"
require-yield"error"
use-isnan"error"
valid-typeof"error"
vue/comment-directive"error"vue
vue/jsx-uses-vars"error"vue
vue/script-setup-uses-vars"error"vue
vue/multi-word-component-names"error"vue
vue/no-arrow-functions-in-watch"error"vue
vue/no-async-in-computed-properties"error"vue
vue/no-computed-properties-in-data"error"vue
vue/no-custom-modifiers-on-v-model"error"vue
vue/no-dupe-keys"error"vue
vue/no-dupe-v-else-if"error"vue
vue/no-duplicate-attributes"error"vue
vue/no-multiple-template-root"error"vue
vue/no-mutating-props"error"vue
vue/no-parsing-error"error"vue
vue/no-reserved-keys"error"vue
vue/no-reserved-props"error",{"vueVersion":2}vue
vue/no-shared-component-data"error"vue
vue/no-side-effects-in-computed-properties"error"vue
vue/no-template-key"error"vue
vue/no-textarea-mustache"error"vue
vue/no-unused-components"error"vue
vue/no-unused-vars"error"vue
vue/no-use-v-if-with-v-for"error"vue
vue/no-useless-template-attributes"error"vue
vue/no-v-for-template-key"error"vue
vue/no-v-model-argument"error"vue
vue/require-component-is"error"vue
vue/require-prop-type-constructor"error"vue
vue/require-render-return"error"vue
vue/require-v-for-key"error"vue
vue/require-valid-default-prop"error"vue
vue/return-in-computed-property"error"vue
vue/use-v-on-exact"error"vue
vue/valid-next-tick"error"vue
vue/valid-template-root"error"vue
vue/valid-v-bind-sync"error"vue
vue/valid-v-bind"error"vue
vue/valid-v-cloak"error"vue
vue/valid-v-else-if"error"vue
vue/valid-v-else"error"vue
vue/valid-v-for"error"vue
vue/valid-v-html"error"vue
vue/valid-v-if"error"vue
vue/valid-v-model"error"vue
vue/valid-v-on"error"vue
vue/valid-v-once"error"vue
vue/valid-v-pre"error"vue
vue/valid-v-show"error"vue
vue/valid-v-slot"error"vue
vue/valid-v-text"error"vue
curly0
lines-around-comment0
max-len0
no-confusing-arrow0
no-mixed-operators0
no-tabs0
quotes0
@typescript-eslint/quotes0@typescript-eslint
babel/quotes0babel
vue/html-self-closing0vue
vue/max-len0vue
array-bracket-newline"off"
array-bracket-spacing"off"
array-element-newline"off"
arrow-parens"off"
arrow-spacing"off"
block-spacing"off"
brace-style"off"
comma-dangle"off"
comma-spacing"off"
comma-style"off"
computed-property-spacing"off"
dot-location"off"
eol-last"off"
func-call-spacing"off"
function-call-argument-newline"off"
function-paren-newline"off"
generator-star"off"
generator-star-spacing"off"
implicit-arrow-linebreak"off"
indent"off"
jsx-quotes"off"
key-spacing"off"
keyword-spacing"off"
linebreak-style"off"
multiline-ternary"off"
newline-per-chained-call"off"
new-parens"off"
no-arrow-condition"off"
no-comma-dangle"off"
no-extra-parens"off"
no-floating-decimal"off"
no-multi-spaces"off"
no-multiple-empty-lines"off"
no-reserved-keys"off"
no-space-before-semi"off"
no-trailing-spaces"off"
no-whitespace-before-property"off"
no-wrap-func"off"
nonblock-statement-body-position"off"
object-curly-newline"off"
object-curly-spacing"off"
object-property-newline"off"
one-var-declaration-per-line"off"
operator-linebreak"off"
padded-blocks"off"
quote-props"off"
rest-spread-spacing"off"
semi"off"
semi-spacing"off"
semi-style"off"
space-after-function-name"off"
space-after-keywords"off"
space-before-blocks"off"
space-before-function-paren"off"
space-before-function-parentheses"off"
space-before-keywords"off"
space-in-brackets"off"
space-in-parens"off"
space-infix-ops"off"
space-return-throw-case"off"
space-unary-ops"off"
space-unary-word-ops"off"
switch-colon-spacing"off"
template-curly-spacing"off"
template-tag-spacing"off"
unicode-bom"off"
wrap-iife"off"
wrap-regex"off"
yield-star-spacing"off"
@babel/object-curly-spacing"off"@babel
@babel/semi"off"@babel
@typescript-eslint/brace-style"off"@typescript-eslint
@typescript-eslint/comma-dangle"off"@typescript-eslint
@typescript-eslint/comma-spacing"off"@typescript-eslint
@typescript-eslint/func-call-spacing"off"@typescript-eslint
@typescript-eslint/indent"off"@typescript-eslint
@typescript-eslint/keyword-spacing"off"@typescript-eslint
@typescript-eslint/member-delimiter-style"off"@typescript-eslint
@typescript-eslint/no-extra-parens"off"@typescript-eslint
@typescript-eslint/no-extra-semi"off"@typescript-eslint
@typescript-eslint/object-curly-spacing"off"@typescript-eslint
@typescript-eslint/semi"off"@typescript-eslint
@typescript-eslint/space-before-function-paren"off"@typescript-eslint
@typescript-eslint/space-infix-ops"off"@typescript-eslint
@typescript-eslint/type-annotation-spacing"off"@typescript-eslint
babel/object-curly-spacing"off"babel
babel/semi"off"babel
standard/array-bracket-even-spacing"off"standard
standard/computed-property-even-spacing"off"standard
standard/object-curly-even-spacing"off"standard
vue/array-bracket-newline"off"vue
vue/array-bracket-spacing"off"vue
vue/arrow-spacing"off"vue
vue/block-spacing"off"vue
vue/block-tag-newline"off"vue
vue/brace-style"off"vue
vue/comma-dangle"off"vue
vue/comma-spacing"off"vue
vue/comma-style"off"vue
vue/dot-location"off"vue
vue/func-call-spacing"off"vue
vue/html-closing-bracket-newline"off"vue
vue/html-closing-bracket-spacing"off"vue
vue/html-end-tags"off"vue
vue/html-indent"off"vue
vue/html-quotes"off"vue
vue/key-spacing"off"vue
vue/keyword-spacing"off"vue
vue/max-attributes-per-line"off"vue
vue/multiline-html-element-content-newline"off"vue
vue/mustache-interpolation-spacing"off"vue
vue/no-extra-parens"off"vue
vue/no-multi-spaces"off"vue
vue/no-spaces-around-equal-signs-in-attribute"off"vue
vue/object-curly-newline"off"vue
vue/object-curly-spacing"off"vue
vue/object-property-newline"off"vue
vue/operator-linebreak"off"vue
vue/script-indent"off"vue
vue/singleline-html-element-content-newline"off"vue
vue/space-in-parens"off"vue
vue/space-infix-ops"off"vue
vue/space-unary-ops"off"vue
vue/template-curly-spacing"off"vue
indent-legacy"off"
no-spaced-func"off"