|
49 | 49 | } |
50 | 50 | ], |
51 | 51 | "sharedGlobals": [ |
52 | | - { "runtime": "node -e \"console.log(require('os').platform())\"" }, |
53 | | - { "runtime": "node -v" }, |
54 | | - { "runtime": "npm -v" } |
| 52 | + { |
| 53 | + "runtime": "node -e \"console.log(require('os').platform())\"" |
| 54 | + }, |
| 55 | + { |
| 56 | + "runtime": "node -v" |
| 57 | + }, |
| 58 | + { |
| 59 | + "runtime": "npm -v" |
| 60 | + } |
55 | 61 | ] |
56 | 62 | }, |
57 | 63 | "targetDefaults": { |
| 64 | + "lint": { |
| 65 | + "dependsOn": ["eslint-formatter-multi:build"], |
| 66 | + "inputs": ["lint-eslint-inputs"], |
| 67 | + "outputs": ["{projectRoot}/.eslint/**/*"], |
| 68 | + "cache": true, |
| 69 | + "options": { |
| 70 | + "max-warnings": 0, |
| 71 | + "error-on-unmatched-pattern": false, |
| 72 | + "//": "replace the formatter path with the released package @code-pushup/eslint-formatter-multi when available", |
| 73 | + "//": "this will make the formatter resolve in any target.", |
| 74 | + "format": "./tools/eslint-formatter-multi/dist/src/index.js", |
| 75 | + "cwd": "{workspaceRoot}" |
| 76 | + } |
| 77 | + }, |
58 | 78 | "build": { |
59 | 79 | "dependsOn": ["^build"], |
60 | 80 | "inputs": ["production", "^production"], |
|
95 | 115 | "inputs": ["default"], |
96 | 116 | "cache": true |
97 | 117 | }, |
98 | | - "lint": { |
99 | | - "inputs": ["lint-eslint-inputs"], |
100 | | - "executor": "@nx/eslint:lint", |
101 | | - "cache": true, |
102 | | - "options": { |
103 | | - "errorOnUnmatchedPattern": false, |
104 | | - "maxWarnings": 0, |
105 | | - "lintFilePatterns": [ |
106 | | - "{projectRoot}/**/*.ts", |
107 | | - "{projectRoot}/package.json" |
108 | | - ] |
109 | | - } |
110 | | - }, |
111 | | - "lint-report": { |
112 | | - "dependsOn": ["eslint-formatter-multi:build"], |
113 | | - "inputs": ["lint-eslint-inputs"], |
114 | | - "outputs": ["{projectRoot}/.eslint"], |
115 | | - "executor": "nx:run-commands", |
116 | | - "options": { |
117 | | - "command": "nx run {projectName}:lint --format=./tools/eslint-formatter-multi/dist/src/index.js", |
118 | | - "env": { |
119 | | - "ESLINT_FORMATTER_CONFIG": "{\"outputDir\":\"{projectRoot}/.eslint\"}" |
120 | | - } |
121 | | - } |
122 | | - }, |
123 | 118 | "nxv-pkg-install": { |
124 | 119 | "parallelism": false |
125 | 120 | }, |
|
330 | 325 | "releaseTagPattern": "v{version}" |
331 | 326 | }, |
332 | 327 | "plugins": [ |
| 328 | + { |
| 329 | + "plugin": "@nx/eslint/plugin", |
| 330 | + "options": { |
| 331 | + "targetName": "lint" |
| 332 | + } |
| 333 | + }, |
333 | 334 | { |
334 | 335 | "plugin": "@push-based/nx-verdaccio", |
335 | 336 | "options": { |
|
344 | 345 | "filterByTags": ["publishable"] |
345 | 346 | } |
346 | 347 | } |
| 348 | + }, |
| 349 | + { |
| 350 | + "plugin": "@nx/eslint/plugin", |
| 351 | + "options": { |
| 352 | + "targetName": "lint" |
| 353 | + } |
347 | 354 | } |
348 | 355 | ], |
349 | 356 | "nxCloudId": "65d4d862d2adb16a45a4bc7c" |
|
0 commit comments