File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import reactPlugin from 'eslint-plugin-react';
66import hooksPlugin from 'eslint-plugin-react-hooks' ;
77import tsEslint from 'typescript-eslint' ;
88
9- const core = [
9+ const base = [
1010 eslint . configs . recommended ,
1111 ...tsEslint . configs . recommended ,
1212 eslintPluginPrettier ,
@@ -43,7 +43,7 @@ const core = [
4343] ;
4444
4545const react = [
46- ...core ,
46+ ...base ,
4747 reactPlugin . configs . flat . recommended ,
4848 jsxA11yPlugin . flatConfigs . recommended ,
4949 // `react-hooks` plugin doesn't support "flat configs" yet so it has to be wrapped in the compatibility layer
@@ -60,7 +60,18 @@ const react = [
6060 } ,
6161] ;
6262
63- export const eslintConfigs = { core, react } ;
63+ /**
64+ * Exported ESLint configurations.
65+ * @property {object } base - The base ESLint configuration.
66+ * @property {object } core - The base ESLint configuration.
67+ * @property {object } react - The React ESLint configuration.
68+ */
69+ export const eslintConfigs = {
70+ base,
71+ /** @deprecated Use 'base' instead. */
72+ core : base ,
73+ react,
74+ } ;
6475
6576/** @type {import('prettier').Config } */
6677export const prettierConfig = {
You can’t perform that action at this time.
0 commit comments