mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-23 22:27:34 -05:00
13310814da
* #2606 add prettier plugin sort imprts * #2606 update pnpm-lock.yaml * #2606 update eslint rules * #2606 fixes website directory formatting Co-authored-by: Ayush Sharma <ayush.sharma@trivago.com>
100 lines
3.1 KiB
Text
100 lines
3.1 KiB
Text
{
|
|
"settings": {
|
|
"react": {
|
|
"version": "16"
|
|
}
|
|
},
|
|
"extends": [
|
|
"plugin:verdaccio/recommended"
|
|
],
|
|
"plugins": [
|
|
"verdaccio"
|
|
],
|
|
"rules": {
|
|
"react/display-name": 0,
|
|
"react/no-deprecated": 1,
|
|
"react/jsx-no-target-blank": 1,
|
|
"react/destructuring-assignment": ["error", "always"],
|
|
"react/forbid-component-props": ["warn", { "forbid": ["style"] }],
|
|
"react/no-this-in-sfc": ["warn"],
|
|
"react/no-unsafe": ["warn"],
|
|
"react/sort-comp": ["warn", {
|
|
"order": [
|
|
"static-methods",
|
|
"lifecycle",
|
|
"render",
|
|
"everything-else",
|
|
"/^on.+$/",
|
|
"/^render.+$/"
|
|
]
|
|
}],
|
|
"react/void-dom-elements-no-children": ["warn"],
|
|
"react/no-did-mount-set-state": ["error", "disallow-in-func"],
|
|
"react/jsx-wrap-multilines": ["error",{
|
|
"declaration": "parens",
|
|
"assignment": "parens",
|
|
"return": "parens",
|
|
"arrow": "parens",
|
|
"condition": "parens",
|
|
"logical": "parens",
|
|
"prop": "ignore"
|
|
}],
|
|
"react/jsx-boolean-value": ["error", "always"],
|
|
"react/jsx-closing-tag-location": ["error"],
|
|
"react/jsx-curly-spacing": ["error", "never"],
|
|
"react/jsx-equals-spacing": ["error", "never"],
|
|
"react/jsx-first-prop-new-line": ["error", "multiline-multiprop"],
|
|
"react/jsx-handler-names": ["warn"],
|
|
"react/jsx-indent": ["error", 2],
|
|
"react/jsx-indent-props": ["error", 2],
|
|
"react/jsx-key": ["error"],
|
|
"react/jsx-max-depth":["error", { "max": 5}],
|
|
"react/jsx-max-props-per-line": ["error", {"maximum": 3, "when": "multiline" }],
|
|
"react/jsx-no-bind": ["error", {"allowArrowFunctions": true}],
|
|
"react/jsx-no-comment-textnodes": ["error"],
|
|
"react/jsx-no-duplicate-props": ["error"],
|
|
"react/jsx-no-literals": ["error"],
|
|
"react/jsx-no-undef": ["error"],
|
|
"react/prop-types": 0,
|
|
"react/jsx-one-expression-per-line": ["error", {"allow": "single-child"}],
|
|
"react/jsx-curly-brace-presence": ["warn", { "props": "ignore", "children": "ignore" }],
|
|
"react/jsx-pascal-case": ["error"],
|
|
"react/jsx-props-no-multi-spaces": ["error"],
|
|
"react/jsx-sort-default-props": ["error"],
|
|
"react/jsx-sort-props": ["error"],
|
|
"react/no-string-refs": ["error"],
|
|
"react/no-danger-with-children": ["error"],
|
|
"react/jsx-tag-spacing": ["error", {
|
|
"closingSlash": "never",
|
|
"beforeSelfClosing": "always",
|
|
"afterOpening": "allow-multiline",
|
|
"beforeClosing": "allow"
|
|
}],
|
|
"react/prefer-es6-class": [
|
|
2,
|
|
"always"
|
|
],
|
|
"react-hooks/rules-of-hooks": "error",
|
|
"react-hooks/exhaustive-deps": "warn",
|
|
"verdaccio/jsx-no-style": ["warn"],
|
|
"verdaccio/jsx-spread": ["warn"],
|
|
"jest/expect-expect": 0,
|
|
"quote-props":["error", "as-needed"],
|
|
"prefer-spread": 1,
|
|
"linebreak-style": 0,
|
|
"max-len": ["error", 160]
|
|
},
|
|
"globals": {
|
|
"VERDACCIO_API_URL": true,
|
|
"RequestInit": true,
|
|
"TextFieldProps": true,
|
|
"HTMLElementTagNameMap": true,
|
|
"JSX": true,
|
|
"Reflect": true,
|
|
"__DEBUG__": true
|
|
},
|
|
"env": {
|
|
"browser": true,
|
|
"jest/globals": true
|
|
}
|
|
}
|