281 Commits

Author SHA1 Message Date
James Henry
b4981324b5
fix(linter): convert tslint:disable comments as part of project conversion (#5188)
* fix(linter): convert tslint:disable comments as part of project conversion

* fix(linter): use dynamically loaded tslint-to-eslint-config

* fix(linter): restore unrelated snapshot

* chore(linter): use visitNotIgnoredFiles

* cleanup(linter): remove unused code

Co-authored-by: Jason Jean <jasonjean1993@gmail.com>
2021-03-31 22:53:20 +00:00
Jack Hsu
e2287867cd
feat(core): update typescript to 4.1 (#5116) 2021-03-30 08:38:40 -04:00
Jack Hsu
ed94c4e1ec
docs(core): add nextjs app for new nx.dev website (#5133)
Co-authored-by: ben <contact@benjamincabanes.com>
2021-03-27 04:01:31 +00:00
Jason Jean
9348eae236
feat(linter): update tslint-to-eslint-config to ^2.2.0 (#5117) 2021-03-25 13:03:15 -04:00
Jason Jean
24a5cb0b25
fix(linter): keep plugins other than typescript-eslint/tslint (#5111) 2021-03-25 11:30:12 -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
Jason Jean
578455f032
fix(linter): remove unused parameter from convert-to-eslint-config (#5108) 2021-03-24 20:04:05 +00:00
Jason Jean
be600ef15e feat(linter): install tslint-to-eslint in a tmp dir 2021-03-24 15:16:18 -04:00
Jason Jean
eb2fa0fac0 fix(linter): remove tslint/config rule from converted eslint configs 2021-03-24 15:16:18 -04:00
Vivek
d1b09eaabd
cleanup(misc): make code more consistent and fix typos 2021-03-23 13:03:17 -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
Kirils Ladovs
253addef4a
chore(nextjs): add migration to remove tsconfig.app.json (#4988)
additionally, fix linter migration to migrate next.js apps correctly
2021-03-10 11:25:07 -05:00
Jack Hsu
2527dc629e
chore(linter): convert linter migration to @nrwl/devkit (#4978) 2021-03-09 21:40:47 +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
699b1cbe1b feat(linter): noEslintrc option for eslint executor 2021-02-22 11:25:00 -05:00
Brandon
e4faaf1ef4
feat(angular): update Angular packages to 11.2.x release (#4788)
* feat(angular): update Angular packages to 11.2.x release

* chore(angular): fix storybook 5-6 default schematic unit test

* fix(angular): fix Angular Devkit discrepancies
2021-02-16 10:38:11 -05:00
Jason Jean
33acb41afb
cleanup(react): cleanup generators for react and next (#4769) 2021-02-12 15:29:31 -05:00
Lucas Vieira
4133c05bd3
fix(linter): do not print lint results to stdout when "outputPath" is set (#4755) 2021-02-12 13:16:55 +00:00
Jason Jean
06f84b3326
feat(react): migrate @nrwl/web schematics to devkit (#4666) 2021-02-02 18:56:35 -05:00
Jason Jean
ec758b4276
feat(linter): remove tslint from empty workspace and fix tslint support (#4622) 2021-01-27 18:38:07 -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
Jason Jean
716bb44254
feat(core): migrate library to devkit (#4512)
* migrate lint

* feat(core): migrate library to devkit
2021-01-13 16:57:19 -05: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
James Henry
42b61d0e90 feat(angular): update @angular-eslint to v1 2021-01-05 11:01:33 -05:00
arabull
755804fff6
fix(linter): Respect the "quiet" option (#4330) 2021-01-02 10:09:24 +00:00
Victor Savkin
e768ad4862 fix(misc): update the schema version for when creating executors 2020-12-22 11:32:22 -05:00
Isaac Mann
35015dd891 cleanup(docs): update terminology for docs related to nx/devkit 2020-12-06 13:52:08 -05:00
Jason Jean
b9791a3108
feat(core): upgrade to angular and angular devkit 11 (#4095) 2020-11-30 14:07:27 -05:00
Tasos Bekos
463d2cb9e0
fix(repo): add missing tslib dependency in generated applications (#3858) 2020-10-23 17:09:35 -04: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
James Henry
b5de2f4e4e
fix(linter): migration should not include patterns from node_modules (#3880)
* fix(linter): migration should not include patterns from node_modules

* feat(linter): add additional migration to revert issue with previous one

* fix(linter): small tweaks based on call with Jason
2020-10-08 11:10:47 -04:00
Jason Jean
6c4aacf212
feat(repo): update to nx 10.3 (#3840) 2020-10-02 13:12:34 -04:00
Jason Jean
a8db1f787a
fix(linter): use the tsConfig option to find tsconfigs for eslint migration (#3853) 2020-10-02 10:42:34 -04:00
James Henry
da6f987631
fix(linter): add root .eslintrc.json to implicit deps (#3852)
* fix(linter): add root .eslintrc.json to implicit deps

* fix(linter): unit tests
2020-10-02 09:41:49 -04:00
Jason Jean
ad56f5785a
fix(linter): run migration for targets that are not lint (#3850) 2020-10-02 00:05:32 -04:00
James Henry
e339ece224
feat(linter): add explicit file extension to config files (#3847)
* feat(linter): add explicit file extension to config files

* feat(linter): update references to .eslintrc for new projects

* fix(linter): fix quotes in global eslint config
2020-10-01 18:59:45 -04:00
Jason Jean
f2585ae04e
fix(linter): remove duplicate migration of disabling explicit-module-boundary-types (#3837) 2020-09-30 12:11:57 -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
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
Wael Showair
cee55a8580
fix(linter): exit node process successfully when maxWarnings is set (#3646)
* fix(linter): exit node process succesfully when maxWarnings is set

ISSUES CLOSED: #3644

* fix(linter): exit node process successfully if reported warnings count <= maxWarnings option

ISSUES CLOSED: #3644
2020-09-03 16:56:35 +03:00
Martin Hochel
cbb342d597 fix(linter): include project's dts files when linting
ISSUES CLOSED: #3193
2020-09-01 11:41:26 -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