74 Commits

Author SHA1 Message Date
Jason Jean
cfadd7d8cf
Revert "fix(core): addPlugin should not conflict on project.json targ… (#23391)
…ets (#23264)"

This reverts commit 85c89160

<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->

<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->

## Current Behavior
<!-- This is the behavior we have today -->

## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #
2024-05-14 18:01:30 -04:00
Jason Jean
461b901a38
fix(linter): fix migrating projects with the eslint plugin (#23147)
<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->

<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->

## Current Behavior
<!-- This is the behavior we have today -->

Creating a new project with ESLint is mistakenly creating a
`eslint.base.config.js`.

## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->

Creating a new project with ESLint only creates a
`eslint.base.config.js` file when the repo was originally standalone and
the second project is made.

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #
2024-05-13 14:27:56 -04:00
Colum Ferry
85c8916087
fix(core): addPlugin should not conflict on project.json targets (#23264)
<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->

<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->

## Current Behavior
<!-- This is the behavior we have today -->
Calculating conflicts in target names does not consider if the
project.json defined targets will actually be impacted by the plugin
that wants to be added creating false negatives

## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->
Calculating conflicts should be more accurate

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #22476
2024-05-13 10:53:09 -04:00
Dmitry Zakharov
7561e71b1a
fix(linter): rename languageSettings to languageOptions for flat config migration (#22924) 2024-05-11 14:58:30 +04:00
James Henry
613fdb07c2
fix(linter): ensure all spreads are removed from rules before parsing (#23292) 2024-05-10 14:03:05 +04:00
James Henry
d5945bd173
fix(linter): ensure config.rules is spread into rules in flat config migration (#23263) 2024-05-09 15:06:27 +02:00
Craigory Coppola
cc875a6ac8
fix(devkit): check if includes is actually necessary (#23181)
<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->

<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->

## Current Behavior
We run the createNodes function once when converting to inferred
targets, and remove includes if its not needed anymore based solely on
the config files returned.

## Expected Behavior
We run the createNodes function twice, and remove includes if the result
was the same with / without it.

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #
2024-05-04 10:01:10 -04:00
James Henry
84eb280236
fix(linter): add {options.outputFile} to outputs for inferred targets (#23173) 2024-05-03 18:00:11 -04:00
Colum Ferry
2526979ab0
fix(devkit): executor-to-plugin-migrator should add // targets hint (#23167)
<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->

<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->

## Current Behavior
<!-- This is the behavior we have today -->
When `convert-to-inferred` generators are run, they leave no hints as to
what happened to the targets.
This is usually fine as the person running the generator should know
what it is doing.
However, other team members who may not have been privy to the migration
may be confused when they see an empty project.json


## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->
Add the same `// targets` hint that we generate for plugin-first
projects to help guide users to the PDV to see the targets.

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #
2024-05-03 15:27:21 +00:00
Colum Ferry
acd0993f1a
feat(linter): add convert-to-inferred migration generator (#23142) 2024-05-03 17:23:01 +04:00
Jason Jean
a64a7e2db9
feat(core): cleanup for v19 (#22993) 2024-05-01 12:12:32 -04:00
Leosvel Pérez Espinosa
e78776a53e
cleanup(linter): parallelize projects processing and better dedupe/ignore projects and files in eslint plugin (#23011) 2024-04-25 16:45:41 -04:00
Jack Hsu
bc43243498
chore(repo): add eslint and jest plugins to use inferred targets (#22946) 2024-04-23 21:52:13 -04:00
Leosvel Pérez Espinosa
1e4324fbce
fix(linter): do not infer lint tasks for projects without files to lint (#22944) 2024-04-23 11:38:08 -04:00
Jason Jean
bf206e578e
feat(misc): non conflicting init/add flow (#22791) 2024-04-15 16:45:08 -04:00
Miroslav Jonaš
85ba3f9ae0
fix(linter): convert parser options to flat config even is parser is missing (#22388) 2024-03-21 14:37:44 +04:00
Nicholas Cunningham
a00f6438b9 fix(core): Should work if extends is a string 2024-03-20 12:33:50 +01:00
Leosvel Pérez Espinosa
8baddb5f08
feat(angular): support angular 17.3.0 (#22202) 2024-03-19 14:58:23 -04:00
James Henry
1fe5b98f45
fix(linter): refactor pcv3 plugin, expose configFiles on context (#21677) 2024-03-15 16:29:13 -04:00
Craigory Coppola
a89c73483e
feat(core): use flag in nx.json for toggling crystal (#21980) 2024-02-29 15:18:46 -05:00
Leosvel Pérez Espinosa
5b6d1b4017
feat(angular): force explicit targets when NX_ADD_PLUGINS is not explicitly true (#21852)
Co-authored-by: Jack Hsu <jack.hsu@gmail.com>
2024-02-16 17:42:51 -05:00
Miroslav Jonaš
35b5ca756e
fix(linter): remove reportUnusedDisableDirectives for flat config (#21405) 2024-02-02 14:22:32 +01:00
Jason Jean
396ffc4636
feat(core): enable project crystal by default (#21403)
Co-authored-by: Katerina Skroumpelou <sk.katherine@gmail.com>
Co-authored-by: Jack Hsu <jack.hsu@gmail.com>
Co-authored-by: Colum Ferry <cferry09@gmail.com>
Co-authored-by: Leosvel Pérez Espinosa <leosvel.perez.espinosa@gmail.com>
Co-authored-by: Emily Xiong <xiongemi@gmail.com>
Co-authored-by: Nicholas Cunningham <ndcunningham@gmail.com>
2024-02-02 03:40:59 -05:00
Simeon Cheeseman
ec4f7c5532
feat(linter): add error and warning statistics (#18313) 2024-02-01 10:48:32 -05:00
Miroslav Jonaš
c753838c81
fix(linter): ensure flat config generator works for pcv3 plugin (#21485) 2024-02-01 16:06:52 +01:00
Miroslav Jonaš
7ed534f92b
fix(linter): make eslint mandatory dependency (#21406) 2024-01-31 11:58:58 +04:00
Craigory Coppola
d44e7de5dc
fix(linter): make target default migrations a bit more robust (#21446) 2024-01-30 22:49:49 +00:00
beeman
a9974d3f25
docs(misc): change http:// to https:// (#19534) 2024-01-30 11:33:13 -05:00
Leosvel Pérez Espinosa
4b88f48a18
feat(angular): support angular 17.1.0 (#20556) 2024-01-26 10:43:16 -05:00
Leosvel Pérez Espinosa
c7b44a4958
fix(misc): await async function invocations (#21299) 2024-01-25 09:30:01 +01:00
Leosvel Pérez Espinosa
e4758358b0
feat(misc): optionally update package.json scripts in init generators (#21204) 2024-01-22 13:51:41 -05:00
Emily Xiong
6141f44203
feat(core): add keepExistingVersions to all packages (#21169) 2024-01-17 14:22:58 -05:00
Leosvel Pérez Espinosa
047dc22aed
cleanup(misc): clean up init generators (#21088) 2024-01-16 15:29:44 +01:00
Miroslav Jonaš
03257e2503
feat(linter): move common options to target defaults (#20583) 2024-01-09 09:12:47 +00:00
Jack Hsu
51c039b252 feat(linter): make init generator public 2023-12-28 20:58:06 +01:00
James Henry
3a697405a8
fix(linter): only update overrides when applicable (#20917) 2023-12-28 14:10:24 +00:00
Miroslav Jonaš
148ddfb30c
fix(linter): flat config should always set path to config when using API (#20867) 2023-12-22 09:40:10 +01:00
Miroslav Jonaš
696d04862a
fix(nextjs): remove temporary patch for next eslint rules (#20863) 2023-12-20 15:52:51 +01:00
Miroslav Jonaš
d8beed9874
fix(linter): fix workspace-rule naming with flat config (#20782) 2023-12-15 16:00:50 +01:00
Leosvel Pérez Espinosa
593ea3d90d
feat(linter): update @typescript-eslint/* package versions (#20602) 2023-12-13 16:49:27 +01:00
Miroslav Jonaš
43141334a8
fix(linter): move should migrate all eslint configs (#20709) 2023-12-13 15:18:17 +01:00
Miroslav Jonaš
39e68517b1
feat(linter): add .nx to ignored folders (#20720) 2023-12-13 14:59:48 +01:00
Benjamin Cabanes
db77ddef8a
chore(repo): update packages readme banner (#20695) 2023-12-11 11:32:42 -05:00
Benjamin Cabanes
5a305d41de
feat(nx-dev): add homepage updates (#20592)
Co-authored-by: Juri <juri.strumpflohner@gmail.com>
2023-12-08 14:40:42 -05:00
Miroslav Jonaš
af28cc45a9
fix(testing): fix lint config generation for cypress standalone (#20606) 2023-12-07 13:04:06 -05:00
Jack Hsu
ab8c9298be
feat(core): targets inferred from plugins override targetDefaults (#20586) 2023-12-06 10:47:53 +02:00
Miroslav Jonaš
804959a454
fix(linter): support adding plugin at a later stage (#20557) 2023-12-05 16:33:29 +01:00
Craigory Coppola
9e322e8620
fix(linter): expose rule name when eslint requires parser options project (#20459)
Co-authored-by: Miroslav Jonaš <missing.manual@gmail.com>
2023-12-01 11:49:06 +01:00
Katerina Skroumpelou
51501c57c0
fix(linter): check if eslint plugin exists before adding target (#20510) 2023-11-30 19:47:44 +01:00
Miroslav Jonaš
fe63f856ec
feat(linter): add create-nodes plugin (#20264) 2023-11-30 09:15:08 -05:00