{"version":3,"file":"react.cjs","names":["jsx","eslintPluginReact","reactRefresh","eslintPluginReactHooks"],"sources":["../../src/react.ts"],"sourcesContent":["import type { TSESLint } from '@typescript-eslint/utils';\nimport eslintPluginReact from 'eslint-plugin-react';\nimport eslintPluginReactHooks from 'eslint-plugin-react-hooks';\nimport reactRefresh from 'eslint-plugin-react-refresh';\n\nimport jsx from './jsx';\n\nconst rules: TSESLint.FlatConfig.Rules = {\n\t// React\n\t'react/boolean-prop-naming': 2,\n\t'react/button-has-type': 2,\n\t'react/default-props-match-prop-types': 2,\n\t'react/destructuring-assignment': 0,\n\t'react/display-name': 0,\n\t'react/forbid-component-props': 0,\n\t'react/forbid-dom-props': 0,\n\t'react/forbid-elements': 0,\n\t'react/forbid-foreign-prop-types': 0,\n\t'react/forbid-prop-types': 0,\n\t'react/function-component-definition': 0,\n\t'react/hook-use-state': 2,\n\t'react/iframe-missing-sandbox': 2,\n\t'react/jsx-filename-extension': [1, { extensions: ['.jsx', '.tsx'] }],\n\t'react/no-access-state-in-setstate': 2,\n\t'react/no-adjacent-inline-elements': 0,\n\t'react/no-array-index-key': 0,\n\t'react/no-arrow-function-lifecycle': 2,\n\t'react/no-children-prop': 2,\n\t'react/no-danger': 2,\n\t'react/no-danger-with-children': 2,\n\t'react/no-deprecated': 2,\n\t'react/no-did-mount-set-state': 2,\n\t'react/no-did-update-set-state': 2,\n\t'react/no-direct-mutation-state': 2,\n\t'react/no-find-dom-node': 2,\n\t'react/no-invalid-html-attribute': 2,\n\t'react/no-is-mounted': 2,\n\t'react/no-multi-comp': 0,\n\t'react/no-namespace': 2,\n\t'react/no-redundant-should-component-update': 2,\n\t'react/no-render-return-value': 2,\n\t'react/no-set-state': 2,\n\t'react/no-string-refs': 2,\n\t'react/no-this-in-sfc': 2,\n\t'react/no-typos': 2,\n\t'react/no-unescaped-entities': 0,\n\t'react/no-unknown-property': 2,\n\t'react/no-unsafe': 2,\n\t'react/no-unstable-nested-components': 2,\n\t'react/no-unused-class-component-methods': 2,\n\t'react/no-unused-prop-types': 2,\n\t'react/no-unused-state': 2,\n\t'react/no-will-update-set-state': 2,\n\t'react/prefer-es6-class': 2,\n\t'react/prefer-exact-props': 0,\n\t'react/prefer-read-only-props': 2,\n\t'react/prefer-stateless-function': [\n\t\t2,\n\t\t{\n\t\t\tignorePureComponents: true,\n\t\t},\n\t],\n\t'react/prop-types': 2,\n\t'react/react-in-jsx-scope': 0,\n\t'react/require-default-props': 0,\n\t'react/require-optimization': 0,\n\t'react/require-render-return': 2,\n\t'react/self-closing-comp': 2,\n\t'react/sort-default-props': 2,\n\t'react/sort-comp': 2,\n\t'react/sort-prop-types': 2,\n\t'react/state-in-constructor': [2, 'always'],\n\t'react/static-property-placement': 2,\n\t'react/style-prop-object': 2,\n\t'react/void-dom-elements-no-children': 2,\n\n\t// React Hooks\n\t'react-hooks/exhaustive-deps': 2,\n\t'react-hooks/rules-of-hooks': 2,\n\n\t// React Refresh\n\t'react-refresh/only-export-components': 1,\n\n\t// Unicorn\n\t// We disable this because in React it's a common thing to have functions in functions\n\t'unicorn/consistent-function-scoping': 0,\n};\n\nconst settings: TSESLint.FlatConfig.Settings = {\n\treact: {\n\t\tversion: 'detect',\n\t},\n};\n\nconst config: TSESLint.FlatConfig.ConfigArray = [\n\t...jsx,\n\t{\n\t\tplugins: {\n\t\t\treact: eslintPluginReact,\n\t\t\t'react-refresh': reactRefresh,\n\t\t\t'react-hooks': eslintPluginReactHooks,\n\t\t},\n\t\trules,\n\t\tsettings,\n\t},\n];\n\nexport default config;\n"],"mappings":";;;;;;;;;;;AAOA,MAAM,QAAmC;CAExC,6BAA6B;CAC7B,yBAAyB;CACzB,wCAAwC;CACxC,kCAAkC;CAClC,sBAAsB;CACtB,gCAAgC;CAChC,0BAA0B;CAC1B,yBAAyB;CACzB,mCAAmC;CACnC,2BAA2B;CAC3B,uCAAuC;CACvC,wBAAwB;CACxB,gCAAgC;CAChC,gCAAgC,CAAC,GAAG,EAAE,YAAY,CAAC,QAA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