Skip to content

Commit 1d1ea3d

Browse files
committed
feat(core): Add support for ESM config file
1 parent ca1c3ea commit 1d1ea3d

File tree

27 files changed

+3936
-1217
lines changed

27 files changed

+3936
-1217
lines changed

docs/generated/packages/eslint/generators/convert-to-flat-config.json

+6
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@
1313
"description": "Skip formatting files.",
1414
"default": false,
1515
"x-priority": "internal"
16+
},
17+
"eslintConfigFormat": {
18+
"type": "string",
19+
"description": "The format of the ESLint configuration file",
20+
"enum": ["cjs", "mjs"],
21+
"default": "mjs"
1622
}
1723
},
1824
"additionalProperties": false,

packages/angular/src/generators/ng-add/__snapshots__/migrate-from-angular-cli.spec.ts.snap

+2-1
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ exports[`workspace move to nx layout should create nx.json 1`] = `
9494
"!{projectRoot}/karma.conf.js",
9595
"!{projectRoot}/.eslintrc.json",
9696
"!{projectRoot}/eslint.config.cjs",
97+
"!{projectRoot}/eslint.config.mjs",
9798
],
9899
"sharedGlobals": [],
99100
},
@@ -104,7 +105,7 @@ exports[`workspace move to nx layout should create nx.json 1`] = `
104105
"default",
105106
"{workspaceRoot}/.eslintrc.json",
106107
"{workspaceRoot}/.eslintignore",
107-
"{workspaceRoot}/eslint.config.cjs",
108+
"{workspaceRoot}/eslint.config.mjs",
108109
],
109110
},
110111
"build": {

0 commit comments

Comments
 (0)