Skip to content

Commit 0714539

Browse files
committed
Migrate to nx 13
1 parent ce6d3c5 commit 0714539

File tree

20 files changed

+3495
-1326
lines changed

20 files changed

+3495
-1326
lines changed

.eslintrc.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"root": true,
3+
"ignorePatterns": ["**/*"],
4+
"plugins": ["@nrwl/nx"],
5+
"overrides": [
6+
{
7+
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
8+
"rules": {
9+
"@nrwl/nx/enforce-module-boundaries": [
10+
"error",
11+
{
12+
"enforceBuildableLibDependency": true,
13+
"allow": [],
14+
"depConstraints": [{ "sourceTag": "*", "onlyDependOnLibsWithTags": ["*"] }]
15+
}
16+
]
17+
}
18+
},
19+
{ "files": ["*.ts", "*.tsx"], "extends": ["plugin:@nrwl/nx/typescript"], "rules": {} },
20+
{ "files": ["*.js", "*.jsx"], "extends": ["plugin:@nrwl/nx/javascript"], "rules": {} }
21+
]
22+
}

angular.json

Lines changed: 1 addition & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -478,52 +478,5 @@
478478
}
479479
}
480480
}
481-
},
482-
"cli": {
483-
"defaultCollection": "@nrwl/angular"
484-
},
485-
"schematics": {
486-
"@nrwl/workspace": {
487-
"library": {
488-
"linter": "tslint"
489-
}
490-
},
491-
"@nrwl/cypress": {
492-
"cypress-project": {
493-
"linter": "tslint"
494-
}
495-
},
496-
"@nrwl/node": {
497-
"application": {
498-
"linter": "tslint"
499-
},
500-
"library": {
501-
"linter": "tslint"
502-
}
503-
},
504-
"@nrwl/nest": {
505-
"application": {
506-
"linter": "tslint"
507-
},
508-
"library": {
509-
"linter": "tslint"
510-
}
511-
},
512-
"@nrwl/express": {
513-
"application": {
514-
"linter": "tslint"
515-
},
516-
"library": {
517-
"linter": "tslint"
518-
}
519-
},
520-
"@nrwl/angular:application": {
521-
"unitTestRunner": "jest",
522-
"e2eTestRunner": "cypress"
523-
},
524-
"@nrwl/angular:library": {
525-
"unitTestRunner": "jest"
526-
}
527-
},
528-
"defaultProject": "conduit"
481+
}
529482
}

apps/conduit-e2e/.eslintrc.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"extends": ["plugin:cypress/recommended", "../../.eslintrc.json"],
3+
"ignorePatterns": ["!**/*"],
4+
"overrides": [
5+
{
6+
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
7+
"rules": {}
8+
},
9+
{
10+
"files": ["src/plugins/index.js"],
11+
"rules": {
12+
"@typescript-eslint/no-var-requires": "off",
13+
"no-undef": "off"
14+
}
15+
}
16+
]
17+
}

apps/conduit-e2e/tslint.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

apps/conduit/.eslintrc.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"extends": ["../../.eslintrc.json"],
3+
"ignorePatterns": ["!**/*"],
4+
"overrides": [
5+
{
6+
"files": ["*.ts"],
7+
"extends": ["plugin:@nrwl/nx/angular", "plugin:@angular-eslint/template/process-inline-templates"],
8+
"parserOptions": {
9+
"project": ["apps/conduit/tsconfig.*?.json"]
10+
},
11+
"rules": {
12+
"@angular-eslint/directive-selector": [
13+
"error",
14+
{
15+
"type": "attribute",
16+
"prefix": "conduit",
17+
"style": "camelCase"
18+
}
19+
],
20+
"@angular-eslint/component-selector": [
21+
"error",
22+
{
23+
"type": "element",
24+
"prefix": "conduit",
25+
"style": "kebab-case"
26+
}
27+
]
28+
}
29+
},
30+
{
31+
"files": ["*.html"],
32+
"extends": ["plugin:@nrwl/nx/angular-template"],
33+
"rules": {}
34+
}
35+
]
36+
}

apps/conduit/tslint.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

apps/examples-e2e/.eslintrc.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"extends": ["plugin:cypress/recommended", "../../.eslintrc.json"],
3+
"ignorePatterns": ["!**/*"],
4+
"overrides": [
5+
{
6+
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
7+
"rules": {}
8+
},
9+
{
10+
"files": ["src/plugins/index.js"],
11+
"rules": {
12+
"@typescript-eslint/no-var-requires": "off",
13+
"no-undef": "off"
14+
}
15+
}
16+
]
17+
}

apps/examples-e2e/tslint.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

apps/examples/.eslintrc.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"extends": ["../../.eslintrc.json"],
3+
"ignorePatterns": ["!**/*"],
4+
"overrides": [
5+
{
6+
"files": ["*.ts"],
7+
"extends": ["plugin:@nrwl/nx/angular", "plugin:@angular-eslint/template/process-inline-templates"],
8+
"parserOptions": {
9+
"project": ["apps/examples/tsconfig.*?.json"]
10+
},
11+
"rules": {
12+
"@angular-eslint/directive-selector": [
13+
"error",
14+
{
15+
"type": "attribute",
16+
"prefix": "examples",
17+
"style": "camelCase"
18+
}
19+
],
20+
"@angular-eslint/component-selector": [
21+
"error",
22+
{
23+
"type": "element",
24+
"prefix": "examples",
25+
"style": "kebab-case"
26+
}
27+
]
28+
}
29+
},
30+
{
31+
"files": ["*.html"],
32+
"extends": ["plugin:@nrwl/nx/angular-template"],
33+
"rules": {}
34+
}
35+
]
36+
}

apps/examples/tslint.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)