UNPKG

@addon24/eslint-config

Version:

ESLint configuration rules for WorldOfTextcraft projects - Centralized configuration for all project types

29 lines (26 loc) 884 B
export default { rules: { "react-hooks/exhaustive-deps": "off", "react/jsx-indent": [2, 2], "react/display-name": "off", "react/prefer-stateless-function": "error", "react/prefer-es6-class": "error", "react/jsx-closing-bracket-location": "error", "react/jsx-closing-tag-location": "error", "react/jsx-pascal-case": "error", "react/jsx-tag-spacing": "error", "react/jsx-boolean-value": "error", "react/no-array-index-key": "error", "react/no-string-refs": "error", "react/jsx-wrap-multilines": "error", "react/self-closing-comp": "error", "react/require-render-return": "error", "react/sort-comp": "error", "react/no-is-mounted": "error", "react/forbid-prop-types": "error", // Dead Code Detection für React "react/jsx-no-useless-fragment": ["error", { "allowExpressions": true }], }, };