@nx/eslint-plugin 19.8.1 → 19.8.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/eslint-plugin",
3
- "version": "19.8.1",
3
+ "version": "19.8.3",
4
4
  "private": false,
5
5
  "description": "The 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 an Nx-specific lint rule called enforce-module-boundaries.",
6
6
  "repository": {
@@ -35,8 +35,8 @@
35
35
  },
36
36
  "dependencies": {
37
37
  "@eslint/compat": "^1.1.1",
38
- "@nx/devkit": "19.8.1",
39
- "@nx/js": "19.8.1",
38
+ "@nx/devkit": "19.8.3",
39
+ "@nx/js": "19.8.3",
40
40
  "@typescript-eslint/type-utils": "^8.0.0",
41
41
  "@typescript-eslint/utils": "^8.0.0",
42
42
  "chalk": "^4.1.0",
@@ -45,7 +45,7 @@
45
45
  "jsonc-eslint-parser": "^2.1.0",
46
46
  "semver": "^7.5.3",
47
47
  "tslib": "^2.3.0",
48
- "@nrwl/eslint-plugin-nx": "19.8.1"
48
+ "@nrwl/eslint-plugin-nx": "19.8.3"
49
49
  },
50
50
  "publishConfig": {
51
51
  "access": "public"
@@ -15,7 +15,14 @@ const typescript_eslint_1 = tslib_1.__importDefault(require("typescript-eslint")
15
15
  * This configuration is intended to be combined with other configs from this
16
16
  * package.
17
17
  */
18
- exports.default = typescript_eslint_1.default.config(...angular_eslint_1.default.configs.tsRecommended, {
18
+ exports.default = typescript_eslint_1.default.config(...angular_eslint_1.default.configs.tsRecommended.map((c) => ({
19
+ // Files need to be specified or else typescript-eslint rules will be
20
+ // applied to non-TS files. For example, buildable/publishable libs
21
+ // add rules to *.json files, and TS rules should not apply to them.
22
+ // See: https://github.com/nrwl/nx/issues/28069
23
+ files: ['**/*.ts'],
24
+ ...c,
25
+ })), {
19
26
  languageOptions: {
20
27
  globals: {
21
28
  ...globals_1.default.browser,