UNPKG

eslint-config-neon

Version:

The ultimate ESLint shareable config

70 lines (69 loc) 2.23 kB
//#region src/oxlint/react.ts const config = { plugins: ["react", "unicorn"], rules: { "react/button-has-type": 2, "react/display-name": 0, "react/forbid-component-props": 0, "react/forbid-dom-props": 0, "react/forbid-elements": 0, "react/hook-use-state": 2, "react/iframe-missing-sandbox": 2, "react/jsx-boolean-value": [2, "never"], "react/jsx-filename-extension": [1, { extensions: [".jsx", ".tsx"] }], "react/jsx-fragments": [2, "syntax"], "react/jsx-handler-names": [2, { checkInlineFunction: false, checkLocalVariables: false, eventHandlerPrefix: "handle", eventHandlerPropPrefix: "on" }], "react/jsx-key": [2, { checkFragmentShorthand: true, checkKeyMustBeforeSpread: true }], "react/jsx-max-depth": 0, "react/jsx-no-comment-textnodes": 2, "react/jsx-no-constructed-context-values": 2, "react/jsx-no-duplicate-props": 2, "react/jsx-no-script-url": 2, "react/jsx-no-target-blank": 2, "react/jsx-no-undef": 2, "react/jsx-no-useless-fragment": [2, { allowExpressions: true }], "react/jsx-props-no-spreading": 0, "react/no-array-index-key": 0, "react/no-children-prop": 2, "react/no-danger": 2, "react/no-danger-with-children": 2, "react/no-did-mount-set-state": 2, "react/no-did-update-set-state": 2, "react/no-direct-mutation-state": 2, "react/no-find-dom-node": 2, "react/no-is-mounted": 2, "react/no-multi-comp": 0, "react/no-namespace": 2, "react/no-redundant-should-component-update": 2, "react/no-render-return-value": 2, "react/no-set-state": 2, "react/no-string-refs": 2, "react/no-this-in-sfc": 2, "react/no-unescaped-entities": 0, "react/no-unknown-property": 2, "react/no-unsafe": 2, "react/no-unstable-nested-components": 2, "react/no-will-update-set-state": 2, "react/only-export-components": 1, "react/prefer-es6-class": 2, "react/react-in-jsx-scope": 0, "react/self-closing-comp": 2, "react/state-in-constructor": [2, "always"], "react/style-prop-object": 2, "react/void-dom-elements-no-children": 2, "react/exhaustive-deps": 2, "react/rules-of-hooks": 2, "unicorn/consistent-function-scoping": 0 } }; //#endregion export { config as default }; //# sourceMappingURL=react.mjs.map