create-react-app icon indicating copy to clipboard operation
create-react-app copied to clipboard

Use ESLint new flat config system

Open filetvignon opened this issue 2 years ago • 3 comments

Is your proposal related to a problem?

ESLint is deprecating its current config system and moving to a new one.

Blog post: https://eslint.org/blog/2022/08/new-config-system-part-1/ Docs: https://eslint.org/docs/latest/use/configure/configuration-files-new

I can't find a way to make CRA eslint rules to work with the new config system.

filetvignon avatar Jul 06 '23 02:07 filetvignon

Quick note for consumers that want to move to flat config. I think this works.

  1. Set up plugins.
  2. Include rules. The overrides[0] is TypeScript specific.
plugins: {
	flowtype: flowtypePlugin,
	"jsx-a11y": jsxA11y,
	react: reactPlugin,
	"react-hooks": reactHooks,
},
rules: {
	...reactAppConfig.rules,
	...reactAppConfig.overrides[0].rules,
},

connorjs avatar Sep 26 '23 14:09 connorjs

still no progress :( eslint v9 makes flat config to be the default format and deprecates .eslintrc

lmeysel avatar Mar 22 '24 06:03 lmeysel

still no progress :( eslint v9 makes flat config to be the default format and deprecates .eslintrc

+1

bayasdev avatar Apr 26 '24 01:04 bayasdev