118 Commits

Author SHA1 Message Date
Miroslav Jonaš
e767fa4e2a
fix(linter): ensure ast file detection supports tsx files (#15345) 2023-03-01 15:14:02 -05:00
Craigory Coppola
a815be56ef
fix(core): ignored directories should never contain projects (#15242) 2023-02-24 16:14:41 -05:00
Miroslav Jonaš
bacd875904
fix(linter): check for source package.json on banTransitiveDependencies (#15169) 2023-02-22 15:18:30 +01:00
Miroslav Jonaš
8d4855de61
feat(core): add full dependency information to project graph file dependencies (#14893) 2023-02-21 10:39:44 -05:00
William Sedlacek
8db4673a67
fix(linter): ng-package.json format (#14996) 2023-02-15 12:36:08 +01:00
Miroslav Jonaš
8165459568
feat(linter): add support for full regexes in tag matching (#14982) 2023-02-14 11:55:24 -05:00
Jason Jean
ed5ad1e367
chore(repo): fix failing eslint test (#14759) 2023-02-02 10:01:37 +01:00
Jonathan Cammisuli
fecf7fb82f
feat(core): add native node bindings for hashing (#14476)
Co-authored-by: FrozenPandaz <jasonjean1993@gmail.com>
2023-02-01 14:43:40 -05:00
Miroslav Jonaš
c23b74ef89
fix(linter): use ng-packager for checking secondary entry points in linter (#14425) 2023-02-01 12:58:50 -05:00
Miroslav Jonaš
2b23963415
fix(linter): wildcard sourceTag should be respected for banned imports (#14418) 2023-01-17 14:59:21 +01:00
Victor Savkin
422c8c735a cleanup(core): clearly split nx.json config and projects config 2023-01-05 15:35:36 -05:00
Younes Jaaidi
e3a9ca3f0d
docs(linter): fix comment (#13975) 2022-12-27 15:01:10 -05:00
Younes Jaaidi
d3e2d616d5
feat(linter): add allowedExternalImports option to boundaries rule (#13891) 2022-12-21 15:50:39 +01:00
Miroslav Jonaš
5d64b1eb3c
feat(linter): add support for combo source tags (#13817)
Fixes https://github.com/nrwl/nx/issues/12871
2022-12-15 16:12:59 +00:00
Miroslav Jonaš
970351574c
fix(linter): ensure projectRootMappings exist when running eslint directly (#13432) 2022-11-28 14:59:18 +00:00
Jason Jean
6d35fd4d85
chore(core): reconcile functions to find project of a path (#13364) 2022-11-24 11:02:32 -05:00
Miroslav Jonaš
bd4f4a23c2
feat(core): use createProjectFileMappings in TargetProjectLocator (#13268) 2022-11-21 14:43:40 +01:00
Miroslav Jonaš
de44bf86b1
feat(core): optimize project graph file mapping (#13249) 2022-11-18 14:34:58 +01:00
Miroslav Jonaš
ab6f62a9b5
feat(core): move runtime-lint-utils to eslint plugin (#13222) 2022-11-18 12:24:53 +01:00
Miroslav Jonaš
d59bd10d6c
fix(linter): do not remap namespace import specifiers as import specifiers (#12954) 2022-11-02 21:39:04 +00:00
Miroslav Jonaš
c3db8e6070
fix(linter): ensure fs operations run on full path (#12953) 2022-11-02 21:08:14 +00:00
Miroslav Jonaš
d58774e79e
fix(linter): project with empty onlyDependsOn can only depend on tagless project (#12878) 2022-10-28 14:58:17 +00:00
Miroslav Jonaš
3574fdc803
fix(linter): normalize rule context file name for cross OS (#11604) 2022-08-16 18:41:42 +00:00
Miroslav Jonaš
244ac01b7c
fix(linter): use more performant way to check for package existance (#11603) 2022-08-16 12:47:38 +00:00
Miroslav Jonaš
f44ba27c5a
fix(linter): skip prettier config if prettier is missing (#11542) 2022-08-11 16:13:13 +02:00
Juri
8e6a66cdb2 fix(linter): correctly fix absolute imports across package boundaries 2022-07-22 15:11:18 +02:00
Laforge Thomas
c117ad51ec
fix(linter): update typescript eslint dependency (#11112)
Co-authored-by: Miroslav Jonas <missing.manual@gmail.com>
2022-07-20 21:57:51 +00:00
Miroslav Jonaš
5194551d85
fix(linter): improve performance of runtime lint utils (#11100) 2022-07-12 17:04:01 +02:00
Miroslav Jonaš
d7bbf85f29
feat(linter): support transitive hasBannedImport (#11000) 2022-07-11 14:31:13 +02:00
Craigory Coppola
15c04b099e
chore(repo): enable eslint plugin checks (#10666) 2022-06-09 18:04:06 -04:00
Craigory Coppola
7f4abd9e3c
fix(linter): plugin-lint-checks should allow some strings as valid versions (#10647) 2022-06-09 09:27:31 -04:00
Craigory Coppola
10363e3bec
feat(nx-plugin): add plugin eslint rules (#9697)
* feat(nx-plugin): add lint rule for nx-plugin validation

* chore(repo): review feedback

Co-authored-by: Giora Guttsait <giora111@gmail.com>

* chore(repo): review feedback

Co-authored-by: Giora Guttsait <giora111@gmail.com>

* chore(nx-plugin): review comments

* chore(nx-plugin): review feedback

Co-authored-by: Giora Guttsait <giora111@gmail.com>
2022-06-03 16:03:39 -04:00
Victor Savkin
e491c6f738 feat(core): make nx.json optional 2022-05-31 15:35:28 -04:00
Miroslav Jonaš
4863e5124d
fix(linter): make entry point check for ts paths more specific (#10365) 2022-05-19 09:07:02 +02:00
Miroslav Jonaš
5baaab4b70
fix(linter): do not remap paths that cannot be matched on fix (#10371) 2022-05-19 09:06:49 +02:00
Miroslav Jonaš
87fd3ffdbe
cleanup(core): remove unused npm scope from target project locator (#9695) 2022-04-05 23:05:21 +02:00
Victor Savkin
428106f6be
cleanup(core): create more meaningful file structure in nx package (#9621) 2022-03-31 09:07:22 -04:00
Miroslav Jonaš
3b21f4dfea
fix(core): switch from appRootPath to workspaceRoot (#9600) 2022-03-30 09:15:20 -04:00
Craigory Coppola
9123665bed
fix(core): normalize file path for node-hasher (#9585)
Node hasher paths need to be normalized, since on windows they return with '\' instead of '/' and don't match keys in workspace configuration.

Fixes #9584
Fixes #9581
2022-03-29 14:16:24 -04:00
Victor Savkin
d4b5c30eba
cleanup(core): remove the indirection left after inlining ta… (#9469) 2022-03-23 22:18:17 -04:00
Victor Savkin
9c25cd9f59
chore(repo): reenable tests 2022-03-15 09:52:43 -04:00
Victor Savkin
53a0528d7a
fix(repo): temporary disable tests 2022-03-14 21:31:55 -04:00
Victor Savkin
6f038e7a4a feat(core): reorganize packges to consolidate all cli-related code in nx 2022-03-14 16:42:51 -04:00
Miroslav Jonaš
5db394ecd8
fix(linter): use import to check for secondary entrypoint in angular (#9285) 2022-03-11 14:52:43 +01:00
Juri Strumpflohner
45bf0e5a25
feat(linter): automatic fixes for noRelativeOrAbsoluteImportsAcrossLibraries and noSelfCircularDependencies (#8901)
Co-authored-by: Miroslav Jonas <missing.manual@gmail.com>
2022-03-09 08:14:33 +00:00
Jay Tavares
0a17a619d0
feat(linter): add notDependOnLibsWithTags constraint option to enforce-module-boundaries rule (#8633)
Co-authored-by: Miroslav Jonas <missing.manual@gmail.com>
2022-03-08 11:55:03 +01:00
Miroslav Jonaš
fa4cb1a958
fix(linter): ensure onlyDependOnLibsWithTags is present before check (#9192) 2022-03-04 08:07:30 -05:00
Ryan Diehl
ecf66750b4
fix(linter): update circular file path message to wrap onto multiple lines (#9033) 2022-03-04 13:57:20 +01:00
Miroslav Jonaš
c1ebe8020f
feat(core): expose swc/register via tao (#9142) 2022-03-04 12:54:58 +01:00
Miroslav Jonaš
aefe782a9f
fix(linter): enforce fresh graph if rule not run by nx command (#8976) 2022-02-16 13:44:00 +01:00