@nrwl/linter 14.5.7 → 14.6.0-beta.4

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,6 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- ## [14.5.7](https://github.com/nrwl/nx/compare/14.5.6...14.5.7) (2022-08-17)
6
+ # [14.6.0-beta.4](https://github.com/nrwl/nx/compare/14.5.6...14.6.0-beta.4) (2022-08-18)
7
7
 
8
8
  **Note:** Version bump only for package @nrwl/linter
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nrwl/linter",
3
- "version": "14.5.7",
3
+ "version": "14.6.0-beta.4",
4
4
  "description": "The Linter plugin contains executors, generator, plugin and utilities used for linting JavaScript/TypeScript projects within an Nx workspace.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -33,10 +33,10 @@
33
33
  "eslint": "^8.0.0"
34
34
  },
35
35
  "dependencies": {
36
- "@nrwl/devkit": "14.5.7",
37
- "@nrwl/jest": "14.5.7",
36
+ "@nrwl/devkit": "14.6.0-beta.4",
37
+ "@nrwl/jest": "14.6.0-beta.4",
38
38
  "@phenomnomnominal/tsquery": "4.1.1",
39
- "nx": "14.5.7",
39
+ "nx": "14.6.0-beta.4",
40
40
  "tmp": "~0.2.1",
41
41
  "tslib": "^2.3.0"
42
42
  },
@@ -45,5 +45,5 @@
45
45
  "optional": true
46
46
  }
47
47
  },
48
- "gitHead": "f8085d094993a3999b41dca787ecfef0f2be7b83"
48
+ "gitHead": "971bcbe32c4d42ffe4093daa8508f24726240a0c"
49
49
  }
@@ -2,6 +2,7 @@ import type { GeneratorCallback, Tree } from '@nrwl/devkit';
2
2
  import { Linter } from '../utils/linter';
3
3
  export interface LinterInitOptions {
4
4
  linter?: Linter;
5
+ unitTestRunner?: string;
5
6
  skipPackageJson?: boolean;
6
7
  }
7
8
  export declare function lintInitGenerator(tree: Tree, options: LinterInitOptions): GeneratorCallback;
@@ -67,64 +67,76 @@ const globalTsLintConfiguration = {
67
67
  ],
68
68
  },
69
69
  };
70
- const globalEsLintConfiguration = {
71
- root: true,
72
- ignorePatterns: ['**/*'],
73
- plugins: ['@nrwl/nx'],
74
- /**
75
- * We leverage ESLint's "overrides" capability so that we can set up a root config which will support
76
- * all permutations of Nx workspaces across all frameworks, libraries and tools.
77
- *
78
- * The key point is that we need entirely different ESLint config to apply to different types of files,
79
- * but we still want to share common config where possible.
80
- */
81
- overrides: [
70
+ const getGlobalEsLintConfiguration = (unitTestRunner) => {
71
+ const config = {
72
+ root: true,
73
+ ignorePatterns: ['**/*'],
74
+ plugins: ['@nrwl/nx'],
82
75
  /**
83
- * This configuration is intended to apply to all "source code" (but not
84
- * markup like HTML, or other custom file types like GraphQL)
76
+ * We leverage ESLint's "overrides" capability so that we can set up a root config which will support
77
+ * all permutations of Nx workspaces across all frameworks, libraries and tools.
78
+ *
79
+ * The key point is that we need entirely different ESLint config to apply to different types of files,
80
+ * but we still want to share common config where possible.
85
81
  */
86
- {
87
- files: ['*.ts', '*.tsx', '*.js', '*.jsx'],
88
- rules: {
89
- '@nrwl/nx/enforce-module-boundaries': [
90
- 'error',
91
- {
92
- enforceBuildableLibDependency: true,
93
- allow: [],
94
- depConstraints: [
95
- { sourceTag: '*', onlyDependOnLibsWithTags: ['*'] },
96
- ],
97
- },
98
- ],
82
+ overrides: [
83
+ /**
84
+ * This configuration is intended to apply to all "source code" (but not
85
+ * markup like HTML, or other custom file types like GraphQL)
86
+ */
87
+ {
88
+ files: ['*.ts', '*.tsx', '*.js', '*.jsx'],
89
+ rules: {
90
+ '@nrwl/nx/enforce-module-boundaries': [
91
+ 'error',
92
+ {
93
+ enforceBuildableLibDependency: true,
94
+ allow: [],
95
+ depConstraints: [
96
+ { sourceTag: '*', onlyDependOnLibsWithTags: ['*'] },
97
+ ],
98
+ },
99
+ ],
100
+ },
99
101
  },
100
- },
101
- /**
102
- * This configuration is intended to apply to all TypeScript source files.
103
- * See the eslint-plugin-nx package for what is in the referenced shareable config.
104
- */
105
- {
106
- files: ['*.ts', '*.tsx'],
107
- extends: ['plugin:@nrwl/nx/typescript'],
108
102
  /**
109
- * Having an empty rules object present makes it more obvious to the user where they would
110
- * extend things from if they needed to
103
+ * This configuration is intended to apply to all TypeScript source files.
104
+ * See the eslint-plugin-nx package for what is in the referenced shareable config.
111
105
  */
112
- rules: {},
113
- },
114
- /**
115
- * This configuration is intended to apply to all JavaScript source files.
116
- * See the eslint-plugin-nx package for what is in the referenced shareable config.
117
- */
118
- {
119
- files: ['*.js', '*.jsx'],
120
- extends: ['plugin:@nrwl/nx/javascript'],
106
+ {
107
+ files: ['*.ts', '*.tsx'],
108
+ extends: ['plugin:@nrwl/nx/typescript'],
109
+ /**
110
+ * Having an empty rules object present makes it more obvious to the user where they would
111
+ * extend things from if they needed to
112
+ */
113
+ rules: {},
114
+ },
121
115
  /**
122
- * Having an empty rules object present makes it more obvious to the user where they would
123
- * extend things from if they needed to
116
+ * This configuration is intended to apply to all JavaScript source files.
117
+ * See the eslint-plugin-nx package for what is in the referenced shareable config.
124
118
  */
119
+ {
120
+ files: ['*.js', '*.jsx'],
121
+ extends: ['plugin:@nrwl/nx/javascript'],
122
+ /**
123
+ * Having an empty rules object present makes it more obvious to the user where they would
124
+ * extend things from if they needed to
125
+ */
126
+ rules: {},
127
+ },
128
+ ],
129
+ };
130
+ if (unitTestRunner === 'jest') {
131
+ config.overrides.push({
132
+ files: ['*.spec.ts', '*.spec.tsx', '*.spec.js', '*.spec.jsx'],
133
+ env: {
134
+ jest: true,
135
+ },
125
136
  rules: {},
126
- },
127
- ],
137
+ });
138
+ }
139
+ return config;
128
140
  };
129
141
  function initTsLint(tree, options) {
130
142
  if (tree.exists('/tslint.json')) {
@@ -145,7 +157,7 @@ function initEsLint(tree, options) {
145
157
  if (!options.skipPackageJson) {
146
158
  (0, devkit_1.removeDependenciesFromPackageJson)(tree, ['@nrwl/linter'], []);
147
159
  }
148
- (0, devkit_1.writeJson)(tree, '.eslintrc.json', globalEsLintConfiguration);
160
+ (0, devkit_1.writeJson)(tree, '.eslintrc.json', getGlobalEsLintConfiguration(options.unitTestRunner));
149
161
  if (tree.exists('.vscode/extensions.json')) {
150
162
  (0, devkit_1.updateJson)(tree, '.vscode/extensions.json', (json) => {
151
163
  json.recommendations || (json.recommendations = []);
@@ -1 +1 @@
1
- {"version":3,"file":"init.js","sourceRoot":"","sources":["../../../../../../packages/linter/src/generators/init/init.ts"],"names":[],"mappings":";;;AACA,yCAKsB;AACtB,mDAO8B;AAE9B,4CAAyC;AACzC,sDAAsD;AAOtD,MAAM,yBAAyB,GAAG;IAChC,cAAc,EAAE,CAAC,yCAAyC,CAAC;IAC3D,aAAa,EAAE;QACb,OAAO,EAAE,CAAC,MAAM,CAAC;KAClB;IACD,KAAK,EAAE;QACL,wBAAwB,EAAE,IAAI;QAC9B,gBAAgB,EAAE,IAAI;QACtB,YAAY,EAAE,IAAI;QAClB,WAAW,EAAE;YACX,QAAQ,EAAE,MAAM;SACjB;QACD,KAAK,EAAE,IAAI;QACX,kBAAkB,EAAE,CAAC,IAAI,EAAE,SAAS,CAAC;QACrC,6BAA6B,EAAE,IAAI;QACnC,eAAe,EAAE,KAAK;QACtB,iBAAiB,EAAE;YACjB,IAAI;YACJ;gBACE,KAAK,EAAE;oBACL,cAAc;oBACd,gBAAgB;oBAChB,eAAe;oBACf,iBAAiB;iBAClB;aACF;SACF;QACD,QAAQ,EAAE,IAAI;QACd,YAAY,EAAE,IAAI;QAClB,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,CAAC;QACjE,cAAc,EAAE,IAAI;QACpB,aAAa,EAAE,IAAI;QACnB,oBAAoB,EAAE,IAAI;QAC1B,UAAU,EAAE,KAAK;QACjB,oBAAoB,EAAE,IAAI;QAC1B,SAAS,EAAE,IAAI;QACf,qBAAqB,EAAE,CAAC,IAAI,EAAE,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I,CAAC,IAAI,CAAC,eAAe,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE;gBAC7C,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;aACtC;YACD,OAAO,IAAI,CAAC;QACd,CAAC,CAAC,CAAC;KACJ;IAED,OAAO,CAAC,OAAO,CAAC,eAAe;QAC7B,CAAC,CAAC,IAAA,qCAA4B,EAC1B,IAAI,EACJ,EAAE,EACF;YACE,cAAc,EAAE,oBAAS;YACzB,wBAAwB,EAAE,oBAAS;YACnC,2BAA2B,EAAE,kCAAuB;YACpD,kCAAkC,EAAE,kCAAuB;YAC3D,MAAM,EAAE,wBAAa;YACrB,wBAAwB,EAAE,sCAA2B;SACtD,CACF;QACH,CAAC,CAAC,GAAG,EAAE,GAAE,CAAC,CAAC;AACf,CAAC;AAED,SAAgB,iBAAiB,CAAC,IAAU,EAAE,OAA0B;IACtE,IAAI,CAAC,OAAO,CAAC,MAAM,IAAI,OAAO,CAAC,MAAM,KAAK,eAAM,CAAC,MAAM,EAAE;QACvD,OAAO,UAAU,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;KAClC;SAAM,IAAI,OAAO,CAAC,MAAM,KAAK,eAAM,CAAC,MAAM,EAAE;QAC3C,OAAO,UAAU,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;KAClC;AACH,CAAC;AAND,8CAMC"}
1
+ {"version":3,"file":"init.js","sourceRoot":"","sources":["../../../../../../packages/linter/src/generators/init/init.ts"],"names":[],"mappings":";;;AACA,yCAKsB;AACtB,mDAO8B;AAE9B,4CAAyC;AACzC,sDAAsD;AAStD,MAAM,yBAAyB,GAAG;IAChC,cAAc,EAAE,CAAC,yCAAyC,CAAC;IAC3D,aAAa,EAAE;QACb,OAAO,EAAE,CAAC,MAAM,CAAC;KAClB;IACD,KAAK,EAAE;QACL,wBAAwB,EAAE,IAAI;QAC9B,gBAAgB,EAAE,IAAI;QACtB,YAAY,EAAE,IAAI;QAClB,WAAW,E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AC,IAAA,qCAA4B,EAC1B,IAAI,EACJ,EAAE,EACF;YACE,cAAc,EAAE,oBAAS;YACzB,wBAAwB,EAAE,oBAAS;YACnC,2BAA2B,EAAE,kCAAuB;YACpD,kCAAkC,EAAE,kCAAuB;YAC3D,MAAM,EAAE,wBAAa;YACrB,wBAAwB,EAAE,sCAA2B;SACtD,CACF;QACH,CAAC,CAAC,GAAG,EAAE,GAAE,CAAC,CAAC;AACf,CAAC;AAED,SAAgB,iBAAiB,CAAC,IAAU,EAAE,OAA0B;IACtE,IAAI,CAAC,OAAO,CAAC,MAAM,IAAI,OAAO,CAAC,MAAM,KAAK,eAAM,CAAC,MAAM,EAAE;QACvD,OAAO,UAAU,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;KAClC;SAAM,IAAI,OAAO,CAAC,MAAM,KAAK,eAAM,CAAC,MAAM,EAAE;QAC3C,OAAO,UAAU,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;KAClC;AACH,CAAC;AAND,8CAMC"}
@@ -8,6 +8,7 @@ interface LintProjectOptions {
8
8
  skipFormat: boolean;
9
9
  setParserOptionsProject?: boolean;
10
10
  skipPackageJson?: boolean;
11
+ unitTestRunner?: string;
11
12
  }
12
13
  export declare function lintProjectGenerator(tree: Tree, options: LintProjectOptions): Promise<import("@nrwl/devkit").GeneratorCallback>;
13
14
  export {};
@@ -64,6 +64,7 @@ function lintProjectGenerator(tree, options) {
64
64
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
65
65
  const installTask = (0, init_1.lintInitGenerator)(tree, {
66
66
  linter: options.linter,
67
+ unitTestRunner: options.unitTestRunner,
67
68
  skipPackageJson: options.skipPackageJson,
68
69
  });
69
70
  const projectConfig = (0, devkit_1.readProjectConfiguration)(tree, options.project);
@@ -1 +1 @@
1
- {"version":3,"file":"lint-project.js","sourceRoot":"","sources":["../../../../../../packages/linter/src/generators/lint-project/lint-project.ts"],"names":[],"mappings":";;;;AACA,yCAMsB;AAEtB,4CAAyC;AACzC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ED,SAAsB,oBAAoB,CACxC,IAAU,EACV,OAA2B;;QAE3B,MAAM,WAAW,GAAG,IAAA,wBAAiB,EAAC,IAAI,EAAE;YAC1C,MAAM,EAAE,OAAO,CAAC,MAAM;YACtB,eAAe,EAAE,OAAO,CAAC,eAAe;SACzC,CAAC,CAAC;QACH,MAAM,aAAa,GAAG,IAAA,iCAAwB,EAAC,IAAI,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;QAEtE,IAAI,OAAO,CAAC,MAAM,KAAK,eAAM,CAAC,MAAM,EAAE;YACpC,aAAa,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG;gBAC9B,QAAQ,EAAE,qBAAqB;gBAC/B,OAAO,EAAE,CAAC,sBAAsB,CAAC;gBACjC,OAAO,EAAE;oBACP,gBAAgB,EAAE,OAAO,CAAC,kBAAkB;iBAC7C;aACF,CAAC;YACF,yBAAyB,CACvB,IAAI,EACJ,aAAa,EACb,OAAO,CAAC,uBAAuB,CAChC,CAAC;SACH;aAAM;YACL,aAAa,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG;gBAC9B,QAAQ,EAAE,sCAAsC;gBAChD,OAAO,EAAE;oBACP,QAAQ,EAAE,OAAO,CAAC,aAAa;oBAC/B,OAAO,EAAE,CAAC,oBAAoB,EAAE,IAAI,aAAa,CAAC,IAAI,OAAO,CAAC;iBAC/D;aACF,CAAC;YACF,yBAAyB,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC;SAChD;QAED,IAAA,mCAA0B,EAAC,IAAI,EAAE,OAAO,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC;QAEjE,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE;YACvB,MAAM,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;SACzB;QAED,OAAO,WAAW,CAAC;IACrB,CAAC;CAAA;AAzCD,oDAyCC"}
1
+ {"version":3,"file":"lint-project.js","sourceRoot":"","sources":["../../../../../../packages/linter/src/generators/lint-project/lint-project.ts"],"names":[],"m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