UNPKG

eslint-config-neon

Version:

The ultimate ESLint shareable config

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