@nrwl/eslint-plugin-nx 13.4.5 → 13.5.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -15,103 +15,10 @@
|
|
|
15
15
|
|
|
16
16
|
<hr>
|
|
17
17
|
|
|
18
|
-
#
|
|
18
|
+
# Nx: Smart, Fast and Extensible Build System
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
Nx is a next generation build system with first class monorepo support and powerful integrations.
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
Nx is a smart, fast and extensible build system. It comes with first class monorepo support and powerful integrations.
|
|
25
|
-
|
|
26
|
-
### Best-in-Class Support for Monorepos
|
|
27
|
-
|
|
28
|
-
<strong>Nx</strong> provides distributed graph-based task execution and computation caching.
|
|
29
|
-
|
|
30
|
-
<strong>Nx</strong> is smart. It analyzes your workspace and figures out what can be affected by every code change.
|
|
31
|
-
That's why Nx doesn't rebuild and retest everything on every commit--<strong>it only rebuilds what is necessary</strong>
|
|
32
|
-
.
|
|
33
|
-
|
|
34
|
-
<strong>Nx</strong> partitions commands into a graph of smaller tasks. Nx then runs those tasks in parallel,
|
|
35
|
-
and <strong>it can even distribute them across multiple machines without any configuration</strong>.
|
|
36
|
-
|
|
37
|
-
<strong>Nx also uses a distributed computation cache.</strong> If someone has already built or tested similar code, Nx
|
|
38
|
-
will use their results to speed up the command for everyone else.
|
|
39
|
-
|
|
40
|
-
### Holistic Dev Experience Powered by an Advanced CLI and Editor Plugins
|
|
41
|
-
|
|
42
|
-
<strong>Nx</strong> helps scale your development from one team building one application to many teams building multiple
|
|
43
|
-
frontend and backend applications all in the same workspace. <strong >When using Nx, developers have a holistic dev
|
|
44
|
-
experience powered by an advanced CLI</strong > (with editor plugins), capabilities for controlled code sharing and
|
|
45
|
-
consistent code generation.
|
|
46
|
-
|
|
47
|
-
### Rich Plugin Ecosystem
|
|
48
|
-
|
|
49
|
-
<strong>Nx</strong> is an open platform with plugins for many modern tools and frameworks. It has support for
|
|
50
|
-
TypeScript, React, Angular, Cypress, Jest, Prettier, Nest.js, Next.js, Storybook, Ionic among others. With Nx, you get a
|
|
51
|
-
consistent dev experience regardless of the tools used.
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
## How to Use
|
|
55
|
-
|
|
56
|
-
This package is used by the `@nrwl/web`, `@nrwl/react`, `@nrwl/angular`, and `@nrwl/node`. See [https://github.com/nrwl/nx](https://github.com/nrwl/nx) for more information.
|
|
57
|
-
|
|
58
|
-
## Documentation & Resources
|
|
59
|
-
|
|
60
|
-
Even though Nx isn't technology specific, we provide 3 separate flavours of the documentation site to it make it easier for you to get up and running. For every link below, you will be able to select whether you want your examples to be written in React, Node or Angular.
|
|
61
|
-
|
|
62
|
-
- [Nx Documentation and Guides](https://nx.dev)
|
|
63
|
-
- [Intro into Nx](https://nx.dev/getting-started/intro)
|
|
64
|
-
- [Interactive Tutorial with Videos](https://nx.dev/tutorial/01-create-application)
|
|
65
|
-
|
|
66
|
-
### Quick Start Videos
|
|
67
|
-
|
|
68
|
-
- [Scale Your React Development with Nx](https://www.youtube.com/watch?v=sNz-4PUM0k8)
|
|
69
|
-
- [Scale your Node Development with Nx](https://www.youtube.com/watch?v=iIh5h_G52kI)
|
|
70
|
-
- [Modern Angular with Nx Dev Tools](https://www.youtube.com/watch?v=cXOkmOy-8dk)
|
|
71
|
-
|
|
72
|
-
### Courses
|
|
73
|
-
|
|
74
|
-
<table>
|
|
75
|
-
<tr>
|
|
76
|
-
<td><strong>Scale React Development with Nx</strong></td>
|
|
77
|
-
<td><strong>Nx Workspaces</strong></td>
|
|
78
|
-
<td><strong>Advanced Nx Workspaces</strong></td>
|
|
79
|
-
</tr>
|
|
80
|
-
<tr>
|
|
81
|
-
<td>
|
|
82
|
-
<a href="https://egghead.io/playlists/scale-react-development-with-nx-4038" target="_blank">
|
|
83
|
-
<p style="text-align: center;"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/EGH_ScalingReactNx.png" height="150px" alt="Nx - Scale React Development with Nx video course"></p>
|
|
84
|
-
</a>
|
|
85
|
-
</td>
|
|
86
|
-
<td>
|
|
87
|
-
<a href="https://www.youtube.com/watch?v=2mYLe9Kp9VM&list=PLakNactNC1dH38AfqmwabvOszDmKriGco" target="_blank">
|
|
88
|
-
<p style="text-align: center;"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-workspace-course.png" width="350" alt="Nx Workspaces video course"></p>
|
|
89
|
-
</a>
|
|
90
|
-
</td>
|
|
91
|
-
<td>
|
|
92
|
-
<a href="https://nxplaybook.com/p/advanced-nx-workspaces" target="_blank">
|
|
93
|
-
<p style="text-align: center;"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/advanced-nx-workspace-course.png" width="350" alt="Nx Advanced Workspaces video course"></p>
|
|
94
|
-
</a>
|
|
95
|
-
</td>
|
|
96
|
-
</tr>
|
|
97
|
-
</table>
|
|
98
|
-
|
|
99
|
-
### Videos, Blogs, Books, Examples
|
|
100
|
-
|
|
101
|
-
- [Nx Dev Tools for Monorepos, In-Depth Explainer (React)](https://www.youtube.com/watch?v=jCf92IyR-GE)
|
|
102
|
-
|
|
103
|
-
- [Nx Dev Tools for Monorepos, In-Depth Explainer (Angular)](https://youtu.be/h5FIGDn5YM0)
|
|
104
|
-
|
|
105
|
-
- [Youtube Channel with Nx-Related Videos](https://www.youtube.com/playlist?list=PLakNactNC1dHHWx4JIORwfnEajRv6FG5m)
|
|
106
|
-
|
|
107
|
-
- [Blog Posts About Nx](https://blog.nrwl.io/nx/home)
|
|
108
|
-
|
|
109
|
-
- [Angular Enterprise Monorepo Patterns Book (free)](https://go.nrwl.io/angular-enterprise-monorepo-patterns-new-book?utm_campaign=Book%3A%20Monorepo%20Patterns%2C%20Jan%202019&utm_source=Github&utm_medium=Banner%20Ad)
|
|
110
|
-
|
|
111
|
-
- [Nx Examples Repo](https://github.com/nrwl/nx-examples)
|
|
112
|
-
|
|
113
|
-
# Engage with the Core Team and the Community
|
|
114
|
-
|
|
115
|
-
- [The Nx Show Playlist on YouTube](https://www.youtube.com/playlist?list=PLakNactNC1dE8KLQ5zd3fQwu_yQHjTmR5). It's a regular YouTube stream where we talk all things Nx. Join the stream, ask questions, etc.
|
|
116
|
-
- [Follow Nx on Twitter](https://twitter.com/NxDevTools)
|
|
22
|
+
This package is an ESLint plugin for Nx.
|
|
117
23
|
|
|
24
|
+
{{content}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nrwl/eslint-plugin-nx",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.5.0-beta.2",
|
|
4
4
|
"description": "ESLint Plugin for Nx",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"eslint-config-prettier": "^8.1.0"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@nrwl/devkit": "13.
|
|
31
|
-
"@nrwl/workspace": "13.
|
|
30
|
+
"@nrwl/devkit": "13.5.0-beta.2",
|
|
31
|
+
"@nrwl/workspace": "13.5.0-beta.2",
|
|
32
32
|
"@typescript-eslint/experimental-utils": "~5.3.0",
|
|
33
33
|
"confusing-browser-globals": "^1.0.9",
|
|
34
34
|
"ts-node": "^9.1.1",
|
|
@@ -11,6 +11,7 @@ const file_utils_1 = require("@nrwl/workspace/src/core/file-utils");
|
|
|
11
11
|
const target_project_locator_1 = require("@nrwl/workspace/src/core/target-project-locator");
|
|
12
12
|
const graph_utils_1 = require("@nrwl/workspace/src/utils/graph-utils");
|
|
13
13
|
const fileutils_1 = require("@nrwl/workspace/src/utilities/fileutils");
|
|
14
|
+
const angular_1 = require("../utils/angular");
|
|
14
15
|
exports.RULE_NAME = 'enforce-module-boundaries';
|
|
15
16
|
exports.default = (0, create_eslint_rule_1.createESLintRule)({
|
|
16
17
|
name: exports.RULE_NAME,
|
|
@@ -133,7 +134,10 @@ exports.default = (0, create_eslint_rule_1.createESLintRule)({
|
|
|
133
134
|
// same project => allow
|
|
134
135
|
if (sourceProject === targetProject) {
|
|
135
136
|
// we only allow relative paths within the same project
|
|
136
|
-
if
|
|
137
|
+
// and if it's not a secondary entrypoint in an angular lib
|
|
138
|
+
if (!allowCircularSelfDependency &&
|
|
139
|
+
!(0, fileutils_1.isRelativePath)(imp) &&
|
|
140
|
+
!(0, angular_1.isSecondaryEntrypoint)(sourceFilePath)) {
|
|
137
141
|
context.report({
|
|
138
142
|
node,
|
|
139
143
|
messageId: 'noSelfCircularDependencies',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enforce-module-boundaries.js","sourceRoot":"","sources":["../../../../../packages/eslint-plugin-nx/src/rules/enforce-module-boundaries.ts"],"names":[],"mappings":";;;AAAA,2DAA2D;AAC3D,qFAgBsD;AACtD,8EAG+C;AAC/C,oEAA+D;AAC/D,yCAA6C;AAC7C,0EAGgD;AAChD,oEAAiE;AACjE,4FAAuF;AACvF,uEAG+C;AAC/C,uEAAyE;
|
|
1
|
+
{"version":3,"file":"enforce-module-boundaries.js","sourceRoot":"","sources":["../../../../../packages/eslint-plugin-nx/src/rules/enforce-module-boundaries.ts"],"names":[],"mappings":";;;AAAA,2DAA2D;AAC3D,qFAgBsD;AACtD,8EAG+C;AAC/C,oEAA+D;AAC/D,yCAA6C;AAC7C,0EAGgD;AAChD,oEAAiE;AACjE,4FAAuF;AACvF,uEAG+C;AAC/C,uEAAyE;AACzE,8CAAyF;AAuB5E,QAAA,SAAS,GAAG,2BAA2B,CAAC;AAErD,kBAAe,IAAA,qCAAgB,EAAsB;IACnD,IAAI,EAAE,iBAAS;IACf,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,iEAAiE;YAC9E,WAAW,EAAE,OAAO;SACrB;QACD,OAAO,EAAE,MAAM;QACf,MAAM,EAAE;YACN;gBACE,IAAI,EAA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ineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isSecondaryEntrypoint = void 0;
|
|
4
|
+
const devkit_1 = require("@nrwl/devkit");
|
|
5
|
+
const fs_1 = require("fs");
|
|
6
|
+
function isSecondaryEntrypoint(path) {
|
|
7
|
+
return path.endsWith('src/index.ts')
|
|
8
|
+
? (0, fs_1.existsSync)((0, devkit_1.joinPathFragments)(path, '../../', 'ng-package.json'))
|
|
9
|
+
: false;
|
|
10
|
+
}
|
|
11
|
+
exports.isSecondaryEntrypoint = isSecondaryEntrypoint;
|
|
12
|
+
//# sourceMappingURL=angular.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"angular.js","sourceRoot":"","sources":["../../../../../packages/eslint-plugin-nx/src/utils/angular.ts"],"names":[],"mappings":";;;AAAA,yCAAiD;AACjD,2BAAgC;AAEhC,SAAgB,qBAAqB,CAAC,IAAY;IAChD,OAAO,IAAI,CAAC,QAAQ,CAAC,cAAc,CAAC;QAClC,CAAC,CAAC,IAAA,eAAU,EAAC,IAAA,0BAAiB,EAAC,IAAI,EAAE,QAAQ,EAAE,iBAAiB,CAAC,CAAC;QAClE,CAAC,CAAC,KAAK,CAAC;AACZ,CAAC;AAJD,sDAIC"}
|