docs(linter): update docs for eslint package (#19649)
This commit is contained in:
parent
317635331a
commit
b30f3c59cc
@ -113,8 +113,8 @@ rust-toolchain @nrwl/nx-native-reviewers
|
|||||||
|
|
||||||
# Linter
|
# Linter
|
||||||
/docs/generated/packages/eslint-plugin/** @nrwl/nx-linter-reviewers @nrwl/nx-docs-reviewers
|
/docs/generated/packages/eslint-plugin/** @nrwl/nx-linter-reviewers @nrwl/nx-docs-reviewers
|
||||||
/docs/generated/packages/linter/** @nrwl/nx-linter-reviewers @nrwl/nx-docs-reviewers
|
/docs/generated/packages/eslint/** @nrwl/nx-linter-reviewers @nrwl/nx-docs-reviewers
|
||||||
/docs/shared/packages/linter/** @nrwl/nx-linter-reviewers @nrwl/nx-docs-reviewers
|
/docs/shared/packages/eslint/** @nrwl/nx-linter-reviewers @nrwl/nx-docs-reviewers
|
||||||
/packages/eslint-plugin/** @nrwl/nx-linter-reviewers
|
/packages/eslint-plugin/** @nrwl/nx-linter-reviewers
|
||||||
/packages/eslint/** @nrwl/nx-linter-reviewers
|
/packages/eslint/** @nrwl/nx-linter-reviewers
|
||||||
/e2e/eslint/** @nrwl/nx-linter-reviewers
|
/e2e/eslint/** @nrwl/nx-linter-reviewers
|
||||||
|
|||||||
@ -6668,19 +6668,36 @@
|
|||||||
"disableCollapsible": false
|
"disableCollapsible": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "linter",
|
"id": "eslint",
|
||||||
"path": "/nx-api/linter",
|
"path": "/nx-api/eslint",
|
||||||
"name": "linter",
|
"name": "eslint",
|
||||||
"children": [
|
"children": [
|
||||||
|
{
|
||||||
|
"id": "documents",
|
||||||
|
"path": "/nx-api/eslint/documents",
|
||||||
|
"name": "documents",
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"name": "Overview",
|
||||||
|
"path": "/nx-api/eslint/documents/overview",
|
||||||
|
"id": "overview",
|
||||||
|
"isExternal": false,
|
||||||
|
"children": [],
|
||||||
|
"disableCollapsible": false
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"isExternal": false,
|
||||||
|
"disableCollapsible": false
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"id": "executors",
|
"id": "executors",
|
||||||
"path": "/nx-api/linter/executors",
|
"path": "/nx-api/eslint/executors",
|
||||||
"name": "executors",
|
"name": "executors",
|
||||||
"children": [
|
"children": [
|
||||||
{
|
{
|
||||||
"id": "eslint",
|
"id": "lint",
|
||||||
"path": "/nx-api/linter/executors/eslint",
|
"path": "/nx-api/eslint/executors/lint",
|
||||||
"name": "eslint",
|
"name": "lint",
|
||||||
"children": [],
|
"children": [],
|
||||||
"isExternal": false,
|
"isExternal": false,
|
||||||
"disableCollapsible": false
|
"disableCollapsible": false
|
||||||
@ -6691,12 +6708,12 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "generators",
|
"id": "generators",
|
||||||
"path": "/nx-api/linter/generators",
|
"path": "/nx-api/eslint/generators",
|
||||||
"name": "generators",
|
"name": "generators",
|
||||||
"children": [
|
"children": [
|
||||||
{
|
{
|
||||||
"id": "workspace-rules-project",
|
"id": "workspace-rules-project",
|
||||||
"path": "/nx-api/linter/generators/workspace-rules-project",
|
"path": "/nx-api/eslint/generators/workspace-rules-project",
|
||||||
"name": "workspace-rules-project",
|
"name": "workspace-rules-project",
|
||||||
"children": [],
|
"children": [],
|
||||||
"isExternal": false,
|
"isExternal": false,
|
||||||
@ -6704,7 +6721,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "workspace-rule",
|
"id": "workspace-rule",
|
||||||
"path": "/nx-api/linter/generators/workspace-rule",
|
"path": "/nx-api/eslint/generators/workspace-rule",
|
||||||
"name": "workspace-rule",
|
"name": "workspace-rule",
|
||||||
"children": [],
|
"children": [],
|
||||||
"isExternal": false,
|
"isExternal": false,
|
||||||
@ -6712,7 +6729,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "convert-to-flat-config",
|
"id": "convert-to-flat-config",
|
||||||
"path": "/nx-api/linter/generators/convert-to-flat-config",
|
"path": "/nx-api/eslint/generators/convert-to-flat-config",
|
||||||
"name": "convert-to-flat-config",
|
"name": "convert-to-flat-config",
|
||||||
"children": [],
|
"children": [],
|
||||||
"isExternal": false,
|
"isExternal": false,
|
||||||
|
|||||||
@ -650,55 +650,67 @@
|
|||||||
},
|
},
|
||||||
"path": "/nx-api/esbuild"
|
"path": "/nx-api/esbuild"
|
||||||
},
|
},
|
||||||
"linter": {
|
"eslint": {
|
||||||
"githubRoot": "https://github.com/nrwl/nx/blob/master",
|
"githubRoot": "https://github.com/nrwl/nx/blob/master",
|
||||||
"name": "linter",
|
"name": "eslint",
|
||||||
"packageName": "@nx/linter",
|
"packageName": "@nx/eslint",
|
||||||
"description": "The ESLint plugin for Nx contains executors, generators and utilities used for linting JavaScript/TypeScript projects within an Nx workspace.",
|
"description": "The ESLint plugin for Nx contains executors, generators and utilities used for linting JavaScript/TypeScript projects within an Nx workspace.",
|
||||||
"documents": {},
|
"documents": {
|
||||||
|
"/nx-api/eslint/documents/overview": {
|
||||||
|
"id": "overview",
|
||||||
|
"name": "Overview",
|
||||||
|
"description": "The ESLint plugin for Nx contains executors, generators and utilities used for linting JavaScript/TypeScript projects within an Nx workspace.",
|
||||||
|
"file": "generated/packages/eslint/documents/overview",
|
||||||
|
"itemList": [],
|
||||||
|
"isExternal": false,
|
||||||
|
"path": "/nx-api/eslint/documents/overview",
|
||||||
|
"tags": [],
|
||||||
|
"originalFilePath": "shared/packages/eslint/eslint"
|
||||||
|
}
|
||||||
|
},
|
||||||
"root": "/packages/eslint",
|
"root": "/packages/eslint",
|
||||||
"source": "/packages/eslint/src",
|
"source": "/packages/eslint/src",
|
||||||
"executors": {
|
"executors": {
|
||||||
"/nx-api/linter/executors/eslint": {
|
"/nx-api/eslint/executors/lint": {
|
||||||
"description": "Run ESLint on a project.",
|
"description": "Run ESLint on a project.",
|
||||||
"file": "generated/packages/linter/executors/eslint.json",
|
"file": "generated/packages/eslint/executors/lint.json",
|
||||||
"hidden": false,
|
"hidden": false,
|
||||||
"name": "eslint",
|
"name": "lint",
|
||||||
"originalFilePath": "/packages/eslint/src/executors/lint/schema.json",
|
"originalFilePath": "/packages/eslint/src/executors/lint/schema.json",
|
||||||
"path": "/nx-api/linter/executors/eslint",
|
"path": "/nx-api/eslint/executors/lint",
|
||||||
"type": "executor"
|
"type": "executor"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"generators": {
|
"generators": {
|
||||||
"/nx-api/linter/generators/workspace-rules-project": {
|
"/nx-api/eslint/generators/workspace-rules-project": {
|
||||||
"description": "Create the Workspace Lint Rules Project.",
|
"description": "Create the Workspace Lint Rules Project.",
|
||||||
"file": "generated/packages/linter/generators/workspace-rules-project.json",
|
"file": "generated/packages/eslint/generators/workspace-rules-project.json",
|
||||||
"hidden": true,
|
"hidden": true,
|
||||||
"name": "workspace-rules-project",
|
"name": "workspace-rules-project",
|
||||||
"originalFilePath": "/packages/eslint/src/generators/workspace-rules-project/schema.json",
|
"originalFilePath": "/packages/eslint/src/generators/workspace-rules-project/schema.json",
|
||||||
"path": "/nx-api/linter/generators/workspace-rules-project",
|
"path": "/nx-api/eslint/generators/workspace-rules-project",
|
||||||
"type": "generator"
|
"type": "generator"
|
||||||
},
|
},
|
||||||
"/nx-api/linter/generators/workspace-rule": {
|
"/nx-api/eslint/generators/workspace-rule": {
|
||||||
"description": "Create a new Workspace ESLint rule.",
|
"description": "Create a new Workspace ESLint rule.",
|
||||||
"file": "generated/packages/linter/generators/workspace-rule.json",
|
"file": "generated/packages/eslint/generators/workspace-rule.json",
|
||||||
"hidden": false,
|
"hidden": false,
|
||||||
"name": "workspace-rule",
|
"name": "workspace-rule",
|
||||||
"originalFilePath": "/packages/eslint/src/generators/workspace-rule/schema.json",
|
"originalFilePath": "/packages/eslint/src/generators/workspace-rule/schema.json",
|
||||||
"path": "/nx-api/linter/generators/workspace-rule",
|
"path": "/nx-api/eslint/generators/workspace-rule",
|
||||||
"type": "generator"
|
"type": "generator"
|
||||||
},
|
},
|
||||||
"/nx-api/linter/generators/convert-to-flat-config": {
|
"/nx-api/eslint/generators/convert-to-flat-config": {
|
||||||
"description": "Convert an Nx workspace's ESLint configs to use Flat Config.",
|
"description": "Convert an Nx workspace's ESLint configs to use Flat Config.",
|
||||||
"file": "generated/packages/linter/generators/convert-to-flat-config.json",
|
"file": "generated/packages/eslint/generators/convert-to-flat-config.json",
|
||||||
"hidden": false,
|
"hidden": false,
|
||||||
"name": "convert-to-flat-config",
|
"name": "convert-to-flat-config",
|
||||||
"originalFilePath": "/packages/eslint/src/generators/convert-to-flat-config/schema.json",
|
"originalFilePath": "/packages/eslint/src/generators/convert-to-flat-config/schema.json",
|
||||||
"path": "/nx-api/linter/generators/convert-to-flat-config",
|
"path": "/nx-api/eslint/generators/convert-to-flat-config",
|
||||||
"type": "generator"
|
"type": "generator"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"path": "/nx-api/linter"
|
"path": "/nx-api/eslint"
|
||||||
},
|
},
|
||||||
"eslint-plugin": {
|
"eslint-plugin": {
|
||||||
"githubRoot": "https://github.com/nrwl/nx/blob/master",
|
"githubRoot": "https://github.com/nrwl/nx/blob/master",
|
||||||
@ -715,7 +727,7 @@
|
|||||||
"isExternal": false,
|
"isExternal": false,
|
||||||
"path": "/nx-api/eslint-plugin/documents/overview",
|
"path": "/nx-api/eslint-plugin/documents/overview",
|
||||||
"tags": [],
|
"tags": [],
|
||||||
"originalFilePath": "shared/packages/linter/eslint-plugin"
|
"originalFilePath": "shared/packages/eslint/eslint-plugin"
|
||||||
},
|
},
|
||||||
"/nx-api/eslint-plugin/documents/enforce-module-boundaries": {
|
"/nx-api/eslint-plugin/documents/enforce-module-boundaries": {
|
||||||
"id": "enforce-module-boundaries",
|
"id": "enforce-module-boundaries",
|
||||||
@ -726,7 +738,7 @@
|
|||||||
"isExternal": false,
|
"isExternal": false,
|
||||||
"path": "/nx-api/eslint-plugin/documents/enforce-module-boundaries",
|
"path": "/nx-api/eslint-plugin/documents/enforce-module-boundaries",
|
||||||
"tags": [],
|
"tags": [],
|
||||||
"originalFilePath": "shared/packages/linter/enforce-module-boundaries"
|
"originalFilePath": "shared/packages/eslint/enforce-module-boundaries"
|
||||||
},
|
},
|
||||||
"/nx-api/eslint-plugin/documents/dependency-checks": {
|
"/nx-api/eslint-plugin/documents/dependency-checks": {
|
||||||
"id": "dependency-checks",
|
"id": "dependency-checks",
|
||||||
@ -737,7 +749,7 @@
|
|||||||
"isExternal": false,
|
"isExternal": false,
|
||||||
"path": "/nx-api/eslint-plugin/documents/dependency-checks",
|
"path": "/nx-api/eslint-plugin/documents/dependency-checks",
|
||||||
"tags": [],
|
"tags": [],
|
||||||
"originalFilePath": "shared/packages/linter/dependency-checks"
|
"originalFilePath": "shared/packages/eslint/dependency-checks"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"root": "/packages/eslint-plugin",
|
"root": "/packages/eslint-plugin",
|
||||||
|
|||||||
@ -645,50 +645,62 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "The ESLint plugin for Nx contains executors, generators and utilities used for linting JavaScript/TypeScript projects within an Nx workspace.",
|
"description": "The ESLint plugin for Nx contains executors, generators and utilities used for linting JavaScript/TypeScript projects within an Nx workspace.",
|
||||||
"documents": [],
|
"documents": [
|
||||||
|
{
|
||||||
|
"id": "overview",
|
||||||
|
"name": "Overview",
|
||||||
|
"description": "The ESLint plugin for Nx contains executors, generators and utilities used for linting JavaScript/TypeScript projects within an Nx workspace.",
|
||||||
|
"file": "generated/packages/eslint/documents/overview",
|
||||||
|
"itemList": [],
|
||||||
|
"isExternal": false,
|
||||||
|
"path": "eslint/documents/overview",
|
||||||
|
"tags": [],
|
||||||
|
"originalFilePath": "shared/packages/eslint/eslint"
|
||||||
|
}
|
||||||
|
],
|
||||||
"executors": [
|
"executors": [
|
||||||
{
|
{
|
||||||
"description": "Run ESLint on a project.",
|
"description": "Run ESLint on a project.",
|
||||||
"file": "generated/packages/linter/executors/eslint.json",
|
"file": "generated/packages/eslint/executors/lint.json",
|
||||||
"hidden": false,
|
"hidden": false,
|
||||||
"name": "eslint",
|
"name": "lint",
|
||||||
"originalFilePath": "/packages/eslint/src/executors/lint/schema.json",
|
"originalFilePath": "/packages/eslint/src/executors/lint/schema.json",
|
||||||
"path": "linter/executors/eslint",
|
"path": "eslint/executors/lint",
|
||||||
"type": "executor"
|
"type": "executor"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"generators": [
|
"generators": [
|
||||||
{
|
{
|
||||||
"description": "Create the Workspace Lint Rules Project.",
|
"description": "Create the Workspace Lint Rules Project.",
|
||||||
"file": "generated/packages/linter/generators/workspace-rules-project.json",
|
"file": "generated/packages/eslint/generators/workspace-rules-project.json",
|
||||||
"hidden": true,
|
"hidden": true,
|
||||||
"name": "workspace-rules-project",
|
"name": "workspace-rules-project",
|
||||||
"originalFilePath": "/packages/eslint/src/generators/workspace-rules-project/schema.json",
|
"originalFilePath": "/packages/eslint/src/generators/workspace-rules-project/schema.json",
|
||||||
"path": "linter/generators/workspace-rules-project",
|
"path": "eslint/generators/workspace-rules-project",
|
||||||
"type": "generator"
|
"type": "generator"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "Create a new Workspace ESLint rule.",
|
"description": "Create a new Workspace ESLint rule.",
|
||||||
"file": "generated/packages/linter/generators/workspace-rule.json",
|
"file": "generated/packages/eslint/generators/workspace-rule.json",
|
||||||
"hidden": false,
|
"hidden": false,
|
||||||
"name": "workspace-rule",
|
"name": "workspace-rule",
|
||||||
"originalFilePath": "/packages/eslint/src/generators/workspace-rule/schema.json",
|
"originalFilePath": "/packages/eslint/src/generators/workspace-rule/schema.json",
|
||||||
"path": "linter/generators/workspace-rule",
|
"path": "eslint/generators/workspace-rule",
|
||||||
"type": "generator"
|
"type": "generator"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "Convert an Nx workspace's ESLint configs to use Flat Config.",
|
"description": "Convert an Nx workspace's ESLint configs to use Flat Config.",
|
||||||
"file": "generated/packages/linter/generators/convert-to-flat-config.json",
|
"file": "generated/packages/eslint/generators/convert-to-flat-config.json",
|
||||||
"hidden": false,
|
"hidden": false,
|
||||||
"name": "convert-to-flat-config",
|
"name": "convert-to-flat-config",
|
||||||
"originalFilePath": "/packages/eslint/src/generators/convert-to-flat-config/schema.json",
|
"originalFilePath": "/packages/eslint/src/generators/convert-to-flat-config/schema.json",
|
||||||
"path": "linter/generators/convert-to-flat-config",
|
"path": "eslint/generators/convert-to-flat-config",
|
||||||
"type": "generator"
|
"type": "generator"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"githubRoot": "https://github.com/nrwl/nx/blob/master",
|
"githubRoot": "https://github.com/nrwl/nx/blob/master",
|
||||||
"name": "linter",
|
"name": "eslint",
|
||||||
"packageName": "@nx/linter",
|
"packageName": "@nx/eslint",
|
||||||
"root": "/packages/eslint",
|
"root": "/packages/eslint",
|
||||||
"source": "/packages/eslint/src"
|
"source": "/packages/eslint/src"
|
||||||
},
|
},
|
||||||
@ -704,7 +716,7 @@
|
|||||||
"isExternal": false,
|
"isExternal": false,
|
||||||
"path": "eslint-plugin/documents/overview",
|
"path": "eslint-plugin/documents/overview",
|
||||||
"tags": [],
|
"tags": [],
|
||||||
"originalFilePath": "shared/packages/linter/eslint-plugin"
|
"originalFilePath": "shared/packages/eslint/eslint-plugin"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "enforce-module-boundaries",
|
"id": "enforce-module-boundaries",
|
||||||
@ -715,7 +727,7 @@
|
|||||||
"isExternal": false,
|
"isExternal": false,
|
||||||
"path": "eslint-plugin/documents/enforce-module-boundaries",
|
"path": "eslint-plugin/documents/enforce-module-boundaries",
|
||||||
"tags": [],
|
"tags": [],
|
||||||
"originalFilePath": "shared/packages/linter/enforce-module-boundaries"
|
"originalFilePath": "shared/packages/eslint/enforce-module-boundaries"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "dependency-checks",
|
"id": "dependency-checks",
|
||||||
@ -726,7 +738,7 @@
|
|||||||
"isExternal": false,
|
"isExternal": false,
|
||||||
"path": "eslint-plugin/documents/dependency-checks",
|
"path": "eslint-plugin/documents/dependency-checks",
|
||||||
"tags": [],
|
"tags": [],
|
||||||
"originalFilePath": "shared/packages/linter/dependency-checks"
|
"originalFilePath": "shared/packages/eslint/dependency-checks"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"executors": [],
|
"executors": [],
|
||||||
|
|||||||
@ -38,7 +38,7 @@ Additionally, you need to adjust your `lintFilePatterns` to include the project'
|
|||||||
"targets": {
|
"targets": {
|
||||||
// ... more targets
|
// ... more targets
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:lint",
|
"executor": "@nx/eslint:lint",
|
||||||
"outputs": ["{options.outputFile}"],
|
"outputs": ["{options.outputFile}"],
|
||||||
"options": {
|
"options": {
|
||||||
"lintFilePatterns": [
|
"lintFilePatterns": [
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
The `@nx/linter-plugin` package is an ESLint plugin that contains a collection of recommended ESLint rule configurations which you can extend from in your own ESLint configs, as well as the following Nx-specific ESLint rules:
|
The `@nx/eslint-plugin` package is an ESLint plugin that contains a collection of recommended ESLint rule configurations which you can extend from in your own ESLint configs, as well as the following Nx-specific ESLint rules:
|
||||||
|
|
||||||
- [enforce-module-boundaries](#enforce-module-boundaries-rule)
|
- [enforce-module-boundaries](#enforce-module-boundaries-rule)
|
||||||
- [dependency-checks](#dependency-checks-rule)
|
- [dependency-checks](#dependency-checks-rule)
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
The Linter plugin contains executors, generator, plugin and utilities used for linting JavaScript/TypeScript projects within an Nx workspace.
|
The ESLint plugin contains executors, generator, plugin and utilities used for linting JavaScript/TypeScript projects within an Nx workspace.
|
||||||
|
|
||||||
## Setting Up Linter
|
## Setting Up ESLint
|
||||||
|
|
||||||
### Installation
|
### Installation
|
||||||
|
|
||||||
@ -32,7 +32,7 @@ nx lint my-lib
|
|||||||
|
|
||||||
## Utils
|
## Utils
|
||||||
|
|
||||||
- [convert-to-flat-config](/nx-api/linter/generators/convert-to-flat-config) - Converts the workspace's [ESLint](https://eslint.org/) configs to the new [Flat Config](https://eslint.org/blog/2022/08/new-config-system-part-2)
|
- [convert-to-flat-config](/nx-api/eslint/generators/convert-to-flat-config) - Converts the workspace's [ESLint](https://eslint.org/) configs to the new [Flat Config](https://eslint.org/blog/2022/08/new-config-system-part-2)
|
||||||
|
|
||||||
## ESLint plugin
|
## ESLint plugin
|
||||||
|
|
||||||
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "eslint",
|
"name": "lint",
|
||||||
"implementation": "/packages/eslint/src/executors/lint/lint.impl.ts",
|
"implementation": "/packages/eslint/src/executors/lint/lint.impl.ts",
|
||||||
"schema": {
|
"schema": {
|
||||||
"version": 2,
|
"version": 2,
|
||||||
@ -136,7 +136,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": ["lintFilePatterns"],
|
"required": ["lintFilePatterns"],
|
||||||
"examplesFile": "Linter can be configured in multiple ways. The basic way is to provide only `lintFilePatterns`, which is a mandatory property. This tells us where to look for files to lint.\n\n`project.json`:\n\n```json\n\"lint\": {\n \"executor\": \"@nx/linter:eslint\",\n \"options\": {\n \"lintFilePatterns\": [\"apps/frontend/**/*.ts\"]\n }\n}\n```\n\n## Examples\n\n{% tabs %}\n{% tab label=\"Fixing linter issues\" %}\n\nLinter provides an automated way of fixing known issues. To ensure that those changes are properly cached, we need to add an `outputs` property to the `lint` target. Omitting the `outputs` property would produce an invalid cache record. Both of these properties are set by default when scaffolding a new project.\n\n```json\n\"lint\": {\n \"executor\": \"@nx/linter:eslint\",\n \"outputs\": [\"{options.outputFile}\"],\n \"options\": {\n \"lintFilePatterns\": [\"apps/frontend/**/*.ts\"]\n }\n}\n```\n\nWith these settings, we can run the command with a `--fix` flag:\n\n```bash\nnx run frontend:lint --fix\n```\n\nWe can also set this flag via project configuration to always fix files when running lint:\n\n```json\n\"lint\": {\n \"executor\": \"@nx/linter:eslint\",\n \"outputs\": [\"{options.outputFile}\"],\n \"options\": {\n \"lintFilePatterns\": [\"apps/frontend/**/*.ts\"],\n \"fix\": true\n }\n}\n```\n\n{% /tab %}\n{% tab label=\"Custom output format\" %}\n\nESLint executor uses the `stylish` output format by default. You can change this by specifying the `format` property:\n\n```json\n\"lint\": {\n \"executor\": \"@nx/linter:eslint\",\n \"outputs\": [\"{options.outputFile}\"],\n \"options\": {\n \"lintFilePatterns\": [\"apps/frontend/**/*.ts\"],\n \"format\": \"compact\"\n }\n}\n```\n\n{% /tab %}\n{% tab label=\"Silence warnings\" %}\n\nMigrated or legacy projects tend to have an overwhelming amount of lint errors. We might want to change those temporarily to be warnings so they don't block the development. But they would still clutter the report. We can run the command with `--quiet` to hide warning (errors would still break the lint):\n\n```bash\nnx run frontend:lint --quiet\n```\n\nWe can also set this via project configuration as a default option.\n\n```json\n\"lint\": {\n \"executor\": \"@nx/linter:eslint\",\n \"outputs\": [\"{options.outputFile}\"],\n \"options\": {\n \"lintFilePatterns\": [\"apps/frontend/**/*.ts\"],\n \"quiet\": true\n }\n}\n```\n\n{% /tab %}\n{% tab label=\"Flat Config file\" %}\n\n`ESLint` provides several ways of specifying the configuration. The default one is using `.eslintrc.json` but you can override it by setting the `eslintConfig` flag. The new `Flat Config` is now also supported:\n\n```json\n\"lint\": {\n \"executor\": \"@nx/linter:eslint\",\n \"outputs\": [\"{options.outputFile}\"],\n \"options\": {\n \"lintFilePatterns\": [\"apps/frontend/**/*.ts\"],\n \"eslintConfig\": \"eslint.config.js\"\n }\n}\n```\n\n**Note:** In contrast to other configuration formats, the `Flat Config` requires that all configuration files are converted to `eslint.config.js`. Built-in migrations and generators support only `.eslintrc.json` at the moment.\n\n{% /tab %}\n{% /tabs %}\n\n---\n",
|
"examplesFile": "Linter can be configured in multiple ways. The basic way is to provide only `lintFilePatterns`, which is a mandatory property. This tells us where to look for files to lint.\n\n`project.json`:\n\n```json\n\"lint\": {\n \"executor\": \"@nx/eslint:lint\",\n \"options\": {\n \"lintFilePatterns\": [\"apps/frontend/**/*.ts\"]\n }\n}\n```\n\n## Examples\n\n{% tabs %}\n{% tab label=\"Fixing linter issues\" %}\n\nLinter provides an automated way of fixing known issues. To ensure that those changes are properly cached, we need to add an `outputs` property to the `lint` target. Omitting the `outputs` property would produce an invalid cache record. Both of these properties are set by default when scaffolding a new project.\n\n```json\n\"lint\": {\n \"executor\": \"@nx/eslint:lint\",\n \"outputs\": [\"{options.outputFile}\"],\n \"options\": {\n \"lintFilePatterns\": [\"apps/frontend/**/*.ts\"]\n }\n}\n```\n\nWith these settings, we can run the command with a `--fix` flag:\n\n```bash\nnx run frontend:lint --fix\n```\n\nWe can also set this flag via project configuration to always fix files when running lint:\n\n```json\n\"lint\": {\n \"executor\": \"@nx/eslint:lint\",\n \"outputs\": [\"{options.outputFile}\"],\n \"options\": {\n \"lintFilePatterns\": [\"apps/frontend/**/*.ts\"],\n \"fix\": true\n }\n}\n```\n\n{% /tab %}\n{% tab label=\"Custom output format\" %}\n\nESLint executor uses the `stylish` output format by default. You can change this by specifying the `format` property:\n\n```json\n\"lint\": {\n \"executor\": \"@nx/eslint:lint\",\n \"outputs\": [\"{options.outputFile}\"],\n \"options\": {\n \"lintFilePatterns\": [\"apps/frontend/**/*.ts\"],\n \"format\": \"compact\"\n }\n}\n```\n\n{% /tab %}\n{% tab label=\"Silence warnings\" %}\n\nMigrated or legacy projects tend to have an overwhelming amount of lint errors. We might want to change those temporarily to be warnings so they don't block the development. But they would still clutter the report. We can run the command with `--quiet` to hide warning (errors would still break the lint):\n\n```bash\nnx run frontend:lint --quiet\n```\n\nWe can also set this via project configuration as a default option.\n\n```json\n\"lint\": {\n \"executor\": \"@nx/eslint:lint\",\n \"outputs\": [\"{options.outputFile}\"],\n \"options\": {\n \"lintFilePatterns\": [\"apps/frontend/**/*.ts\"],\n \"quiet\": true\n }\n}\n```\n\n{% /tab %}\n{% tab label=\"Flat Config file\" %}\n\n`ESLint` provides several ways of specifying the configuration. The default one is using `.eslintrc.json` but you can override it by setting the `eslintConfig` flag. The new `Flat Config` is now also supported:\n\n```json\n\"lint\": {\n \"executor\": \"@nx/eslint:lint\",\n \"outputs\": [\"{options.outputFile}\"],\n \"options\": {\n \"lintFilePatterns\": [\"apps/frontend/**/*.ts\"],\n \"eslintConfig\": \"eslint.config.js\"\n }\n}\n```\n\n**Note:** In contrast to other configuration formats, the `Flat Config` requires that all configuration files are converted to `eslint.config.js`. Built-in migrations and generators support only `.eslintrc.json` at the moment.\n\n{% /tab %}\n{% /tabs %}\n\n---\n",
|
||||||
"presets": []
|
"presets": []
|
||||||
},
|
},
|
||||||
"hasher": "./src/executors/lint/hasher",
|
"hasher": "./src/executors/lint/hasher",
|
||||||
@ -22,7 +22,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": ["name", "directory"],
|
"required": ["name", "directory"],
|
||||||
"examplesFile": "{% tabs %}\n{% tab label=\"Create rule\" %}\n\nThis command will generate a new workspace lint rule called `my-custom-rule`. The new rule will be generated in `tools/eslint-rules/rules` folder:\n\n```shell\nnx g @nx/linter:workspace-rule my-custom-rule\n```\n\n{% /tab %}\n{% tab label=\"Custom sub-folder\" %}\n\nWe can change the default sub-folder from `rules` and specify a custom one:\n\n```shell\nnx g @nx/linter:workspace-rule --name=my-custom-rule --directory=my/custom/path\n```\n\nThe command above will generate the rule in `tools/eslint-rules/my/custom/path` folder.\n\n{% /tab %}\n{% /tabs %}\n\n---\n",
|
"examplesFile": "{% tabs %}\n{% tab label=\"Create rule\" %}\n\nThis command will generate a new workspace lint rule called `my-custom-rule`. The new rule will be generated in `tools/eslint-rules/rules` folder:\n\n```shell\nnx g @nx/eslint:workspace-rule my-custom-rule\n```\n\n{% /tab %}\n{% tab label=\"Custom sub-folder\" %}\n\nWe can change the default sub-folder from `rules` and specify a custom one:\n\n```shell\nnx g @nx/eslint:workspace-rule --name=my-custom-rule --directory=my/custom/path\n```\n\nThe command above will generate the rule in `tools/eslint-rules/my/custom/path` folder.\n\n{% /tab %}\n{% /tabs %}\n\n---\n",
|
||||||
"presets": []
|
"presets": []
|
||||||
},
|
},
|
||||||
"description": "Create a new Workspace ESLint rule.",
|
"description": "Create a new Workspace ESLint rule.",
|
||||||
@ -2174,15 +2174,15 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "linter",
|
"name": "eslint",
|
||||||
"id": "linter",
|
"id": "eslint",
|
||||||
"description": "Linter package.",
|
"description": "Linter package.",
|
||||||
"itemList": [
|
"itemList": [
|
||||||
{
|
{
|
||||||
"id": "overview",
|
"id": "overview",
|
||||||
"name": "Overview",
|
"name": "Overview",
|
||||||
"path": "/nx-api/linter",
|
"path": "/nx-api/eslint",
|
||||||
"file": "shared/packages/linter/linter-plugin"
|
"file": "shared/packages/eslint/eslint"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@ -2195,19 +2195,19 @@
|
|||||||
"id": "overview",
|
"id": "overview",
|
||||||
"name": "Overview",
|
"name": "Overview",
|
||||||
"path": "/nx-api/eslint-plugin",
|
"path": "/nx-api/eslint-plugin",
|
||||||
"file": "shared/packages/linter/eslint-plugin"
|
"file": "shared/packages/eslint/eslint-plugin"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "enforce-module-boundaries",
|
"id": "enforce-module-boundaries",
|
||||||
"name": "The `enforce-module-boundaries` rule",
|
"name": "The `enforce-module-boundaries` rule",
|
||||||
"path": "/nx-api/eslint-plugin",
|
"path": "/nx-api/eslint-plugin",
|
||||||
"file": "shared/packages/linter/enforce-module-boundaries"
|
"file": "shared/packages/eslint/enforce-module-boundaries"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "dependency-checks",
|
"id": "dependency-checks",
|
||||||
"name": "The `dependency-checks` rule",
|
"name": "The `dependency-checks` rule",
|
||||||
"path": "/nx-api/eslint-plugin",
|
"path": "/nx-api/eslint-plugin",
|
||||||
"file": "shared/packages/linter/dependency-checks"
|
"file": "shared/packages/eslint/dependency-checks"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
@ -17,7 +17,7 @@ title="How Automated Code Migrations Work"
|
|||||||
|
|
||||||
Nx knows where its configuration files are and can therefore make sure they match the expected format. This automated update process, commonly referred to as "migration," becomes even more powerful when you leverage [Nx plugins](/nx-api). Nx plugins, which are NPM packages with a range of capabilities (code generation, task automation...), offer targeted updates based on their specific areas of responsibility.
|
Nx knows where its configuration files are and can therefore make sure they match the expected format. This automated update process, commonly referred to as "migration," becomes even more powerful when you leverage [Nx plugins](/nx-api). Nx plugins, which are NPM packages with a range of capabilities (code generation, task automation...), offer targeted updates based on their specific areas of responsibility.
|
||||||
|
|
||||||
For example, the [Nx ESLint plugin](/nx-api/linter) excels at configuring linting in your workspace. With its understanding of the configuration file locations, this plugin can provide precise migration scripts to update ESLint packages in your `package.json` and corresponding configuration files in your workspace when a new version is released.
|
For example, the [Nx ESLint plugin](/nx-api/eslint) excels at configuring linting in your workspace. With its understanding of the configuration file locations, this plugin can provide precise migration scripts to update ESLint packages in your `package.json` and corresponding configuration files in your workspace when a new version is released.
|
||||||
|
|
||||||
Updating happens in three steps:
|
Updating happens in three steps:
|
||||||
|
|
||||||
|
|||||||
39
docs/shared/packages/eslint/eslint.md
Normal file
39
docs/shared/packages/eslint/eslint.md
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
The ESLint plugin contains executors, generator, plugin and utilities used for linting JavaScript/TypeScript projects within an Nx workspace.
|
||||||
|
|
||||||
|
## Setting Up ESLint
|
||||||
|
|
||||||
|
### Installation
|
||||||
|
|
||||||
|
{% callout type="note" title="Keep Nx Package Versions In Sync" %}
|
||||||
|
Make sure to install the `@nx/eslint` version that matches the version of `nx` in your repository. If the version numbers get out of sync, you can encounter some difficult to debug errors. You can [fix Nx version mismatches with this recipe](/recipes/tips-n-tricks/keep-nx-versions-in-sync).
|
||||||
|
{% /callout %}
|
||||||
|
|
||||||
|
In any Nx workspace, you can install `@nx/eslint` by running the following commands if `@nx/eslint` package is not installed:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
npm i --save-dev @nx/eslint
|
||||||
|
```
|
||||||
|
|
||||||
|
```shell
|
||||||
|
yarn add --dev @nx/eslint
|
||||||
|
```
|
||||||
|
|
||||||
|
## Lint
|
||||||
|
|
||||||
|
You can lint an application or a library with the following command:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
nx lint my-app
|
||||||
|
```
|
||||||
|
|
||||||
|
```shell
|
||||||
|
nx lint my-lib
|
||||||
|
```
|
||||||
|
|
||||||
|
## Utils
|
||||||
|
|
||||||
|
- [convert-to-flat-config](/nx-api/eslint/generators/convert-to-flat-config) - Converts the workspace's [ESLint](https://eslint.org/) configs to the new [Flat Config](https://eslint.org/blog/2022/08/new-config-system-part-2)
|
||||||
|
|
||||||
|
## ESLint plugin
|
||||||
|
|
||||||
|
Read about our dedicated ESLint plugin - [eslint-plugin-nx](/nx-api/eslint-plugin/documents/overview).
|
||||||
@ -156,7 +156,7 @@ module.exports = {
|
|||||||
|
|
||||||
For additional details, head over to [ESLint's official blog post](https://eslint.org/blog/2022/08/new-config-system-part-2/).
|
For additional details, head over to [ESLint's official blog post](https://eslint.org/blog/2022/08/new-config-system-part-2/).
|
||||||
|
|
||||||
Since version 16.8.0, Nx supports the usage of flat config in the [@nx/lint:eslint](/nx-api/linter/executors/eslint) executor and `@nx/*` generators, and provides an automated config conversion from `.eslintrc.json` config files.
|
Since version 16.8.0, Nx supports the usage of flat config in the [@nx/eslint:lint](/nx-api/eslint/executors/lint) executor and `@nx/*` generators, and provides an automated config conversion from `.eslintrc.json` config files.
|
||||||
|
|
||||||
## Converting workspace from .eslintrc.json to flat config
|
## Converting workspace from .eslintrc.json to flat config
|
||||||
|
|
||||||
|
|||||||
@ -378,13 +378,15 @@
|
|||||||
- [generators](/nx-api/esbuild/generators)
|
- [generators](/nx-api/esbuild/generators)
|
||||||
- [init](/nx-api/esbuild/generators/init)
|
- [init](/nx-api/esbuild/generators/init)
|
||||||
- [configuration](/nx-api/esbuild/generators/configuration)
|
- [configuration](/nx-api/esbuild/generators/configuration)
|
||||||
- [linter](/nx-api/linter)
|
- [eslint](/nx-api/eslint)
|
||||||
- [executors](/nx-api/linter/executors)
|
- [documents](/nx-api/eslint/documents)
|
||||||
- [eslint](/nx-api/linter/executors/eslint)
|
- [Overview](/nx-api/eslint/documents/overview)
|
||||||
- [generators](/nx-api/linter/generators)
|
- [executors](/nx-api/eslint/executors)
|
||||||
- [workspace-rules-project](/nx-api/linter/generators/workspace-rules-project)
|
- [lint](/nx-api/eslint/executors/lint)
|
||||||
- [workspace-rule](/nx-api/linter/generators/workspace-rule)
|
- [generators](/nx-api/eslint/generators)
|
||||||
- [convert-to-flat-config](/nx-api/linter/generators/convert-to-flat-config)
|
- [workspace-rules-project](/nx-api/eslint/generators/workspace-rules-project)
|
||||||
|
- [workspace-rule](/nx-api/eslint/generators/workspace-rule)
|
||||||
|
- [convert-to-flat-config](/nx-api/eslint/generators/convert-to-flat-config)
|
||||||
- [eslint-plugin](/nx-api/eslint-plugin)
|
- [eslint-plugin](/nx-api/eslint-plugin)
|
||||||
- [documents](/nx-api/eslint-plugin/documents)
|
- [documents](/nx-api/eslint-plugin/documents)
|
||||||
- [Overview](/nx-api/eslint-plugin/documents/overview)
|
- [Overview](/nx-api/eslint-plugin/documents/overview)
|
||||||
|
|||||||
@ -25,7 +25,7 @@
|
|||||||
"libs/products/product-detail-page/tsconfig.lib.json",
|
"libs/products/product-detail-page/tsconfig.lib.json",
|
||||||
"libs/products/product-detail-page/tsconfig.spec.json"
|
"libs/products/product-detail-page/tsconfig.spec.json"
|
||||||
],
|
],
|
||||||
"external": ["external:@nx/linter"]
|
"external": ["external:@nx/eslint"]
|
||||||
},
|
},
|
||||||
"products-product-detail-page:test": {
|
"products-product-detail-page:test": {
|
||||||
"general": [
|
"general": [
|
||||||
@ -135,7 +135,7 @@
|
|||||||
"libs/shared/product/state/tsconfig.lib.json",
|
"libs/shared/product/state/tsconfig.lib.json",
|
||||||
"libs/shared/product/state/tsconfig.spec.json"
|
"libs/shared/product/state/tsconfig.spec.json"
|
||||||
],
|
],
|
||||||
"external": ["external:@nx/linter"]
|
"external": ["external:@nx/eslint"]
|
||||||
},
|
},
|
||||||
"shared-product-state:test": {
|
"shared-product-state:test": {
|
||||||
"general": [
|
"general": [
|
||||||
@ -224,7 +224,7 @@
|
|||||||
"libs/shared/product/types/tsconfig.json",
|
"libs/shared/product/types/tsconfig.json",
|
||||||
"libs/shared/product/types/tsconfig.lib.json"
|
"libs/shared/product/types/tsconfig.lib.json"
|
||||||
],
|
],
|
||||||
"external": ["external:@nx/linter"]
|
"external": ["external:@nx/eslint"]
|
||||||
},
|
},
|
||||||
"shared-product-data:lint": {
|
"shared-product-data:lint": {
|
||||||
"general": [
|
"general": [
|
||||||
@ -247,7 +247,7 @@
|
|||||||
"libs/shared/product/data/tsconfig.json",
|
"libs/shared/product/data/tsconfig.json",
|
||||||
"libs/shared/product/data/tsconfig.lib.json"
|
"libs/shared/product/data/tsconfig.lib.json"
|
||||||
],
|
],
|
||||||
"external": ["external:@nx/linter"]
|
"external": ["external:@nx/eslint"]
|
||||||
},
|
},
|
||||||
"products-home-page:lint": {
|
"products-home-page:lint": {
|
||||||
"general": [
|
"general": [
|
||||||
@ -275,7 +275,7 @@
|
|||||||
"libs/products/home-page/tsconfig.lib.json",
|
"libs/products/home-page/tsconfig.lib.json",
|
||||||
"libs/products/home-page/tsconfig.spec.json"
|
"libs/products/home-page/tsconfig.spec.json"
|
||||||
],
|
],
|
||||||
"external": ["external:@nx/linter"]
|
"external": ["external:@nx/eslint"]
|
||||||
},
|
},
|
||||||
"products-home-page:test": {
|
"products-home-page:test": {
|
||||||
"general": [
|
"general": [
|
||||||
@ -396,7 +396,7 @@
|
|||||||
"libs/shared/product/ui/tsconfig.lib.json",
|
"libs/shared/product/ui/tsconfig.lib.json",
|
||||||
"libs/shared/product/ui/tsconfig.spec.json"
|
"libs/shared/product/ui/tsconfig.spec.json"
|
||||||
],
|
],
|
||||||
"external": ["external:@nx/linter"]
|
"external": ["external:@nx/eslint"]
|
||||||
},
|
},
|
||||||
"shared-product-ui:test": {
|
"shared-product-ui:test": {
|
||||||
"general": [
|
"general": [
|
||||||
@ -528,7 +528,7 @@
|
|||||||
"libs/shared/cart/state/tsconfig.lib.json",
|
"libs/shared/cart/state/tsconfig.lib.json",
|
||||||
"libs/shared/cart/state/tsconfig.spec.json"
|
"libs/shared/cart/state/tsconfig.spec.json"
|
||||||
],
|
],
|
||||||
"external": ["external:@nx/linter"]
|
"external": ["external:@nx/eslint"]
|
||||||
},
|
},
|
||||||
"shared-cart-state:test": {
|
"shared-cart-state:test": {
|
||||||
"general": [
|
"general": [
|
||||||
@ -646,7 +646,7 @@
|
|||||||
"libs/shared/e2e-utils/tsconfig.json",
|
"libs/shared/e2e-utils/tsconfig.json",
|
||||||
"libs/shared/e2e-utils/tsconfig.lib.json"
|
"libs/shared/e2e-utils/tsconfig.lib.json"
|
||||||
],
|
],
|
||||||
"external": ["external:@nx/linter"]
|
"external": ["external:@nx/eslint"]
|
||||||
},
|
},
|
||||||
"cart-cart-page:lint": {
|
"cart-cart-page:lint": {
|
||||||
"general": [
|
"general": [
|
||||||
@ -671,7 +671,7 @@
|
|||||||
"libs/cart/cart-page/tsconfig.lib.json",
|
"libs/cart/cart-page/tsconfig.lib.json",
|
||||||
"libs/cart/cart-page/tsconfig.spec.json"
|
"libs/cart/cart-page/tsconfig.spec.json"
|
||||||
],
|
],
|
||||||
"external": ["external:@nx/linter"]
|
"external": ["external:@nx/eslint"]
|
||||||
},
|
},
|
||||||
"cart-cart-page:test": {
|
"cart-cart-page:test": {
|
||||||
"general": [
|
"general": [
|
||||||
@ -815,7 +815,7 @@
|
|||||||
"libs/shared/jsxify/tsconfig.json",
|
"libs/shared/jsxify/tsconfig.json",
|
||||||
"libs/shared/jsxify/tsconfig.lib.json"
|
"libs/shared/jsxify/tsconfig.lib.json"
|
||||||
],
|
],
|
||||||
"external": ["external:@nx/linter"]
|
"external": ["external:@nx/eslint"]
|
||||||
},
|
},
|
||||||
"shared-header:lint": {
|
"shared-header:lint": {
|
||||||
"general": [
|
"general": [
|
||||||
@ -842,7 +842,7 @@
|
|||||||
"libs/shared/header/tsconfig.lib.json",
|
"libs/shared/header/tsconfig.lib.json",
|
||||||
"libs/shared/header/tsconfig.spec.json"
|
"libs/shared/header/tsconfig.spec.json"
|
||||||
],
|
],
|
||||||
"external": ["external:@nx/linter"]
|
"external": ["external:@nx/eslint"]
|
||||||
},
|
},
|
||||||
"shared-header:test": {
|
"shared-header:test": {
|
||||||
"general": [
|
"general": [
|
||||||
@ -1364,7 +1364,7 @@
|
|||||||
"apps/products-e2e/src/support/e2e.ts",
|
"apps/products-e2e/src/support/e2e.ts",
|
||||||
"apps/products-e2e/tsconfig.json"
|
"apps/products-e2e/tsconfig.json"
|
||||||
],
|
],
|
||||||
"external": ["external:@nx/linter"]
|
"external": ["external:@nx/eslint"]
|
||||||
},
|
},
|
||||||
"products:build": {
|
"products:build": {
|
||||||
"general": [
|
"general": [
|
||||||
@ -2259,7 +2259,7 @@
|
|||||||
"apps/products/tsconfig.json",
|
"apps/products/tsconfig.json",
|
||||||
"apps/products/tsconfig.spec.json"
|
"apps/products/tsconfig.spec.json"
|
||||||
],
|
],
|
||||||
"external": ["external:@nx/linter"]
|
"external": ["external:@nx/eslint"]
|
||||||
},
|
},
|
||||||
"products:test": {
|
"products:test": {
|
||||||
"general": [
|
"general": [
|
||||||
@ -3073,7 +3073,7 @@
|
|||||||
"apps/cart-e2e/src/support/e2e.ts",
|
"apps/cart-e2e/src/support/e2e.ts",
|
||||||
"apps/cart-e2e/tsconfig.json"
|
"apps/cart-e2e/tsconfig.json"
|
||||||
],
|
],
|
||||||
"external": ["external:@nx/linter"]
|
"external": ["external:@nx/eslint"]
|
||||||
},
|
},
|
||||||
"cart:build:production": {
|
"cart:build:production": {
|
||||||
"general": [
|
"general": [
|
||||||
@ -3940,7 +3940,7 @@
|
|||||||
"apps/cart/tsconfig.spec.json",
|
"apps/cart/tsconfig.spec.json",
|
||||||
"apps/cart/webpack.config.js"
|
"apps/cart/webpack.config.js"
|
||||||
],
|
],
|
||||||
"external": ["external:@nx/linter"]
|
"external": ["external:@nx/eslint"]
|
||||||
},
|
},
|
||||||
"cart:test": {
|
"cart:test": {
|
||||||
"general": [
|
"general": [
|
||||||
|
|||||||
@ -18,7 +18,7 @@
|
|||||||
"libs/products/product-detail-page/tsconfig.lib.json",
|
"libs/products/product-detail-page/tsconfig.lib.json",
|
||||||
"libs/products/product-detail-page/tsconfig.spec.json"
|
"libs/products/product-detail-page/tsconfig.spec.json"
|
||||||
],
|
],
|
||||||
"external": ["npm:@nx/linter"]
|
"external": ["npm:@nx/eslint"]
|
||||||
},
|
},
|
||||||
"products-product-detail-page:test": {
|
"products-product-detail-page:test": {
|
||||||
"general": [".gitignore", "babel.config.json", "jest.preset.js", "nx.json"],
|
"general": [".gitignore", "babel.config.json", "jest.preset.js", "nx.json"],
|
||||||
@ -232,7 +232,7 @@
|
|||||||
"libs/shared/product/types/tsconfig.json",
|
"libs/shared/product/types/tsconfig.json",
|
||||||
"libs/shared/product/types/tsconfig.lib.json"
|
"libs/shared/product/types/tsconfig.lib.json"
|
||||||
],
|
],
|
||||||
"external": ["npm:@nx/linter"]
|
"external": ["npm:@nx/eslint"]
|
||||||
},
|
},
|
||||||
"shared-product-state:lint": {
|
"shared-product-state:lint": {
|
||||||
"general": [".eslintrc.json", ".gitignore", "babel.config.json", "nx.json"],
|
"general": [".eslintrc.json", ".gitignore", "babel.config.json", "nx.json"],
|
||||||
@ -256,7 +256,7 @@
|
|||||||
"libs/shared/product/state/tsconfig.lib.json",
|
"libs/shared/product/state/tsconfig.lib.json",
|
||||||
"libs/shared/product/state/tsconfig.spec.json"
|
"libs/shared/product/state/tsconfig.spec.json"
|
||||||
],
|
],
|
||||||
"external": ["npm:@nx/linter"]
|
"external": ["npm:@nx/eslint"]
|
||||||
},
|
},
|
||||||
"shared-product-state:test": {
|
"shared-product-state:test": {
|
||||||
"general": [".gitignore", "babel.config.json", "jest.preset.js", "nx.json"],
|
"general": [".gitignore", "babel.config.json", "jest.preset.js", "nx.json"],
|
||||||
@ -469,7 +469,7 @@
|
|||||||
"libs/shared/product/data/tsconfig.json",
|
"libs/shared/product/data/tsconfig.json",
|
||||||
"libs/shared/product/data/tsconfig.lib.json"
|
"libs/shared/product/data/tsconfig.lib.json"
|
||||||
],
|
],
|
||||||
"external": ["npm:@nx/linter"]
|
"external": ["npm:@nx/eslint"]
|
||||||
},
|
},
|
||||||
"products-home-page:lint": {
|
"products-home-page:lint": {
|
||||||
"general": [".eslintrc.json", ".gitignore", "babel.config.json", "nx.json"],
|
"general": [".eslintrc.json", ".gitignore", "babel.config.json", "nx.json"],
|
||||||
@ -490,7 +490,7 @@
|
|||||||
"libs/products/home-page/tsconfig.lib.json",
|
"libs/products/home-page/tsconfig.lib.json",
|
||||||
"libs/products/home-page/tsconfig.spec.json"
|
"libs/products/home-page/tsconfig.spec.json"
|
||||||
],
|
],
|
||||||
"external": ["npm:@nx/linter"]
|
"external": ["npm:@nx/eslint"]
|
||||||
},
|
},
|
||||||
"products-home-page:test": {
|
"products-home-page:test": {
|
||||||
"general": [".gitignore", "babel.config.json", "jest.preset.js", "nx.json"],
|
"general": [".gitignore", "babel.config.json", "jest.preset.js", "nx.json"],
|
||||||
@ -717,7 +717,7 @@
|
|||||||
"libs/shared/product/ui/tsconfig.lib.json",
|
"libs/shared/product/ui/tsconfig.lib.json",
|
||||||
"libs/shared/product/ui/tsconfig.spec.json"
|
"libs/shared/product/ui/tsconfig.spec.json"
|
||||||
],
|
],
|
||||||
"external": ["npm:@nx/linter"]
|
"external": ["npm:@nx/eslint"]
|
||||||
},
|
},
|
||||||
"shared-product-ui:test": {
|
"shared-product-ui:test": {
|
||||||
"general": [".gitignore", "babel.config.json", "jest.preset.js", "nx.json"],
|
"general": [".gitignore", "babel.config.json", "jest.preset.js", "nx.json"],
|
||||||
@ -772,7 +772,7 @@
|
|||||||
"libs/shared/cart/state/tsconfig.lib.json",
|
"libs/shared/cart/state/tsconfig.lib.json",
|
||||||
"libs/shared/cart/state/tsconfig.spec.json"
|
"libs/shared/cart/state/tsconfig.spec.json"
|
||||||
],
|
],
|
||||||
"external": ["npm:@nx/linter"]
|
"external": ["npm:@nx/eslint"]
|
||||||
},
|
},
|
||||||
"shared-cart-state:test": {
|
"shared-cart-state:test": {
|
||||||
"general": [".gitignore", "babel.config.json", "jest.preset.js", "nx.json"],
|
"general": [".gitignore", "babel.config.json", "jest.preset.js", "nx.json"],
|
||||||
@ -994,7 +994,7 @@
|
|||||||
"libs/shared/translate/tsconfig.json",
|
"libs/shared/translate/tsconfig.json",
|
||||||
"libs/shared/translate/tsconfig.lib.json"
|
"libs/shared/translate/tsconfig.lib.json"
|
||||||
],
|
],
|
||||||
"external": ["npm:@nx/linter"]
|
"external": ["npm:@nx/eslint"]
|
||||||
},
|
},
|
||||||
"shared-e2e-utils:lint": {
|
"shared-e2e-utils:lint": {
|
||||||
"general": [".eslintrc.json", ".gitignore", "babel.config.json", "nx.json"],
|
"general": [".eslintrc.json", ".gitignore", "babel.config.json", "nx.json"],
|
||||||
@ -1007,7 +1007,7 @@
|
|||||||
"libs/shared/e2e-utils/tsconfig.json",
|
"libs/shared/e2e-utils/tsconfig.json",
|
||||||
"libs/shared/e2e-utils/tsconfig.lib.json"
|
"libs/shared/e2e-utils/tsconfig.lib.json"
|
||||||
],
|
],
|
||||||
"external": ["npm:@nx/linter"]
|
"external": ["npm:@nx/eslint"]
|
||||||
},
|
},
|
||||||
"cart-cart-page:lint": {
|
"cart-cart-page:lint": {
|
||||||
"general": [".eslintrc.json", ".gitignore", "babel.config.json", "nx.json"],
|
"general": [".eslintrc.json", ".gitignore", "babel.config.json", "nx.json"],
|
||||||
@ -1025,7 +1025,7 @@
|
|||||||
"libs/cart/cart-page/tsconfig.lib.json",
|
"libs/cart/cart-page/tsconfig.lib.json",
|
||||||
"libs/cart/cart-page/tsconfig.spec.json"
|
"libs/cart/cart-page/tsconfig.spec.json"
|
||||||
],
|
],
|
||||||
"external": ["npm:@nx/linter"]
|
"external": ["npm:@nx/eslint"]
|
||||||
},
|
},
|
||||||
"cart-cart-page:test": {
|
"cart-cart-page:test": {
|
||||||
"general": [".gitignore", "babel.config.json", "jest.preset.js", "nx.json"],
|
"general": [".gitignore", "babel.config.json", "jest.preset.js", "nx.json"],
|
||||||
@ -1218,7 +1218,7 @@
|
|||||||
"libs/shared/header/tsconfig.lib.json",
|
"libs/shared/header/tsconfig.lib.json",
|
||||||
"libs/shared/header/tsconfig.spec.json"
|
"libs/shared/header/tsconfig.spec.json"
|
||||||
],
|
],
|
||||||
"external": ["npm:@nx/linter"]
|
"external": ["npm:@nx/eslint"]
|
||||||
},
|
},
|
||||||
"shared-header:test": {
|
"shared-header:test": {
|
||||||
"general": [".gitignore", "babel.config.json", "jest.preset.js", "nx.json"],
|
"general": [".gitignore", "babel.config.json", "jest.preset.js", "nx.json"],
|
||||||
@ -1265,7 +1265,7 @@
|
|||||||
"libs/shared/jsxify/tsconfig.json",
|
"libs/shared/jsxify/tsconfig.json",
|
||||||
"libs/shared/jsxify/tsconfig.lib.json"
|
"libs/shared/jsxify/tsconfig.lib.json"
|
||||||
],
|
],
|
||||||
"external": ["npm:@nx/linter"]
|
"external": ["npm:@nx/eslint"]
|
||||||
},
|
},
|
||||||
"products-e2e:e2e": {
|
"products-e2e:e2e": {
|
||||||
"general": [".gitignore", "babel.config.json", "nx.json"],
|
"general": [".gitignore", "babel.config.json", "nx.json"],
|
||||||
@ -1726,7 +1726,7 @@
|
|||||||
"apps/products-e2e/src/support/e2e.ts",
|
"apps/products-e2e/src/support/e2e.ts",
|
||||||
"apps/products-e2e/tsconfig.json"
|
"apps/products-e2e/tsconfig.json"
|
||||||
],
|
],
|
||||||
"external": ["npm:@nx/linter"]
|
"external": ["npm:@nx/eslint"]
|
||||||
},
|
},
|
||||||
"products:build": {
|
"products:build": {
|
||||||
"general": [
|
"general": [
|
||||||
@ -2989,7 +2989,7 @@
|
|||||||
"apps/products/tsconfig.json",
|
"apps/products/tsconfig.json",
|
||||||
"apps/products/tsconfig.spec.json"
|
"apps/products/tsconfig.spec.json"
|
||||||
],
|
],
|
||||||
"external": ["npm:@nx/linter"]
|
"external": ["npm:@nx/eslint"]
|
||||||
},
|
},
|
||||||
"products:test": {
|
"products:test": {
|
||||||
"general": [".gitignore", "babel.config.json", "jest.preset.js", "nx.json"],
|
"general": [".gitignore", "babel.config.json", "jest.preset.js", "nx.json"],
|
||||||
@ -3939,7 +3939,7 @@
|
|||||||
"apps/cart-e2e/src/support/e2e.ts",
|
"apps/cart-e2e/src/support/e2e.ts",
|
||||||
"apps/cart-e2e/tsconfig.json"
|
"apps/cart-e2e/tsconfig.json"
|
||||||
],
|
],
|
||||||
"external": ["npm:@nx/linter"]
|
"external": ["npm:@nx/eslint"]
|
||||||
},
|
},
|
||||||
"cart:build:production": {
|
"cart:build:production": {
|
||||||
"general": [".gitignore", "babel.config.json", "nx.json"],
|
"general": [".gitignore", "babel.config.json", "nx.json"],
|
||||||
@ -4190,7 +4190,7 @@
|
|||||||
"npm:@nrwl/workspace",
|
"npm:@nrwl/workspace",
|
||||||
"npm:@nx/devkit",
|
"npm:@nx/devkit",
|
||||||
"npm:@nx/js",
|
"npm:@nx/js",
|
||||||
"npm:@nx/linter",
|
"npm:@nx/eslint",
|
||||||
"npm:@nx/nx-darwin-arm64",
|
"npm:@nx/nx-darwin-arm64",
|
||||||
"npm:@nx/nx-darwin-x64@18.0.5",
|
"npm:@nx/nx-darwin-x64@18.0.5",
|
||||||
"npm:@nx/nx-freebsd-x64@18.0.5",
|
"npm:@nx/nx-freebsd-x64@18.0.5",
|
||||||
@ -5150,7 +5150,7 @@
|
|||||||
"npm:@nrwl/workspace",
|
"npm:@nrwl/workspace",
|
||||||
"npm:@nx/devkit",
|
"npm:@nx/devkit",
|
||||||
"npm:@nx/js",
|
"npm:@nx/js",
|
||||||
"npm:@nx/linter",
|
"npm:@nx/eslint",
|
||||||
"npm:@nx/nx-darwin-arm64",
|
"npm:@nx/nx-darwin-arm64",
|
||||||
"npm:@nx/nx-darwin-x64@18.0.5",
|
"npm:@nx/nx-darwin-x64@18.0.5",
|
||||||
"npm:@nx/nx-freebsd-x64@18.0.5",
|
"npm:@nx/nx-freebsd-x64@18.0.5",
|
||||||
@ -6125,7 +6125,7 @@
|
|||||||
"npm:@nrwl/workspace",
|
"npm:@nrwl/workspace",
|
||||||
"npm:@nx/devkit",
|
"npm:@nx/devkit",
|
||||||
"npm:@nx/js",
|
"npm:@nx/js",
|
||||||
"npm:@nx/linter",
|
"npm:@nx/eslint",
|
||||||
"npm:@nx/nx-darwin-arm64",
|
"npm:@nx/nx-darwin-arm64",
|
||||||
"npm:@nx/nx-darwin-x64@18.0.5",
|
"npm:@nx/nx-darwin-x64@18.0.5",
|
||||||
"npm:@nx/nx-freebsd-x64@18.0.5",
|
"npm:@nx/nx-freebsd-x64@18.0.5",
|
||||||
@ -7100,7 +7100,7 @@
|
|||||||
"npm:@nrwl/workspace",
|
"npm:@nrwl/workspace",
|
||||||
"npm:@nx/devkit",
|
"npm:@nx/devkit",
|
||||||
"npm:@nx/js",
|
"npm:@nx/js",
|
||||||
"npm:@nx/linter",
|
"npm:@nx/eslint",
|
||||||
"npm:@nx/nx-darwin-arm64",
|
"npm:@nx/nx-darwin-arm64",
|
||||||
"npm:@nx/nx-darwin-x64@18.0.5",
|
"npm:@nx/nx-darwin-x64@18.0.5",
|
||||||
"npm:@nx/nx-freebsd-x64@18.0.5",
|
"npm:@nx/nx-freebsd-x64@18.0.5",
|
||||||
@ -7835,7 +7835,7 @@
|
|||||||
"apps/cart/tsconfig.spec.json",
|
"apps/cart/tsconfig.spec.json",
|
||||||
"apps/cart/webpack.config.js"
|
"apps/cart/webpack.config.js"
|
||||||
],
|
],
|
||||||
"external": ["npm:@nx/linter"]
|
"external": ["npm:@nx/eslint"]
|
||||||
},
|
},
|
||||||
"cart:test": {
|
"cart:test": {
|
||||||
"general": [".gitignore", "babel.config.json", "jest.preset.js", "nx.json"],
|
"general": [".gitignore", "babel.config.json", "jest.preset.js", "nx.json"],
|
||||||
@ -8092,7 +8092,7 @@
|
|||||||
"npm:@nx/devkit",
|
"npm:@nx/devkit",
|
||||||
"npm:@nx/jest",
|
"npm:@nx/jest",
|
||||||
"npm:@nx/js",
|
"npm:@nx/js",
|
||||||
"npm:@nx/linter",
|
"npm:@nx/eslint",
|
||||||
"npm:@nx/nx-darwin-arm64",
|
"npm:@nx/nx-darwin-arm64",
|
||||||
"npm:@nx/nx-darwin-x64@18.0.5",
|
"npm:@nx/nx-darwin-x64@18.0.5",
|
||||||
"npm:@nx/nx-freebsd-x64@18.0.5",
|
"npm:@nx/nx-freebsd-x64@18.0.5",
|
||||||
@ -9072,7 +9072,7 @@
|
|||||||
"npm:@nrwl/workspace",
|
"npm:@nrwl/workspace",
|
||||||
"npm:@nx/devkit",
|
"npm:@nx/devkit",
|
||||||
"npm:@nx/js",
|
"npm:@nx/js",
|
||||||
"npm:@nx/linter",
|
"npm:@nx/eslint",
|
||||||
"npm:@nx/nx-darwin-arm64",
|
"npm:@nx/nx-darwin-arm64",
|
||||||
"npm:@nx/nx-darwin-x64@18.0.5",
|
"npm:@nx/nx-darwin-x64@18.0.5",
|
||||||
"npm:@nx/nx-freebsd-x64@18.0.5",
|
"npm:@nx/nx-freebsd-x64@18.0.5",
|
||||||
|
|||||||
@ -18,7 +18,7 @@
|
|||||||
"libs/products/product-detail-page/tsconfig.lib.json",
|
"libs/products/product-detail-page/tsconfig.lib.json",
|
||||||
"libs/products/product-detail-page/tsconfig.spec.json"
|
"libs/products/product-detail-page/tsconfig.spec.json"
|
||||||
],
|
],
|
||||||
"external": ["npm:@nx/linter"]
|
"external": ["npm:@nx/eslint"]
|
||||||
},
|
},
|
||||||
"products-product-detail-page:test": {
|
"products-product-detail-page:test": {
|
||||||
"general": [".gitignore", "babel.config.json", "jest.preset.js", "nx.json"],
|
"general": [".gitignore", "babel.config.json", "jest.preset.js", "nx.json"],
|
||||||
@ -232,7 +232,7 @@
|
|||||||
"libs/shared/product/types/tsconfig.json",
|
"libs/shared/product/types/tsconfig.json",
|
||||||
"libs/shared/product/types/tsconfig.lib.json"
|
"libs/shared/product/types/tsconfig.lib.json"
|
||||||
],
|
],
|
||||||
"external": ["npm:@nx/linter"]
|
"external": ["npm:@nx/eslint"]
|
||||||
},
|
},
|
||||||
"shared-product-state:lint": {
|
"shared-product-state:lint": {
|
||||||
"general": [".eslintrc.json", ".gitignore", "babel.config.json", "nx.json"],
|
"general": [".eslintrc.json", ".gitignore", "babel.config.json", "nx.json"],
|
||||||
@ -256,7 +256,7 @@
|
|||||||
"libs/shared/product/state/tsconfig.lib.json",
|
"libs/shared/product/state/tsconfig.lib.json",
|
||||||
"libs/shared/product/state/tsconfig.spec.json"
|
"libs/shared/product/state/tsconfig.spec.json"
|
||||||
],
|
],
|
||||||
"external": ["npm:@nx/linter"]
|
"external": ["npm:@nx/eslint"]
|
||||||
},
|
},
|
||||||
"shared-product-state:test": {
|
"shared-product-state:test": {
|
||||||
"general": [".gitignore", "babel.config.json", "jest.preset.js", "nx.json"],
|
"general": [".gitignore", "babel.config.json", "jest.preset.js", "nx.json"],
|
||||||
@ -469,7 +469,7 @@
|
|||||||
"libs/shared/product/data/tsconfig.json",
|
"libs/shared/product/data/tsconfig.json",
|
||||||
"libs/shared/product/data/tsconfig.lib.json"
|
"libs/shared/product/data/tsconfig.lib.json"
|
||||||
],
|
],
|
||||||
"external": ["npm:@nx/linter"]
|
"external": ["npm:@nx/eslint"]
|
||||||
},
|
},
|
||||||
"products-home-page:lint": {
|
"products-home-page:lint": {
|
||||||
"general": [".eslintrc.json", ".gitignore", "babel.config.json", "nx.json"],
|
"general": [".eslintrc.json", ".gitignore", "babel.config.json", "nx.json"],
|
||||||
@ -490,7 +490,7 @@
|
|||||||
"libs/products/home-page/tsconfig.lib.json",
|
"libs/products/home-page/tsconfig.lib.json",
|
||||||
"libs/products/home-page/tsconfig.spec.json"
|
"libs/products/home-page/tsconfig.spec.json"
|
||||||
],
|
],
|
||||||
"external": ["npm:@nx/linter"]
|
"external": ["npm:@nx/eslint"]
|
||||||
},
|
},
|
||||||
"products-home-page:test": {
|
"products-home-page:test": {
|
||||||
"general": [".gitignore", "babel.config.json", "jest.preset.js", "nx.json"],
|
"general": [".gitignore", "babel.config.json", "jest.preset.js", "nx.json"],
|
||||||
@ -717,7 +717,7 @@
|
|||||||
"libs/shared/product/ui/tsconfig.lib.json",
|
"libs/shared/product/ui/tsconfig.lib.json",
|
||||||
"libs/shared/product/ui/tsconfig.spec.json"
|
"libs/shared/product/ui/tsconfig.spec.json"
|
||||||
],
|
],
|
||||||
"external": ["npm:@nx/linter"]
|
"external": ["npm:@nx/eslint"]
|
||||||
},
|
},
|
||||||
"shared-product-ui:test": {
|
"shared-product-ui:test": {
|
||||||
"general": [".gitignore", "babel.config.json", "jest.preset.js", "nx.json"],
|
"general": [".gitignore", "babel.config.json", "jest.preset.js", "nx.json"],
|
||||||
@ -772,7 +772,7 @@
|
|||||||
"libs/shared/cart/state/tsconfig.lib.json",
|
"libs/shared/cart/state/tsconfig.lib.json",
|
||||||
"libs/shared/cart/state/tsconfig.spec.json"
|
"libs/shared/cart/state/tsconfig.spec.json"
|
||||||
],
|
],
|
||||||
"external": ["npm:@nx/linter"]
|
"external": ["npm:@nx/eslint"]
|
||||||
},
|
},
|
||||||
"shared-cart-state:test": {
|
"shared-cart-state:test": {
|
||||||
"general": [".gitignore", "babel.config.json", "jest.preset.js", "nx.json"],
|
"general": [".gitignore", "babel.config.json", "jest.preset.js", "nx.json"],
|
||||||
@ -994,7 +994,7 @@
|
|||||||
"libs/shared/translate/tsconfig.json",
|
"libs/shared/translate/tsconfig.json",
|
||||||
"libs/shared/translate/tsconfig.lib.json"
|
"libs/shared/translate/tsconfig.lib.json"
|
||||||
],
|
],
|
||||||
"external": ["npm:@nx/linter"]
|
"external": ["npm:@nx/eslint"]
|
||||||
},
|
},
|
||||||
"shared-e2e-utils:lint": {
|
"shared-e2e-utils:lint": {
|
||||||
"general": [".eslintrc.json", ".gitignore", "babel.config.json", "nx.json"],
|
"general": [".eslintrc.json", ".gitignore", "babel.config.json", "nx.json"],
|
||||||
@ -1007,7 +1007,7 @@
|
|||||||
"libs/shared/e2e-utils/tsconfig.json",
|
"libs/shared/e2e-utils/tsconfig.json",
|
||||||
"libs/shared/e2e-utils/tsconfig.lib.json"
|
"libs/shared/e2e-utils/tsconfig.lib.json"
|
||||||
],
|
],
|
||||||
"external": ["npm:@nx/linter"]
|
"external": ["npm:@nx/eslint"]
|
||||||
},
|
},
|
||||||
"cart-cart-page:lint": {
|
"cart-cart-page:lint": {
|
||||||
"general": [".eslintrc.json", ".gitignore", "babel.config.json", "nx.json"],
|
"general": [".eslintrc.json", ".gitignore", "babel.config.json", "nx.json"],
|
||||||
@ -1025,7 +1025,7 @@
|
|||||||
"libs/cart/cart-page/tsconfig.lib.json",
|
"libs/cart/cart-page/tsconfig.lib.json",
|
||||||
"libs/cart/cart-page/tsconfig.spec.json"
|
"libs/cart/cart-page/tsconfig.spec.json"
|
||||||
],
|
],
|
||||||
"external": ["npm:@nx/linter"]
|
"external": ["npm:@nx/eslint"]
|
||||||
},
|
},
|
||||||
"cart-cart-page:test": {
|
"cart-cart-page:test": {
|
||||||
"general": [".gitignore", "babel.config.json", "jest.preset.js", "nx.json"],
|
"general": [".gitignore", "babel.config.json", "jest.preset.js", "nx.json"],
|
||||||
@ -1218,7 +1218,7 @@
|
|||||||
"libs/shared/header/tsconfig.lib.json",
|
"libs/shared/header/tsconfig.lib.json",
|
||||||
"libs/shared/header/tsconfig.spec.json"
|
"libs/shared/header/tsconfig.spec.json"
|
||||||
],
|
],
|
||||||
"external": ["npm:@nx/linter"]
|
"external": ["npm:@nx/eslint"]
|
||||||
},
|
},
|
||||||
"shared-header:test": {
|
"shared-header:test": {
|
||||||
"general": [".gitignore", "babel.config.json", "jest.preset.js", "nx.json"],
|
"general": [".gitignore", "babel.config.json", "jest.preset.js", "nx.json"],
|
||||||
@ -1265,7 +1265,7 @@
|
|||||||
"libs/shared/jsxify/tsconfig.json",
|
"libs/shared/jsxify/tsconfig.json",
|
||||||
"libs/shared/jsxify/tsconfig.lib.json"
|
"libs/shared/jsxify/tsconfig.lib.json"
|
||||||
],
|
],
|
||||||
"external": ["npm:@nx/linter"]
|
"external": ["npm:@nx/eslint"]
|
||||||
},
|
},
|
||||||
"products-e2e:e2e": {
|
"products-e2e:e2e": {
|
||||||
"general": [".gitignore", "babel.config.json", "nx.json"],
|
"general": [".gitignore", "babel.config.json", "nx.json"],
|
||||||
@ -1726,7 +1726,7 @@
|
|||||||
"apps/products-e2e/src/support/e2e.ts",
|
"apps/products-e2e/src/support/e2e.ts",
|
||||||
"apps/products-e2e/tsconfig.json"
|
"apps/products-e2e/tsconfig.json"
|
||||||
],
|
],
|
||||||
"external": ["npm:@nx/linter"]
|
"external": ["npm:@nx/eslint"]
|
||||||
},
|
},
|
||||||
"products:build": {
|
"products:build": {
|
||||||
"general": [
|
"general": [
|
||||||
@ -2989,7 +2989,7 @@
|
|||||||
"apps/products/tsconfig.json",
|
"apps/products/tsconfig.json",
|
||||||
"apps/products/tsconfig.spec.json"
|
"apps/products/tsconfig.spec.json"
|
||||||
],
|
],
|
||||||
"external": ["npm:@nx/linter"]
|
"external": ["npm:@nx/eslint"]
|
||||||
},
|
},
|
||||||
"products:test": {
|
"products:test": {
|
||||||
"general": [".gitignore", "babel.config.json", "jest.preset.js", "nx.json"],
|
"general": [".gitignore", "babel.config.json", "jest.preset.js", "nx.json"],
|
||||||
@ -3939,7 +3939,7 @@
|
|||||||
"apps/cart-e2e/src/support/e2e.ts",
|
"apps/cart-e2e/src/support/e2e.ts",
|
||||||
"apps/cart-e2e/tsconfig.json"
|
"apps/cart-e2e/tsconfig.json"
|
||||||
],
|
],
|
||||||
"external": ["npm:@nx/linter"]
|
"external": ["npm:@nx/eslint"]
|
||||||
},
|
},
|
||||||
"cart:build:production": {
|
"cart:build:production": {
|
||||||
"general": [".gitignore", "babel.config.json", "nx.json"],
|
"general": [".gitignore", "babel.config.json", "nx.json"],
|
||||||
@ -4190,7 +4190,7 @@
|
|||||||
"npm:@nrwl/workspace",
|
"npm:@nrwl/workspace",
|
||||||
"npm:@nx/devkit",
|
"npm:@nx/devkit",
|
||||||
"npm:@nx/js",
|
"npm:@nx/js",
|
||||||
"npm:@nx/linter",
|
"npm:@nx/eslint",
|
||||||
"npm:@nx/nx-darwin-arm64",
|
"npm:@nx/nx-darwin-arm64",
|
||||||
"npm:@nx/nx-darwin-x64@18.0.5",
|
"npm:@nx/nx-darwin-x64@18.0.5",
|
||||||
"npm:@nx/nx-freebsd-x64@18.0.5",
|
"npm:@nx/nx-freebsd-x64@18.0.5",
|
||||||
@ -5150,7 +5150,7 @@
|
|||||||
"npm:@nrwl/workspace",
|
"npm:@nrwl/workspace",
|
||||||
"npm:@nx/devkit",
|
"npm:@nx/devkit",
|
||||||
"npm:@nx/js",
|
"npm:@nx/js",
|
||||||
"npm:@nx/linter",
|
"npm:@nx/eslint",
|
||||||
"npm:@nx/nx-darwin-arm64",
|
"npm:@nx/nx-darwin-arm64",
|
||||||
"npm:@nx/nx-darwin-x64@18.0.5",
|
"npm:@nx/nx-darwin-x64@18.0.5",
|
||||||
"npm:@nx/nx-freebsd-x64@18.0.5",
|
"npm:@nx/nx-freebsd-x64@18.0.5",
|
||||||
@ -6125,7 +6125,7 @@
|
|||||||
"npm:@nrwl/workspace",
|
"npm:@nrwl/workspace",
|
||||||
"npm:@nx/devkit",
|
"npm:@nx/devkit",
|
||||||
"npm:@nx/js",
|
"npm:@nx/js",
|
||||||
"npm:@nx/linter",
|
"npm:@nx/eslint",
|
||||||
"npm:@nx/nx-darwin-arm64",
|
"npm:@nx/nx-darwin-arm64",
|
||||||
"npm:@nx/nx-darwin-x64@18.0.5",
|
"npm:@nx/nx-darwin-x64@18.0.5",
|
||||||
"npm:@nx/nx-freebsd-x64@18.0.5",
|
"npm:@nx/nx-freebsd-x64@18.0.5",
|
||||||
@ -7100,7 +7100,7 @@
|
|||||||
"npm:@nrwl/workspace",
|
"npm:@nrwl/workspace",
|
||||||
"npm:@nx/devkit",
|
"npm:@nx/devkit",
|
||||||
"npm:@nx/js",
|
"npm:@nx/js",
|
||||||
"npm:@nx/linter",
|
"npm:@nx/eslint",
|
||||||
"npm:@nx/nx-darwin-arm64",
|
"npm:@nx/nx-darwin-arm64",
|
||||||
"npm:@nx/nx-darwin-x64@18.0.5",
|
"npm:@nx/nx-darwin-x64@18.0.5",
|
||||||
"npm:@nx/nx-freebsd-x64@18.0.5",
|
"npm:@nx/nx-freebsd-x64@18.0.5",
|
||||||
@ -7835,7 +7835,7 @@
|
|||||||
"apps/cart/tsconfig.spec.json",
|
"apps/cart/tsconfig.spec.json",
|
||||||
"apps/cart/webpack.config.js"
|
"apps/cart/webpack.config.js"
|
||||||
],
|
],
|
||||||
"external": ["npm:@nx/linter"]
|
"external": ["npm:@nx/eslint"]
|
||||||
},
|
},
|
||||||
"cart:test": {
|
"cart:test": {
|
||||||
"general": [".gitignore", "babel.config.json", "jest.preset.js", "nx.json"],
|
"general": [".gitignore", "babel.config.json", "jest.preset.js", "nx.json"],
|
||||||
@ -8092,7 +8092,7 @@
|
|||||||
"npm:@nx/devkit",
|
"npm:@nx/devkit",
|
||||||
"npm:@nx/jest",
|
"npm:@nx/jest",
|
||||||
"npm:@nx/js",
|
"npm:@nx/js",
|
||||||
"npm:@nx/linter",
|
"npm:@nx/eslint",
|
||||||
"npm:@nx/nx-darwin-arm64",
|
"npm:@nx/nx-darwin-arm64",
|
||||||
"npm:@nx/nx-darwin-x64@18.0.5",
|
"npm:@nx/nx-darwin-x64@18.0.5",
|
||||||
"npm:@nx/nx-freebsd-x64@18.0.5",
|
"npm:@nx/nx-freebsd-x64@18.0.5",
|
||||||
@ -9072,7 +9072,7 @@
|
|||||||
"npm:@nrwl/workspace",
|
"npm:@nrwl/workspace",
|
||||||
"npm:@nx/devkit",
|
"npm:@nx/devkit",
|
||||||
"npm:@nx/js",
|
"npm:@nx/js",
|
||||||
"npm:@nx/linter",
|
"npm:@nx/eslint",
|
||||||
"npm:@nx/nx-darwin-arm64",
|
"npm:@nx/nx-darwin-arm64",
|
||||||
"npm:@nx/nx-darwin-x64@18.0.5",
|
"npm:@nx/nx-darwin-x64@18.0.5",
|
||||||
"npm:@nx/nx-freebsd-x64@18.0.5",
|
"npm:@nx/nx-freebsd-x64@18.0.5",
|
||||||
|
|||||||
@ -169,16 +169,16 @@ const pages: Array<{ title: string; path: string }> = [
|
|||||||
},
|
},
|
||||||
{ title: '@nx/js:tsc', path: '/packages/js/executors/tsc' },
|
{ title: '@nx/js:tsc', path: '/packages/js/executors/tsc' },
|
||||||
{ title: '@nx/js:swc', path: '/packages/js/executors/swc' },
|
{ title: '@nx/js:swc', path: '/packages/js/executors/swc' },
|
||||||
{ title: '@nx/linter', path: '/packages/eslint' },
|
{ title: '@nx/eslint', path: '/packages/eslint' },
|
||||||
{
|
{
|
||||||
title: '@nx/linter:workspace-rules-project',
|
title: '@nx/eslint:workspace-rules-project',
|
||||||
path: '/packages/linter/generators/workspace-rules-project',
|
path: '/packages/eslint/generators/workspace-rules-project',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '@nx/linter',
|
title: '@nx/eslint',
|
||||||
path: '/packages/linter/generators/workspace-rule',
|
path: '/packages/eslint/generators/workspace-rule',
|
||||||
},
|
},
|
||||||
{ title: '@nx/linter', path: '/packages/linter/executors/eslint' },
|
{ title: '@nx/eslint', path: '/packages/eslint/executors/lint' },
|
||||||
{ title: '@nx/nest', path: '/packages/nest' },
|
{ title: '@nx/nest', path: '/packages/nest' },
|
||||||
{
|
{
|
||||||
title: '@nx/nest:application',
|
title: '@nx/nest:application',
|
||||||
|
|||||||
@ -913,11 +913,20 @@ const aiChat = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// rename nx/linter to eslint
|
// rename nx/linter to eslint
|
||||||
// TODO(v17) invert these redirects
|
|
||||||
const eslintRename = {
|
const eslintRename = {
|
||||||
'/nx-api/eslint': '/nx-api/linter',
|
'/nx-api/linter': '/nx-api/eslint',
|
||||||
'/packages/eslint': '/packages/linter',
|
'/nx-api/linter/documents': '/nx-api/eslint/documents',
|
||||||
'/nx-api/eslint/executors/lint': '/nx-api/linter/executors/eslint',
|
'/nx-api/linter/documents/overview': '/nx-api/eslint/documents/overview',
|
||||||
|
'/nx-api/linter/executors': '/nx-api/eslint/executors',
|
||||||
|
'/nx-api/linter/executors/eslint': '/nx-api/eslint/executors/lint',
|
||||||
|
'/nx-api/linter/generators': '/nx-api/eslint/generators',
|
||||||
|
'/nx-api/linter/generators/convert-to-flat-config':
|
||||||
|
'/nx-api/eslint/generators/convert-to-flat-config',
|
||||||
|
'/nx-api/linter/generators/workspace-rule':
|
||||||
|
'/nx-api/eslint/generators/workspace-rule',
|
||||||
|
'/nx-api/linter/generators/workspace-rules-project':
|
||||||
|
'/nx-api/eslint/generators/workspace-rules-project',
|
||||||
|
'/packages/linter': '/packages/eslint',
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -4,7 +4,7 @@ Linter can be configured in multiple ways. The basic way is to provide only `lin
|
|||||||
|
|
||||||
```json
|
```json
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"options": {
|
"options": {
|
||||||
"lintFilePatterns": ["apps/frontend/**/*.ts"]
|
"lintFilePatterns": ["apps/frontend/**/*.ts"]
|
||||||
}
|
}
|
||||||
@ -20,7 +20,7 @@ Linter provides an automated way of fixing known issues. To ensure that those ch
|
|||||||
|
|
||||||
```json
|
```json
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"outputs": ["{options.outputFile}"],
|
"outputs": ["{options.outputFile}"],
|
||||||
"options": {
|
"options": {
|
||||||
"lintFilePatterns": ["apps/frontend/**/*.ts"]
|
"lintFilePatterns": ["apps/frontend/**/*.ts"]
|
||||||
@ -38,7 +38,7 @@ We can also set this flag via project configuration to always fix files when run
|
|||||||
|
|
||||||
```json
|
```json
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"outputs": ["{options.outputFile}"],
|
"outputs": ["{options.outputFile}"],
|
||||||
"options": {
|
"options": {
|
||||||
"lintFilePatterns": ["apps/frontend/**/*.ts"],
|
"lintFilePatterns": ["apps/frontend/**/*.ts"],
|
||||||
@ -54,7 +54,7 @@ ESLint executor uses the `stylish` output format by default. You can change this
|
|||||||
|
|
||||||
```json
|
```json
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"outputs": ["{options.outputFile}"],
|
"outputs": ["{options.outputFile}"],
|
||||||
"options": {
|
"options": {
|
||||||
"lintFilePatterns": ["apps/frontend/**/*.ts"],
|
"lintFilePatterns": ["apps/frontend/**/*.ts"],
|
||||||
@ -76,7 +76,7 @@ We can also set this via project configuration as a default option.
|
|||||||
|
|
||||||
```json
|
```json
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"outputs": ["{options.outputFile}"],
|
"outputs": ["{options.outputFile}"],
|
||||||
"options": {
|
"options": {
|
||||||
"lintFilePatterns": ["apps/frontend/**/*.ts"],
|
"lintFilePatterns": ["apps/frontend/**/*.ts"],
|
||||||
@ -92,7 +92,7 @@ We can also set this via project configuration as a default option.
|
|||||||
|
|
||||||
```json
|
```json
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"outputs": ["{options.outputFile}"],
|
"outputs": ["{options.outputFile}"],
|
||||||
"options": {
|
"options": {
|
||||||
"lintFilePatterns": ["apps/frontend/**/*.ts"],
|
"lintFilePatterns": ["apps/frontend/**/*.ts"],
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
This command will generate a new workspace lint rule called `my-custom-rule`. The new rule will be generated in `tools/eslint-rules/rules` folder:
|
This command will generate a new workspace lint rule called `my-custom-rule`. The new rule will be generated in `tools/eslint-rules/rules` folder:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
nx g @nx/linter:workspace-rule my-custom-rule
|
nx g @nx/eslint:workspace-rule my-custom-rule
|
||||||
```
|
```
|
||||||
|
|
||||||
{% /tab %}
|
{% /tab %}
|
||||||
@ -13,7 +13,7 @@ nx g @nx/linter:workspace-rule my-custom-rule
|
|||||||
We can change the default sub-folder from `rules` and specify a custom one:
|
We can change the default sub-folder from `rules` and specify a custom one:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
nx g @nx/linter:workspace-rule --name=my-custom-rule --directory=my/custom/path
|
nx g @nx/eslint:workspace-rule --name=my-custom-rule --directory=my/custom/path
|
||||||
```
|
```
|
||||||
|
|
||||||
The command above will generate the rule in `tools/eslint-rules/my/custom/path` folder.
|
The command above will generate the rule in `tools/eslint-rules/my/custom/path` folder.
|
||||||
|
|||||||
@ -30,6 +30,7 @@ function updateNxJsonExecutor(tree: Tree) {
|
|||||||
for (const [targetName, targetConfig] of Object.entries(
|
for (const [targetName, targetConfig] of Object.entries(
|
||||||
nxJson.targetDefaults ?? {}
|
nxJson.targetDefaults ?? {}
|
||||||
)) {
|
)) {
|
||||||
|
// this will be in a broken state after the package is globally renamed
|
||||||
if (targetConfig.executor !== '@nx/eslint:eslint') {
|
if (targetConfig.executor !== '@nx/eslint:eslint') {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@ -51,6 +52,7 @@ function updateProjectExecutor(tree: Tree) {
|
|||||||
for (const [targetName, targetConfig] of Object.entries(
|
for (const [targetName, targetConfig] of Object.entries(
|
||||||
projectConfiguration.targets ?? {}
|
projectConfiguration.targets ?? {}
|
||||||
)) {
|
)) {
|
||||||
|
// this will be in a broken state after the package is globally renamed
|
||||||
if (targetConfig.executor !== '@nx/eslint:eslint') {
|
if (targetConfig.executor !== '@nx/eslint:eslint') {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -473,7 +473,7 @@ Map {
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"options": {
|
"options": {
|
||||||
"lintFilePatterns": [
|
"lintFilePatterns": [
|
||||||
"apps/main-vite/**/*.{ts,tsx,js,jsx}",
|
"apps/main-vite/**/*.{ts,tsx,js,jsx}",
|
||||||
@ -555,7 +555,7 @@ Map {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"options": {
|
"options": {
|
||||||
"lintFilePatterns": [
|
"lintFilePatterns": [
|
||||||
"apps/main-vite-e2e/**/*.{js,ts}",
|
"apps/main-vite-e2e/**/*.{js,ts}",
|
||||||
@ -610,7 +610,7 @@ Map {
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"options": {
|
"options": {
|
||||||
"lintFilePatterns": [
|
"lintFilePatterns": [
|
||||||
"apps/main-vite-ts/**/*.{ts,tsx,js,jsx}",
|
"apps/main-vite-ts/**/*.{ts,tsx,js,jsx}",
|
||||||
@ -692,7 +692,7 @@ Map {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"options": {
|
"options": {
|
||||||
"lintFilePatterns": [
|
"lintFilePatterns": [
|
||||||
"apps/main-vite-ts-e2e/**/*.{js,ts}",
|
"apps/main-vite-ts-e2e/**/*.{js,ts}",
|
||||||
@ -775,7 +775,7 @@ Map {
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"options": {
|
"options": {
|
||||||
"lintFilePatterns": [
|
"lintFilePatterns": [
|
||||||
"apps/main-webpack/**/*.{ts,tsx,js,jsx}",
|
"apps/main-webpack/**/*.{ts,tsx,js,jsx}",
|
||||||
@ -857,7 +857,7 @@ Map {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"options": {
|
"options": {
|
||||||
"lintFilePatterns": [
|
"lintFilePatterns": [
|
||||||
"apps/main-webpack-e2e/**/*.{js,ts}",
|
"apps/main-webpack-e2e/**/*.{js,ts}",
|
||||||
@ -936,7 +936,7 @@ Map {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"options": {
|
"options": {
|
||||||
"lintFilePatterns": [
|
"lintFilePatterns": [
|
||||||
"apps/nextapp/**/*.{ts,tsx,js,jsx}",
|
"apps/nextapp/**/*.{ts,tsx,js,jsx}",
|
||||||
@ -1019,7 +1019,7 @@ Map {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"options": {
|
"options": {
|
||||||
"lintFilePatterns": [
|
"lintFilePatterns": [
|
||||||
"apps/nextapp-e2e/**/*.{js,ts}",
|
"apps/nextapp-e2e/**/*.{js,ts}",
|
||||||
@ -1113,7 +1113,7 @@ Map {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"options": {
|
"options": {
|
||||||
"lintFilePatterns": [
|
"lintFilePatterns": [
|
||||||
"apps/ngapp/**/*.ts",
|
"apps/ngapp/**/*.ts",
|
||||||
@ -1187,7 +1187,7 @@ Map {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"options": {
|
"options": {
|
||||||
"lintFilePatterns": [
|
"lintFilePatterns": [
|
||||||
"apps/ngapp-e2e/**/*.{js,ts}",
|
"apps/ngapp-e2e/**/*.{js,ts}",
|
||||||
@ -1224,7 +1224,7 @@ Map {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"options": {
|
"options": {
|
||||||
"lintFilePatterns": [
|
"lintFilePatterns": [
|
||||||
"apps/nglib-e2e/**/*.{js,ts}",
|
"apps/nglib-e2e/**/*.{js,ts}",
|
||||||
@ -1261,7 +1261,7 @@ Map {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"options": {
|
"options": {
|
||||||
"lintFilePatterns": [
|
"lintFilePatterns": [
|
||||||
"apps/react-rollup-e2e/**/*.{js,ts}",
|
"apps/react-rollup-e2e/**/*.{js,ts}",
|
||||||
@ -1343,7 +1343,7 @@ Map {
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"options": {
|
"options": {
|
||||||
"lintFilePatterns": [
|
"lintFilePatterns": [
|
||||||
"apps/react-swc/**/*.{ts,tsx,js,jsx}",
|
"apps/react-swc/**/*.{ts,tsx,js,jsx}",
|
||||||
@ -1425,7 +1425,7 @@ Map {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"options": {
|
"options": {
|
||||||
"lintFilePatterns": [
|
"lintFilePatterns": [
|
||||||
"apps/react-swc-e2e/**/*.{js,ts}",
|
"apps/react-swc-e2e/**/*.{js,ts}",
|
||||||
@ -1462,7 +1462,7 @@ Map {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"options": {
|
"options": {
|
||||||
"lintFilePatterns": [
|
"lintFilePatterns": [
|
||||||
"apps/react-vite-e2e/**/*.{js,ts}",
|
"apps/react-vite-e2e/**/*.{js,ts}",
|
||||||
@ -1517,7 +1517,7 @@ Map {
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"options": {
|
"options": {
|
||||||
"lintFilePatterns": [
|
"lintFilePatterns": [
|
||||||
"apps/reapp/**/*.{ts,tsx,js,jsx}",
|
"apps/reapp/**/*.{ts,tsx,js,jsx}",
|
||||||
@ -1599,7 +1599,7 @@ Map {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"options": {
|
"options": {
|
||||||
"lintFilePatterns": [
|
"lintFilePatterns": [
|
||||||
"apps/reapp-e2e/**/*.{js,ts}",
|
"apps/reapp-e2e/**/*.{js,ts}",
|
||||||
@ -1681,7 +1681,7 @@ Map {
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"options": {
|
"options": {
|
||||||
"lintFilePatterns": [
|
"lintFilePatterns": [
|
||||||
"apps/reappw/**/*.{ts,tsx,js,jsx}",
|
"apps/reappw/**/*.{ts,tsx,js,jsx}",
|
||||||
@ -1763,7 +1763,7 @@ Map {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"options": {
|
"options": {
|
||||||
"lintFilePatterns": [
|
"lintFilePatterns": [
|
||||||
"apps/reappw-e2e/**/*.{js,ts}",
|
"apps/reappw-e2e/**/*.{js,ts}",
|
||||||
@ -1818,7 +1818,7 @@ Map {
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"options": {
|
"options": {
|
||||||
"lintFilePatterns": [
|
"lintFilePatterns": [
|
||||||
"apps/wv1/**/*.ts",
|
"apps/wv1/**/*.ts",
|
||||||
@ -1900,7 +1900,7 @@ Map {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"options": {
|
"options": {
|
||||||
"lintFilePatterns": [
|
"lintFilePatterns": [
|
||||||
"apps/wv1-e2e/**/*.{js,ts}",
|
"apps/wv1-e2e/**/*.{js,ts}",
|
||||||
@ -1976,7 +1976,7 @@ Map {
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"options": {
|
"options": {
|
||||||
"lintFilePatterns": [
|
"lintFilePatterns": [
|
||||||
"apps/ww1/**/*.ts",
|
"apps/ww1/**/*.ts",
|
||||||
@ -2052,7 +2052,7 @@ Map {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"options": {
|
"options": {
|
||||||
"lintFilePatterns": [
|
"lintFilePatterns": [
|
||||||
"apps/ww1-e2e/**/*.{js,ts}",
|
"apps/ww1-e2e/**/*.{js,ts}",
|
||||||
@ -2107,7 +2107,7 @@ Map {
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"options": {
|
"options": {
|
||||||
"lintFilePatterns": [
|
"lintFilePatterns": [
|
||||||
"libs/my-plugin/**/*.ts",
|
"libs/my-plugin/**/*.ts",
|
||||||
@ -2172,7 +2172,7 @@ Map {
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"options": {
|
"options": {
|
||||||
"lintFilePatterns": [
|
"lintFilePatterns": [
|
||||||
"libs/nglib/**/*.ts",
|
"libs/nglib/**/*.ts",
|
||||||
@ -2257,7 +2257,7 @@ Map {
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"options": {
|
"options": {
|
||||||
"lintFilePatterns": [
|
"lintFilePatterns": [
|
||||||
"libs/react-rollup/**/*.{ts,tsx,js,jsx}",
|
"libs/react-rollup/**/*.{ts,tsx,js,jsx}",
|
||||||
@ -2330,7 +2330,7 @@ Map {
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"options": {
|
"options": {
|
||||||
"lintFilePatterns": [
|
"lintFilePatterns": [
|
||||||
"libs/react-rollup-2/**/*.{ts,tsx,js,jsx}",
|
"libs/react-rollup-2/**/*.{ts,tsx,js,jsx}",
|
||||||
@ -2394,7 +2394,7 @@ Map {
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"options": {
|
"options": {
|
||||||
"lintFilePatterns": [
|
"lintFilePatterns": [
|
||||||
"libs/react-vite/**/*.{ts,tsx,js,jsx}",
|
"libs/react-vite/**/*.{ts,tsx,js,jsx}",
|
||||||
@ -2461,7 +2461,7 @@ Map {
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"options": {
|
"options": {
|
||||||
"lintFilePatterns": [
|
"lintFilePatterns": [
|
||||||
"libs/react-vite-2/**/*.{ts,tsx,js,jsx}",
|
"libs/react-vite-2/**/*.{ts,tsx,js,jsx}",
|
||||||
@ -2504,7 +2504,7 @@ Map {
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"options": {
|
"options": {
|
||||||
"lintFilePatterns": [
|
"lintFilePatterns": [
|
||||||
"libs/utils/one/**/*.ts",
|
"libs/utils/one/**/*.ts",
|
||||||
@ -2544,7 +2544,7 @@ Map {
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"options": {
|
"options": {
|
||||||
"lintFilePatterns": [
|
"lintFilePatterns": [
|
||||||
"libs/utils/three-vite/**/*.ts",
|
"libs/utils/three-vite/**/*.ts",
|
||||||
@ -2587,7 +2587,7 @@ Map {
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"options": {
|
"options": {
|
||||||
"lintFilePatterns": [
|
"lintFilePatterns": [
|
||||||
"libs/utils/two/**/*.ts",
|
"libs/utils/two/**/*.ts",
|
||||||
|
|||||||
@ -146,7 +146,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"outputs": ["{options.outputFile}"],
|
"outputs": ["{options.outputFile}"],
|
||||||
"options": {
|
"options": {
|
||||||
"lintFilePatterns": ["apps/reapp/**/*.{ts,tsx,js,jsx}"]
|
"lintFilePatterns": ["apps/reapp/**/*.{ts,tsx,js,jsx}"]
|
||||||
@ -171,7 +171,7 @@
|
|||||||
"tags": [],
|
"tags": [],
|
||||||
"targets": {
|
"targets": {
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"outputs": ["{options.outputFile}"],
|
"outputs": ["{options.outputFile}"],
|
||||||
"options": {
|
"options": {
|
||||||
"lintFilePatterns": ["libs/nxlib/**/*.{ts,tsx,js,jsx}"]
|
"lintFilePatterns": ["libs/nxlib/**/*.{ts,tsx,js,jsx}"]
|
||||||
@ -215,7 +215,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"outputs": ["{options.outputFile}"],
|
"outputs": ["{options.outputFile}"],
|
||||||
"options": {
|
"options": {
|
||||||
"lintFilePatterns": ["libs/nxlib-buildable/**/*.{ts,tsx,js,jsx}"]
|
"lintFilePatterns": ["libs/nxlib-buildable/**/*.{ts,tsx,js,jsx}"]
|
||||||
@ -259,7 +259,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"outputs": ["{options.outputFile}"],
|
"outputs": ["{options.outputFile}"],
|
||||||
"options": {
|
"options": {
|
||||||
"lintFilePatterns": ["libs/relib-buildable/**/*.{ts,tsx,js,jsx}"]
|
"lintFilePatterns": ["libs/relib-buildable/**/*.{ts,tsx,js,jsx}"]
|
||||||
@ -342,7 +342,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"outputs": ["{options.outputFile}"],
|
"outputs": ["{options.outputFile}"],
|
||||||
"options": {
|
"options": {
|
||||||
"lintFilePatterns": ["apps/reapp-swc/**/*.{ts,tsx,js,jsx}"]
|
"lintFilePatterns": ["apps/reapp-swc/**/*.{ts,tsx,js,jsx}"]
|
||||||
|
|||||||
@ -42,7 +42,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"outputs": ["{options.outputFile}"],
|
"outputs": ["{options.outputFile}"],
|
||||||
"options": {
|
"options": {
|
||||||
"lintFilePatterns": ["apps/main-vite/**/*.{ts,tsx,js,jsx}"]
|
"lintFilePatterns": ["apps/main-vite/**/*.{ts,tsx,js,jsx}"]
|
||||||
@ -89,7 +89,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"outputs": ["{options.outputFile}"],
|
"outputs": ["{options.outputFile}"],
|
||||||
"options": { "lintFilePatterns": ["apps/main-vite-e2e/**/*.{js,ts}"] }
|
"options": { "lintFilePatterns": ["apps/main-vite-e2e/**/*.{js,ts}"] }
|
||||||
}
|
}
|
||||||
@ -141,7 +141,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"outputs": ["{options.outputFile}"],
|
"outputs": ["{options.outputFile}"],
|
||||||
"options": {
|
"options": {
|
||||||
"lintFilePatterns": ["apps/main-vite-ts/**/*.{ts,tsx,js,jsx}"]
|
"lintFilePatterns": ["apps/main-vite-ts/**/*.{ts,tsx,js,jsx}"]
|
||||||
@ -188,7 +188,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"outputs": ["{options.outputFile}"],
|
"outputs": ["{options.outputFile}"],
|
||||||
"options": {
|
"options": {
|
||||||
"lintFilePatterns": ["apps/main-vite-ts-e2e/**/*.{js,ts}"]
|
"lintFilePatterns": ["apps/main-vite-ts-e2e/**/*.{js,ts}"]
|
||||||
@ -261,7 +261,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"outputs": ["{options.outputFile}"],
|
"outputs": ["{options.outputFile}"],
|
||||||
"options": {
|
"options": {
|
||||||
"lintFilePatterns": ["apps/main-webpack/**/*.{ts,tsx,js,jsx}"]
|
"lintFilePatterns": ["apps/main-webpack/**/*.{ts,tsx,js,jsx}"]
|
||||||
@ -316,7 +316,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"outputs": ["{options.outputFile}"],
|
"outputs": ["{options.outputFile}"],
|
||||||
"options": {
|
"options": {
|
||||||
"lintFilePatterns": ["apps/main-webpack-e2e/**/*.{js,ts}"]
|
"lintFilePatterns": ["apps/main-webpack-e2e/**/*.{js,ts}"]
|
||||||
@ -392,7 +392,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"outputs": ["{options.outputFile}"],
|
"outputs": ["{options.outputFile}"],
|
||||||
"options": { "lintFilePatterns": ["apps/nextapp/**/*.{ts,tsx,js,jsx}"] }
|
"options": { "lintFilePatterns": ["apps/nextapp/**/*.{ts,tsx,js,jsx}"] }
|
||||||
},
|
},
|
||||||
@ -437,7 +437,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"outputs": ["{options.outputFile}"],
|
"outputs": ["{options.outputFile}"],
|
||||||
"options": { "lintFilePatterns": ["apps/nextapp-e2e/**/*.{js,ts}"] }
|
"options": { "lintFilePatterns": ["apps/nextapp-e2e/**/*.{js,ts}"] }
|
||||||
}
|
}
|
||||||
@ -506,7 +506,7 @@
|
|||||||
"options": { "browserTarget": "ngapp:build" }
|
"options": { "browserTarget": "ngapp:build" }
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"outputs": ["{options.outputFile}"],
|
"outputs": ["{options.outputFile}"],
|
||||||
"options": {
|
"options": {
|
||||||
"lintFilePatterns": ["apps/ngapp/**/*.ts", "apps/ngapp/**/*.html"]
|
"lintFilePatterns": ["apps/ngapp/**/*.ts", "apps/ngapp/**/*.html"]
|
||||||
@ -563,7 +563,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"outputs": ["{options.outputFile}"],
|
"outputs": ["{options.outputFile}"],
|
||||||
"options": { "lintFilePatterns": ["apps/ngapp-e2e/**/*.{js,ts}"] }
|
"options": { "lintFilePatterns": ["apps/ngapp-e2e/**/*.{js,ts}"] }
|
||||||
}
|
}
|
||||||
@ -588,7 +588,7 @@
|
|||||||
"configurations": { "ci": { "devServerTarget": "nglib:storybook:ci" } }
|
"configurations": { "ci": { "devServerTarget": "nglib:storybook:ci" } }
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"outputs": ["{options.outputFile}"],
|
"outputs": ["{options.outputFile}"],
|
||||||
"options": { "lintFilePatterns": ["apps/nglib-e2e/**/*.{js,ts}"] }
|
"options": { "lintFilePatterns": ["apps/nglib-e2e/**/*.{js,ts}"] }
|
||||||
}
|
}
|
||||||
@ -615,7 +615,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"outputs": ["{options.outputFile}"],
|
"outputs": ["{options.outputFile}"],
|
||||||
"options": {
|
"options": {
|
||||||
"lintFilePatterns": ["apps/react-rollup-e2e/**/*.{js,ts}"]
|
"lintFilePatterns": ["apps/react-rollup-e2e/**/*.{js,ts}"]
|
||||||
@ -687,7 +687,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"outputs": ["{options.outputFile}"],
|
"outputs": ["{options.outputFile}"],
|
||||||
"options": {
|
"options": {
|
||||||
"lintFilePatterns": ["apps/react-swc/**/*.{ts,tsx,js,jsx}"]
|
"lintFilePatterns": ["apps/react-swc/**/*.{ts,tsx,js,jsx}"]
|
||||||
@ -723,7 +723,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"outputs": ["{options.outputFile}"],
|
"outputs": ["{options.outputFile}"],
|
||||||
"options": { "lintFilePatterns": ["apps/react-swc-e2e/**/*.{js,ts}"] }
|
"options": { "lintFilePatterns": ["apps/react-swc-e2e/**/*.{js,ts}"] }
|
||||||
}
|
}
|
||||||
@ -750,7 +750,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"outputs": ["{options.outputFile}"],
|
"outputs": ["{options.outputFile}"],
|
||||||
"options": { "lintFilePatterns": ["apps/react-vite-e2e/**/*.{js,ts}"] }
|
"options": { "lintFilePatterns": ["apps/react-vite-e2e/**/*.{js,ts}"] }
|
||||||
}
|
}
|
||||||
@ -802,7 +802,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"outputs": ["{options.outputFile}"],
|
"outputs": ["{options.outputFile}"],
|
||||||
"options": { "lintFilePatterns": ["apps/reapp/**/*.{ts,tsx,js,jsx}"] }
|
"options": { "lintFilePatterns": ["apps/reapp/**/*.{ts,tsx,js,jsx}"] }
|
||||||
},
|
},
|
||||||
@ -847,7 +847,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"outputs": ["{options.outputFile}"],
|
"outputs": ["{options.outputFile}"],
|
||||||
"options": { "lintFilePatterns": ["apps/reapp-e2e/**/*.{js,ts}"] }
|
"options": { "lintFilePatterns": ["apps/reapp-e2e/**/*.{js,ts}"] }
|
||||||
}
|
}
|
||||||
@ -914,7 +914,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"outputs": ["{options.outputFile}"],
|
"outputs": ["{options.outputFile}"],
|
||||||
"options": { "lintFilePatterns": ["apps/reappw/**/*.{ts,tsx,js,jsx}"] }
|
"options": { "lintFilePatterns": ["apps/reappw/**/*.{ts,tsx,js,jsx}"] }
|
||||||
},
|
},
|
||||||
@ -967,7 +967,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"outputs": ["{options.outputFile}"],
|
"outputs": ["{options.outputFile}"],
|
||||||
"options": { "lintFilePatterns": ["apps/reappw-e2e/**/*.{js,ts}"] }
|
"options": { "lintFilePatterns": ["apps/reappw-e2e/**/*.{js,ts}"] }
|
||||||
}
|
}
|
||||||
@ -1009,7 +1009,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"outputs": ["{options.outputFile}"],
|
"outputs": ["{options.outputFile}"],
|
||||||
"options": { "lintFilePatterns": ["apps/wv1/**/*.ts"] }
|
"options": { "lintFilePatterns": ["apps/wv1/**/*.ts"] }
|
||||||
},
|
},
|
||||||
@ -1061,7 +1061,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"outputs": ["{options.outputFile}"],
|
"outputs": ["{options.outputFile}"],
|
||||||
"options": { "lintFilePatterns": ["apps/wv1-e2e/**/*.{js,ts}"] }
|
"options": { "lintFilePatterns": ["apps/wv1-e2e/**/*.{js,ts}"] }
|
||||||
}
|
}
|
||||||
@ -1118,7 +1118,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"outputs": ["{options.outputFile}"],
|
"outputs": ["{options.outputFile}"],
|
||||||
"options": { "lintFilePatterns": ["apps/ww1/**/*.ts"] }
|
"options": { "lintFilePatterns": ["apps/ww1/**/*.ts"] }
|
||||||
},
|
},
|
||||||
@ -1170,7 +1170,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"outputs": ["{options.outputFile}"],
|
"outputs": ["{options.outputFile}"],
|
||||||
"options": { "lintFilePatterns": ["apps/ww1-e2e/**/*.{js,ts}"] }
|
"options": { "lintFilePatterns": ["apps/ww1-e2e/**/*.{js,ts}"] }
|
||||||
}
|
}
|
||||||
@ -1218,7 +1218,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"outputs": ["{options.outputFile}"],
|
"outputs": ["{options.outputFile}"],
|
||||||
"options": {
|
"options": {
|
||||||
"lintFilePatterns": [
|
"lintFilePatterns": [
|
||||||
@ -1266,7 +1266,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"outputs": ["{options.outputFile}"],
|
"outputs": ["{options.outputFile}"],
|
||||||
"options": {
|
"options": {
|
||||||
"lintFilePatterns": ["libs/nglib/**/*.ts", "libs/nglib/**/*.html"]
|
"lintFilePatterns": ["libs/nglib/**/*.ts", "libs/nglib/**/*.html"]
|
||||||
@ -1304,7 +1304,7 @@
|
|||||||
"tags": [],
|
"tags": [],
|
||||||
"targets": {
|
"targets": {
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"outputs": ["{options.outputFile}"],
|
"outputs": ["{options.outputFile}"],
|
||||||
"options": {
|
"options": {
|
||||||
"lintFilePatterns": ["libs/react-rollup/**/*.{ts,tsx,js,jsx}"]
|
"lintFilePatterns": ["libs/react-rollup/**/*.{ts,tsx,js,jsx}"]
|
||||||
@ -1367,7 +1367,7 @@
|
|||||||
"tags": [],
|
"tags": [],
|
||||||
"targets": {
|
"targets": {
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"outputs": ["{options.outputFile}"],
|
"outputs": ["{options.outputFile}"],
|
||||||
"options": {
|
"options": {
|
||||||
"lintFilePatterns": ["libs/react-rollup-2/**/*.{ts,tsx,js,jsx}"]
|
"lintFilePatterns": ["libs/react-rollup-2/**/*.{ts,tsx,js,jsx}"]
|
||||||
@ -1412,7 +1412,7 @@
|
|||||||
"tags": [],
|
"tags": [],
|
||||||
"targets": {
|
"targets": {
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"outputs": ["{options.outputFile}"],
|
"outputs": ["{options.outputFile}"],
|
||||||
"options": {
|
"options": {
|
||||||
"lintFilePatterns": ["libs/react-vite/**/*.{ts,tsx,js,jsx}"]
|
"lintFilePatterns": ["libs/react-vite/**/*.{ts,tsx,js,jsx}"]
|
||||||
@ -1466,7 +1466,7 @@
|
|||||||
"tags": [],
|
"tags": [],
|
||||||
"targets": {
|
"targets": {
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"outputs": ["{options.outputFile}"],
|
"outputs": ["{options.outputFile}"],
|
||||||
"options": {
|
"options": {
|
||||||
"lintFilePatterns": ["libs/react-vite-2/**/*.{ts,tsx,js,jsx}"]
|
"lintFilePatterns": ["libs/react-vite-2/**/*.{ts,tsx,js,jsx}"]
|
||||||
@ -1510,7 +1510,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"outputs": ["{options.outputFile}"],
|
"outputs": ["{options.outputFile}"],
|
||||||
"options": { "lintFilePatterns": ["libs/utils/one/**/*.ts"] }
|
"options": { "lintFilePatterns": ["libs/utils/one/**/*.ts"] }
|
||||||
},
|
},
|
||||||
@ -1538,7 +1538,7 @@
|
|||||||
"options": { "outputPath": "dist/libs/utils/three-vite" }
|
"options": { "outputPath": "dist/libs/utils/three-vite" }
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"outputs": ["{options.outputFile}"],
|
"outputs": ["{options.outputFile}"],
|
||||||
"options": { "lintFilePatterns": ["libs/utils/three-vite/**/*.ts"] }
|
"options": { "lintFilePatterns": ["libs/utils/three-vite/**/*.ts"] }
|
||||||
},
|
},
|
||||||
@ -1571,7 +1571,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"outputs": ["{options.outputFile}"],
|
"outputs": ["{options.outputFile}"],
|
||||||
"options": { "lintFilePatterns": ["libs/utils/two/**/*.ts"] }
|
"options": { "lintFilePatterns": ["libs/utils/two/**/*.ts"] }
|
||||||
},
|
},
|
||||||
|
|||||||
@ -160,7 +160,7 @@
|
|||||||
"defaultConfiguration": "production"
|
"defaultConfiguration": "production"
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"options": {
|
"options": {
|
||||||
"lintFilePatterns": [
|
"lintFilePatterns": [
|
||||||
"libs/nglibuild/**/*.ts",
|
"libs/nglibuild/**/*.ts",
|
||||||
|
|||||||
@ -84,7 +84,7 @@
|
|||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"inputs": ["default", "{workspaceRoot}/.eslintrc.json"],
|
"inputs": ["default", "{workspaceRoot}/.eslintrc.json"],
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"outputs": ["{options.outputFile}"],
|
"outputs": ["{options.outputFile}"],
|
||||||
"options": {
|
"options": {
|
||||||
"lintFilePatterns": ["apps/main-webpack/**/*.{ts,tsx,js,jsx}"]
|
"lintFilePatterns": ["apps/main-webpack/**/*.{ts,tsx,js,jsx}"]
|
||||||
|
|||||||
@ -114,7 +114,7 @@ exports[`@nx/vite:configuration library mode should set up non buildable library
|
|||||||
"projectType": "library",
|
"projectType": "library",
|
||||||
"targets": {
|
"targets": {
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"outputs": ["{options.outputFile}"],
|
"outputs": ["{options.outputFile}"],
|
||||||
"options": {
|
"options": {
|
||||||
"lintFilePatterns": [
|
"lintFilePatterns": [
|
||||||
@ -195,7 +195,7 @@ exports[`@nx/vite:configuration library mode should set up non buildable library
|
|||||||
"projectType": "library",
|
"projectType": "library",
|
||||||
"targets": {
|
"targets": {
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"outputs": ["{options.outputFile}"],
|
"outputs": ["{options.outputFile}"],
|
||||||
"options": {
|
"options": {
|
||||||
"lintFilePatterns": [
|
"lintFilePatterns": [
|
||||||
@ -255,7 +255,7 @@ exports[`@nx/vite:configuration transform React app to use Vite by providing cus
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"outputs": ["{options.outputFile}"],
|
"outputs": ["{options.outputFile}"],
|
||||||
"options": {
|
"options": {
|
||||||
"lintFilePatterns": [
|
"lintFilePatterns": [
|
||||||
@ -398,7 +398,7 @@ exports[`@nx/vite:configuration transform React app to use Vite should transform
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"outputs": ["{options.outputFile}"],
|
"outputs": ["{options.outputFile}"],
|
||||||
"options": {
|
"options": {
|
||||||
"lintFilePatterns": ["apps/my-test-react-app/**/*.{ts,tsx,js,jsx}"]
|
"lintFilePatterns": ["apps/my-test-react-app/**/*.{ts,tsx,js,jsx}"]
|
||||||
@ -527,7 +527,7 @@ exports[`@nx/vite:configuration transform Web app to use Vite should transform w
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"outputs": ["{options.outputFile}"],
|
"outputs": ["{options.outputFile}"],
|
||||||
"options": {
|
"options": {
|
||||||
"lintFilePatterns": ["apps/my-test-web-app/**/*.ts"]
|
"lintFilePatterns": ["apps/my-test-web-app/**/*.ts"]
|
||||||
|
|||||||
@ -67,7 +67,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"outputs": ["{options.outputFile}"],
|
"outputs": ["{options.outputFile}"],
|
||||||
"options": {
|
"options": {
|
||||||
"lintFilePatterns": [
|
"lintFilePatterns": [
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
"projectType": "library",
|
"projectType": "library",
|
||||||
"targets": {
|
"targets": {
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"outputs": ["{options.outputFile}"],
|
"outputs": ["{options.outputFile}"],
|
||||||
"options": {
|
"options": {
|
||||||
"lintFilePatterns": ["libs/react-lib-nonb-jest/**/*.{ts,tsx,js,jsx}"]
|
"lintFilePatterns": ["libs/react-lib-nonb-jest/**/*.{ts,tsx,js,jsx}"]
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
"projectType": "library",
|
"projectType": "library",
|
||||||
"targets": {
|
"targets": {
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"outputs": ["{options.outputFile}"],
|
"outputs": ["{options.outputFile}"],
|
||||||
"options": {
|
"options": {
|
||||||
"lintFilePatterns": ["libs/react-lib-nonb-vitest/**/*.{ts,tsx,js,jsx}"]
|
"lintFilePatterns": ["libs/react-lib-nonb-vitest/**/*.{ts,tsx,js,jsx}"]
|
||||||
|
|||||||
@ -31,7 +31,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"outputs": ["{options.outputFile}"],
|
"outputs": ["{options.outputFile}"],
|
||||||
"options": {
|
"options": {
|
||||||
"lintFilePatterns": [
|
"lintFilePatterns": [
|
||||||
|
|||||||
@ -66,7 +66,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"outputs": ["{options.outputFile}"],
|
"outputs": ["{options.outputFile}"],
|
||||||
"options": {
|
"options": {
|
||||||
"lintFilePatterns": ["apps/my-test-react-app/**/*.{ts,tsx,js,jsx}"]
|
"lintFilePatterns": ["apps/my-test-react-app/**/*.{ts,tsx,js,jsx}"]
|
||||||
|
|||||||
@ -54,7 +54,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"executor": "@nx/linter:eslint",
|
"executor": "@nx/eslint:lint",
|
||||||
"outputs": ["{options.outputFile}"],
|
"outputs": ["{options.outputFile}"],
|
||||||
"options": {
|
"options": {
|
||||||
"lintFilePatterns": ["apps/my-test-web-app/**/*.ts"]
|
"lintFilePatterns": ["apps/my-test-web-app/**/*.ts"]
|
||||||
|
|||||||
@ -139,13 +139,8 @@ export function findPackageMetadataList(
|
|||||||
? null
|
? null
|
||||||
: {
|
: {
|
||||||
githubRoot: 'https://github.com/nrwl/nx/blob/master',
|
githubRoot: 'https://github.com/nrwl/nx/blob/master',
|
||||||
// TODO(v17): Remove this replace
|
name: folderName,
|
||||||
name: folderName === 'eslint' ? 'linter' : folderName,
|
packageName: packageJson.name,
|
||||||
// TODO(v17): Remove this replace
|
|
||||||
packageName:
|
|
||||||
packageJson.name === '@nx/eslint'
|
|
||||||
? '@nx/linter'
|
|
||||||
: packageJson.name,
|
|
||||||
description: packageJson.description,
|
description: packageJson.description,
|
||||||
root: relativeFolderPath,
|
root: relativeFolderPath,
|
||||||
source: join(relativeFolderPath, '/src'),
|
source: join(relativeFolderPath, '/src'),
|
||||||
@ -157,7 +152,7 @@ export function findPackageMetadataList(
|
|||||||
content: readFileSync(
|
content: readFileSync(
|
||||||
join('docs', item.file + '.md'),
|
join('docs', item.file + '.md'),
|
||||||
'utf8'
|
'utf8'
|
||||||
).replace('@nx/eslint', '@nx/linter'),
|
),
|
||||||
}))
|
}))
|
||||||
: [],
|
: [],
|
||||||
generators: getSchemaList(
|
generators: getSchemaList(
|
||||||
@ -177,14 +172,7 @@ export function findPackageMetadataList(
|
|||||||
},
|
},
|
||||||
'executors.json',
|
'executors.json',
|
||||||
['executors', 'builders']
|
['executors', 'builders']
|
||||||
)
|
),
|
||||||
// TODO(v17): Remove this remapping
|
|
||||||
.map((schema) => {
|
|
||||||
if (folderName === 'eslint' && schema.name === 'lint') {
|
|
||||||
schema.name = 'eslint';
|
|
||||||
}
|
|
||||||
return schema;
|
|
||||||
}),
|
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
.filter(Boolean);
|
.filter(Boolean);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user