@nx/eslint-plugin 20.0.0 → 20.0.2

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": "20.0.0",
3
+ "version": "20.0.2",
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": "20.0.0",
39
- "@nx/js": "20.0.0",
38
+ "@nx/devkit": "20.0.2",
39
+ "@nx/js": "20.0.2",
40
40
  "@typescript-eslint/type-utils": "^8.0.0",
41
41
  "@typescript-eslint/utils": "^8.0.0",
42
42
  "chalk": "^4.1.0",
@@ -22,7 +22,10 @@ const isPrettierAvailable = (0, config_utils_1.packageExists)('prettier') && (0,
22
22
  * breaking changes - we should also look to replace all the @typescript-eslint
23
23
  * related plugins and rules below.
24
24
  */
25
- exports.default = typescript_eslint_1.default.config(js_1.default.configs.recommended, ...typescript_eslint_1.default.configs.recommended, ...(isPrettierAvailable ? [require('eslint-config-prettier')] : []), {
25
+ exports.default = typescript_eslint_1.default.config({
26
+ files: ['**/*.js', '**/*.jsx'],
27
+ extends: [js_1.default.configs.recommended, ...typescript_eslint_1.default.configs.recommended],
28
+ }, ...(isPrettierAvailable ? [require('eslint-config-prettier')] : []), {
26
29
  languageOptions: {
27
30
  parser: typescript_eslint_1.default.parser,
28
31
  ecmaVersion: 2020,
@@ -13,7 +13,10 @@ const isPrettierAvailable = (0, config_utils_1.packageExists)('prettier') && (0,
13
13
  * It should therefore NOT contain any rules or plugins which are specific
14
14
  * to one ecosystem, such as React, Angular, Node etc.
15
15
  */
16
- exports.default = typescript_eslint_1.default.config(js_1.default.configs.recommended, ...typescript_eslint_1.default.configs.recommended, ...(isPrettierAvailable ? [require('eslint-config-prettier')] : []), {
16
+ exports.default = typescript_eslint_1.default.config({
17
+ files: ['**/*.ts', '**/*.tsx'],
18
+ extends: [js_1.default.configs.recommended, ...typescript_eslint_1.default.configs.recommended],
19
+ }, ...(isPrettierAvailable ? [require('eslint-config-prettier')] : []), {
17
20
  plugins: { '@typescript-eslint': typescript_eslint_1.default.plugin },
18
21
  languageOptions: {
19
22
  parser: typescript_eslint_1.default.parser,