Skip to content

Commit

Permalink
feat(core): add support for specifying ESLint config file format (mjs…
Browse files Browse the repository at this point in the history
…/cjs)
  • Loading branch information
ndcunningham committed Jan 16, 2025
1 parent 435a1a5 commit 7c42373
Show file tree
Hide file tree
Showing 25 changed files with 3,969 additions and 1,280 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@
"description": "Skip formatting files.",
"default": false,
"x-priority": "internal"
},
"eslintConfigFormat": {
"type": "string",
"description": "The format of the ESLint configuration file",
"enum": ["cjs", "mjs"],
"default": "mjs"
}
},
"additionalProperties": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ exports[`workspace move to nx layout should create nx.json 1`] = `
"!{projectRoot}/karma.conf.js",
"!{projectRoot}/.eslintrc.json",
"!{projectRoot}/eslint.config.cjs",
"!{projectRoot}/eslint.config.mjs",
],
"sharedGlobals": [],
},
Expand All @@ -104,7 +105,7 @@ exports[`workspace move to nx layout should create nx.json 1`] = `
"default",
"{workspaceRoot}/.eslintrc.json",
"{workspaceRoot}/.eslintignore",
"{workspaceRoot}/eslint.config.cjs",
"{workspaceRoot}/eslint.config.mjs",
],
},
"build": {
Expand Down
Loading

0 comments on commit 7c42373

Please sign in to comment.