+ Resources & Tools
+ Thank you for using and showing some ♥ for Nx.
+
+ Here are some links to help you get started.
+
+ Next Steps
+ Here are some things you can do with Nx.
+
+ Add UI library
+
+ # Generate UI lib
+ nx g @nrwl/angular:lib ui
+
+ # Add a component
+ nx g @nrwl/angular:component xyz --project ui
+
+
+ View dependency graph
+ nx dep-graph
+
+
+ Run affected commands
+
+ # see what's been affected by changes
+ nx affected:dep-graph
+
+ # run tests for current changes
+ nx affected:test
+
+ # run e2e tests for current changes
+ nx affected:e2e
+
+
+
+
diff --git a/tests/src/rules/first.js b/tests/src/rules/first.js
index 05328e51e9..7bb0efb975 100644
--- a/tests/src/rules/first.js
+++ b/tests/src/rules/first.js
@@ -1,4 +1,6 @@
-import { test, getTSParsers } from '../utils';
+import { test, getTSParsers, testVersion } from '../utils';
+import fs from 'fs';
+import path from 'path';
import { RuleTester } from 'eslint';
@@ -6,7 +8,7 @@ const ruleTester = new RuleTester();
const rule = require('rules/first');
ruleTester.run('first', rule, {
- valid: [
+ valid: [].concat(
test({
code: "import { x } from './foo'; import { y } from './bar';\
export { x, y }",
@@ -21,7 +23,12 @@ ruleTester.run('first', rule, {
code: "'use directive';\
import { x } from 'foo';",
}),
- ],
+ testVersion('>= 4', () => ({
+ // issue #2210
+ code: String(fs.readFileSync(path.join(__dirname, '../../files/component.html'))),
+ parser: require.resolve('@angular-eslint/template-parser'),
+ })),
+ ),
invalid: [
test({
code: "import { x } from './foo';\