👋 Coming over from eslint/eslint#18093: ESLint is migrating to a new "flat config" format that will be the default in ESLint v9. It doesn't look like eslint-plugin-react-hooks has documented support yet. But, based on searching around (e.g. vercel/next.js#49337), ESLint v9 ...
constnx=require("@nx/eslint-plugin")nx.configs["flat/react"] breaks because I've already declared the plugin in my globaleslint.config.jsin order to specify my own rules. Expected Behavior I should be able to overrideeslint-plugin-importrules in the rooteslint.config.jsfile without having...
constreactPlugin=require('eslint-plugin-react');module.exports=[…reactPlugin.configs.flat.recommended,// This is not a plugin object, but a shareable config objectreactPlugin.configs.flat['jsx-runtime'],// Add this if you are using React 17+…]; You can of course add/override some prop...
importreactPerfPluginfrom'eslint-plugin-react-perf';constconfig=[reactPerfPlugin.configs.flat.recommended];exportdefaultconfig; eslintrc configuration To enable this configuration use theextendsproperty in your.eslintrcconfig file: {"extends":["plugin:react-perf/recommended"]} ...
The new host config shape is flat and doesn't use nested objects. (@gaearon in #12792) 16.3.3 (August 1, 2018)React DOM ServerFix a potential XSS vulnerability when the attacker controls an attribute name (CVE-2018-6341). This fix is available in the latest `react-dom@16.4.2, as ...
286[tidelift-url]:https://tidelift.com/subscription/pkg/npm-eslint-plugin-react?utm_source=npm-eslint-plugin-react&utm_medium=referral&utm_campaign=readme 287[tidelift-image]:https://tidelift.com/badges/github/yannickcr/eslint-plugin-react?style=flat...
在尝试自己添加一个index.d.ts声明文件后,我很快意识到我并不理解这个 monorepo 的构建/捆绑系统。声明...
Config; all: Linter.Config; 'flat/all': Linter.FlatConfig; 'flat/recommended': Linter.FlatConfig; }; }; export = eslintPluginUnicorn; @ljharb I would be okay with either solution. Thinking about it some more the unicorn one might be a better one for this package, as it supports such...
reactPlugin.configs.flat.recommended, // This is not a plugin object, but a shareable config object … ];You can of course add/override some properties.Note: Our shareable configs does not preconfigure files or languageOptions.globals. For most of the cases, you probably want to configure som...
import type { Linter } from 'eslint'; export function reactConfig(): Linter.FlatConfig[] { return [ reactPlugin.configs.flat.recommended, reactPlugin.configs.flat['jsx-runtime'], ]; } Type '{ plugins: { react: { deprecatedRules: any; rules: { 'boolean-prop-naming': RuleModule; 'but...