159 Commits

Author SHA1 Message Date
Jack Hsu
20fea36058
feat(linter): use recommended react hooks eslint config (#5258) 2021-04-07 02:52:10 +00:00
vsavkin
b5efa6bfee feat(core): hash only relevant parts of global config files 2021-04-06 20:20:47 -04:00
Jason Jean
bfb194843f
feat(core): remove readFile argument from createProjectGraph (#5206)
* feat(core): deprecate creating a project graph from a host

* feat(core): remove readFile argument from createProjectGraph
2021-04-06 13:44:09 -04:00
puku0x
b1d9363bd9 fix(linter): add import source type check for literals
ISSUES CLOSED: #5224
2021-04-04 12:54:54 -04:00
Jack Hsu
c84bbb3c93
feat(react): add support for new jsx transform (#5131) 2021-04-01 13:46:12 +00:00
Noriyuki Shinpuku
d582875599
fix(linter): apply enforce-module-boundaries rule to import expressions (#5054)
ISSUES CLOSED: #3857
2021-03-26 08:27:25 -04:00
Vivek More 🧐
212fb00548 cleanup(misc): use more es6 features
- Single char alternation (e.g. a|b|c|d) in a RegExp can be simplified to use a character class ([abcd]) instead.
  This usually also provides slightly better matching performance.
- Character escapes that are replaceable with the unescaped character without a change in meaning. Inside the square brackets of a character class, many escapes are unnecessary that would be necessary outside of a character class. For example the regex [\.] is identical to [.]
- If several qualified expressions occur after the qualifier having been checked for nullable, they can be replaced with optional chaining
2021-03-24 20:11:32 -04:00
James Henry
00dec221e2
feat(linter): convert-tslint-to-eslint generators (#4943)
* feat(linter): convert-tslint-to-eslint generators

* fix(core): remove generators in collection for ng and nest

* fix(core): update tao to support mixed generators and schematics

* fix(core): update tao to support mixed generators and schematics

* fix(core): address some PR feedback

* fix(core): fix snapshots after syncing up with master

* feat(core): store user preference for removeTSLintIfNoMoreTSLintTargets

* fix(linter): unit tests

* feat(core): apply root tslint.json conversion to root .eslintrc.json
2021-03-19 13:41:13 -04:00
Victor Savkin
b977f42f67
fix(core): optimize task orderer to handle large graphs (#4992) 2021-03-10 17:36:05 +00:00
Jason Jean
fc9caccffb
chore(repo): update nx to 11.5.0-beta.0 (#4957) 2021-03-05 19:57:26 -05:00
Gustavo Perdomo
5b0f23a3e4
chore(linter): update eslint-config-prettier (#4899)
* chore(linter): update eslint-config-prettier

* fix(linter): fix migrations

* feat(linter): update migrations

* fix(linter): move peer dependency to eslint-plugin-nx

Co-authored-by: Jason Jean <jasonjean1993@gmail.com>
2021-03-05 20:22:16 +00:00
James Henry
48c7c7b6a3
fix(core): always use project level tsconfigs with eslint (#4657)
* chore(core): increase coverage of eslint config file contents

* fix(core): always use project level tsconfigs with eslint

* chore(core): enhance depcheck to ignore type only imports

* chore(linter): migration always-use-project-level-tsconfigs-with-eslint

* fix(core): snapshots

* feat(core): thin wrapper around tseslint parser

* fix(core): depcheck for eslint-plugin-nx

* fix(core): revert wrapped parser

* fix(linter): add tsconfig root dir to allow for normalized paths for project configs

* fix(linter): move migration to 11.5.0

* fix(linter): add dependency on to @nrwl/workspace

Co-authored-by: Jason Jean <jasonjean1993@gmail.com>
2021-03-05 11:48:18 -05:00
James Henry
a4a2947ae8
fix(core): disable no-var-requires eslint rule for JS files (#4831) 2021-02-18 13:52:44 -05:00
James Henry
cc88815ece
fix(core): set browser + node eslint env in @nrwl/nx/javascript (#4804) 2021-02-16 12:42:13 -05:00
Jason Jean
0933bcafd8
feat(core): clean up remaining usages of angular devkit (#4610) 2021-01-25 17:21:42 -05:00
Jason Jean
f25776d903
feat(linter): migrate eslint executor to devkit (#4607) 2021-01-25 15:00:53 -05:00
Victor Savkin
a25e081a84 feat(core): remove angular devkit deps 2021-01-25 12:52:30 -05:00
Kevin Brewer
b10e92818f
fix(linter): allow type imports from lazy-loaded libraries (#4431) 2021-01-14 08:45:26 +00:00
Victor Savkin
599923bc68 fix(misc): remov peer deps to make npm 7 install work
Closes #4436
2021-01-07 20:27:11 -05:00
Jason Jean
b9791a3108
feat(core): upgrade to angular and angular devkit 11 (#4095) 2020-11-30 14:07:27 -05:00
James Henry
bd92a12c33
feat(angular): eslint config including template linting (#3988)
* feat(angular): eslint config including template linting

* feat(angular): migration add-template-support-and-presets

* feat(angular): add support for component and directive prefix in lint config

* fix(angular): tests

* fix(angular): e2e tests

* fix(angular): update to latest and make updates

* fix(angular): update to latest and make updates

* fix(angular): lockfile

* fix(angular): update to latest and make updates

* fix(angular): bump angular-eslint

Co-authored-by: Jason Jean <jasonjean1993@gmail.com>
2020-11-25 13:55:22 -05:00
Victor Savkin
2824794a92 feat(core): clean up the language to use word executor 2020-11-24 09:49:52 -05:00
James Henry
4f5fb0f8fc
feat(linter): use overrides in root eslint config (#3949)
* feat(linter): use overrides in root eslint config

* feat(linter): update-root-eslint-config-to-use-overrides migration
2020-10-23 16:14:09 -04:00
James Henry
588effd5c5
feat(linter): shareable eslint configs (#3882)
* feat(linter): shareable eslint configs

* chore(linter): migration towards shareable eslint configs
2020-10-16 15:31:26 -04:00
Jason Jean
6c4aacf212
feat(repo): update to nx 10.3 (#3840) 2020-10-02 13:12:34 -04:00
James Henry
e22f9370f5
feat(linter): new eslint builder (#3834)
* feat(linter): new eslint builder

* chore(linter): move migration to linter, add implementation

Co-authored-by: Jason Jean <jasonjean1993@gmail.com>
2020-09-29 20:52:10 -04:00
Jason Jean
232fd9f30b
feat(core): update to typescript 4 (#3814) 2020-09-29 18:53:22 -04:00
Jason Jean
f057978400
fix(core): fix lint failures for npm packages (#3827) 2020-09-28 18:31:29 -04:00
maxkoretskyi
4a942d9eda fix(linter): fix performance issues with boundaries lint checks 2020-09-28 13:20:25 -04:00
Jason Jean
970a60d08c fix(core): combine npm and project locators to scan files only once 2020-09-28 11:52:31 -04:00
Tasos Bekos
b11a50f9a0 cleanup(repo): add packages to dependency lists in package.json
This commit also adds a dependency check tool.
2020-09-14 13:07:45 -04:00
Jonathan Cammisuli
7dbf48a11e
chore(repo): update to 10.1.0-beta (#3561) 2020-08-19 13:06:12 -04:00
Victor Savkin
aff592b930 feat(angular): add an option to use eslint 2020-08-06 22:08:16 -04:00
Victor Savkin
5d53661139 fix(repo): update the repo to nx 10 2020-07-16 16:18:00 -04:00
Victor Savkin
67dda10d55 feat(core): redesign workspace file hashing 2020-07-16 13:51:25 -04:00
Jason Jean
a7b7af2dfe
feat(core): switch over to angular 10 (#3056)
* feat(core): switch over to devkit 10-rc.0

* feat(core): implement solution tsconfigs wip

* feat(angular): add angular migrations

* fix(angular): modify angularjs tests
2020-07-07 17:02:06 -04:00
Victor Savkin
0111d87575 feat(repo): have separate readmes for all plugins 2020-06-14 23:33:05 -04:00
Jason Jean
fc61fcb2ab
fix(linter): fix dependencies from projects on themselves when another circular dependency exists (#3163) 2020-06-12 10:07:56 -04:00
Victor Savkin
e71ceba4ce feat(repo): run e2e tests using nx 2020-06-07 23:31:38 -04:00
Jonathan Cammisuli
3a4a3bea13
fix(core): use typescript module resolution for linting (#3075)
* fix(core): use typescript module resolution only for linting

* fix(core): fix unit tests

* fix(core): pass npm scope to target project locator for fallback

* chore(core): move comment about npmscope
2020-06-05 11:11:17 -04:00
Victor Savkin
d0cbc35efa feat(repo): build nx with nx 2020-06-03 16:25:25 -04:00
Jason Jean
e06822da7e
chore(repo): update prettier to v2 (#2934)
this is just for the repo, and not the workspace

Co-authored-by: Rares Matei <matei.rar@gmail.com>
2020-04-29 01:09:37 -04:00
Victor Savkin
a8f9e12fb6 fix(core): update ts eslint version to remove the warning 2020-02-16 12:50:12 -05:00
Jonathan Cammisuli
1c4078986f
TypeScript module resolution and lint updates (#2309)
* Revert "Revert "fix(core): sort node names for module resolution""

This reverts commit 0b77072fcfe63f8d02fccb73ba138aca99cb7f66.

* fix(core): add target project locator

This will sort nodes by length of the root (high to low) then nodes that have no root.

It also uses TypeScript to first try and resolve a module. If it is not found via TypeScript, it will
fall back to using a string match.
2020-01-31 13:08:12 -05:00
Juri
98a60d118f feat(core): add enforceBuildableLibDependency to make buildable lib rule configurable
This way if the buildable lib dependency rule doesn't work for some people they have an easy way to
opt-out of it
2020-01-21 12:02:13 -05:00
Juri
36463cf2a2 feat(core): add rule to enforce deps buildable-lib to buildable-lib
buildable libraries should only be able to import other buildable libraries
to avoid confusion. Importing non-buildable libs would effectively
mean embedding their src into the buildable libs, even potentially
multiple times.
2020-01-21 12:02:13 -05:00
Victor Savkin
0b77072fcf Revert "fix(core): sort node names for module resolution" 2020-01-11 22:42:33 -05:00
Jonathan Cammisuli
dddc1b1e6c fix(core): sort node names for module resolution 2020-01-09 19:13:53 -05:00
Jonathan Cammisuli
3d05bf08d0 Revert "Revert "fix(misc): resolve projects for linting using TypeScript""
This reverts commit ab25e84b08a938661d5766c5c7f4d501cfaf8b0b.
2020-01-09 19:13:53 -05:00
Victor Savkin
ab25e84b08 Revert "fix(misc): resolve projects for linting using TypeScript"
This reverts commit 6411a29683eff436ad314692aec61ea403155d3a.
2020-01-02 22:19:33 -05:00