This pull request includes changes to migrate ESLint configuration files
from CommonJS (`.cjs`) to ECMAScript modules (`.mjs`) as the default.
### ESLint Configuration Generation Changes
The changes also ensure consistent generated eslint configs based on the
base eslint config.
- If the workspace root has an `eslint.config.cjs` or `eslint.config.js`
with `module.exports`. When you create a library or application it will
generate an accompanying config at path
`{projectRoot}/eslint.config.cjs` of the same format.
- If the workspace root has an `eslint.config.mjs` or
`eslint.config.mjs` with `export default`. When you create a library or
application it will generate an accompanying config at path
`{projectRoot}/eslint.config.mjs`.
- If no eslint config is found at the workspace root one will be created
`eslint.config.mjs`
55 lines
1.7 KiB
Plaintext
55 lines
1.7 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`Extra Nx Misc Tests task graph inputs should correctly expand default task inputs 1`] = `
|
|
{
|
|
"general": [
|
|
".gitignore",
|
|
"nx.json",
|
|
],
|
|
"lib-base-123": [
|
|
"libs/lib-base-123/README.md",
|
|
"libs/lib-base-123/package.json",
|
|
"libs/lib-base-123/project.json",
|
|
"libs/lib-base-123/src/index.ts",
|
|
"libs/lib-base-123/src/lib/lib-base-123.ts",
|
|
"libs/lib-base-123/tsconfig.json",
|
|
"libs/lib-base-123/tsconfig.lib.json",
|
|
],
|
|
}
|
|
`;
|
|
|
|
exports[`Extra Nx Misc Tests task graph inputs should correctly expand dependent task inputs 1`] = `
|
|
{
|
|
"general": [
|
|
".gitignore",
|
|
"nx.json",
|
|
],
|
|
"lib-base-123": [
|
|
"libs/lib-base-123/README.md",
|
|
"libs/lib-base-123/eslint.config.mjs",
|
|
"libs/lib-base-123/jest.config.ts",
|
|
"libs/lib-base-123/package.json",
|
|
"libs/lib-base-123/project.json",
|
|
"libs/lib-base-123/src/index.ts",
|
|
"libs/lib-base-123/src/lib/lib-base-123.spec.ts",
|
|
"libs/lib-base-123/src/lib/lib-base-123.ts",
|
|
"libs/lib-base-123/tsconfig.json",
|
|
"libs/lib-base-123/tsconfig.lib.json",
|
|
"libs/lib-base-123/tsconfig.spec.json",
|
|
],
|
|
"lib-dependent-123": [
|
|
"libs/lib-dependent-123/README.md",
|
|
"libs/lib-dependent-123/eslint.config.mjs",
|
|
"libs/lib-dependent-123/jest.config.ts",
|
|
"libs/lib-dependent-123/package.json",
|
|
"libs/lib-dependent-123/project.json",
|
|
"libs/lib-dependent-123/src/index.ts",
|
|
"libs/lib-dependent-123/src/lib/lib-dependent-123.spec.ts",
|
|
"libs/lib-dependent-123/src/lib/lib-dependent-123.ts",
|
|
"libs/lib-dependent-123/tsconfig.json",
|
|
"libs/lib-dependent-123/tsconfig.lib.json",
|
|
"libs/lib-dependent-123/tsconfig.spec.json",
|
|
],
|
|
}
|
|
`;
|