@metamask/eslint-config-typescript
Advanced tools
Comparing version 9.0.1 to 10.0.0
@@ -9,2 +9,21 @@ # Changelog | ||
## [10.0.0] | ||
### Changed | ||
- **(BREAKING)** Update ESLint from v7 to v8 ([#233](https://github.com/MetaMask/eslint-config/pull/233)) | ||
- This is breaking because `eslint` is a `peerDependency`. | ||
- Four new rules have been added: | ||
- [`no-loss-of-precision`](https://eslint.org/docs/latest/rules/no-loss-of-precision) | ||
- [`no-nonoctal-decimal-escape`](https://eslint.org/docs/latest/rules/no-nonoctal-decimal-escape) | ||
- [`no-unsafe-optional-chaining`](https://eslint.org/docs/latest/rules/no-unsafe-optional-chaining) | ||
- [`no-useless-backreference`](https://eslint.org/docs/latest/rules/no-useless-backreference) | ||
- **(BREAKING)** Update `@typescript-eslint` parser and plugin ([#230](https://github.com/MetaMask/eslint-config/pull/230)) | ||
- This is breaking because these two packages are `peerDependencies` | ||
- There are two new rules: | ||
- [`@typescript-eslint/no-loss-of-precision`](https://typescript-eslint.io/rules/no-loss-of-precision) | ||
- [`@typescript-eslint/no-unnecessary-type-constraint`](https://typescript-eslint.io/rules/no-unnecessary-type-constraint). | ||
- **(BREAKING)** Update minimium Node.js version to v14 ([#225](https://github.com/MetaMask/eslint-config/pull/225)) | ||
- **(BREAKING)** Forbid TypeScript interfaces ([#216](https://github.com/MetaMask/eslint-config/pull/216)) | ||
- Ignore rest siblings for `no-unused-vars` ([#213](https://github.com/MetaMask/eslint-config/pull/213)) | ||
- This makes the `no-unused-vars` rule more permissive | ||
## [9.0.1] | ||
@@ -25,2 +44,4 @@ ### Changed | ||
## [8.0.0] | ||
### Changed | ||
- ***BREAKING*** The peer dependency `@metamask/eslint-config` has been updated from v7 to v8. | ||
@@ -60,3 +81,4 @@ ## [7.0.1] | ||
[Unreleased]: https://github.com/MetaMask/eslint-config/compare/v9.0.1...HEAD | ||
[Unreleased]: https://github.com/MetaMask/eslint-config/compare/v10.0.0...HEAD | ||
[10.0.0]: https://github.com/MetaMask/eslint-config/compare/v9.0.1...v10.0.0 | ||
[9.0.1]: https://github.com/MetaMask/eslint-config/compare/v9.0.0...v9.0.1 | ||
@@ -63,0 +85,0 @@ [9.0.0]: https://github.com/MetaMask/eslint-config/compare/v8.0.0...v9.0.0 |
{ | ||
"name": "@metamask/eslint-config-typescript", | ||
"version": "9.0.1", | ||
"version": "10.0.0", | ||
"description": "Shareable MetaMask ESLint config for TypeScript.", | ||
@@ -14,3 +14,3 @@ "main": "src/index.js", | ||
"engines": { | ||
"node": ">=12.0.0" | ||
"node": ">=14.0.0" | ||
}, | ||
@@ -31,15 +31,20 @@ "scripts": { | ||
"devDependencies": { | ||
"@metamask/eslint-config": "^9.0.0", | ||
"@typescript-eslint/eslint-plugin": "^4.20.0", | ||
"@typescript-eslint/parser": "^4.20.0", | ||
"eslint": "^7.23.0", | ||
"@metamask/eslint-config": "^10.0.0", | ||
"@typescript-eslint/eslint-plugin": "^5.33.0", | ||
"@typescript-eslint/parser": "^5.33.0", | ||
"eslint": "^8.21.0", | ||
"eslint-config-prettier": "^8.1.0", | ||
"eslint-plugin-import": "^2.26.0", | ||
"eslint-plugin-jsdoc": "^39.2.9", | ||
"eslint-plugin-prettier": "^4.2.1", | ||
"prettier": "^2.2.1", | ||
"typescript": "^4.0.7" | ||
}, | ||
"peerDependencies": { | ||
"@metamask/eslint-config": "^9.0.0", | ||
"@typescript-eslint/eslint-plugin": "^4.20.0", | ||
"@typescript-eslint/parser": "^4.20.0", | ||
"eslint": "^7.23.0", | ||
"@metamask/eslint-config": "^10.0.0", | ||
"@typescript-eslint/eslint-plugin": "^5.33.0", | ||
"@typescript-eslint/parser": "^5.33.0", | ||
"eslint": "^8.21.0", | ||
"typescript": "^4.0.7" | ||
} | ||
} |
@@ -11,8 +11,8 @@ # `@metamask/eslint-config-typescript` | ||
@metamask/eslint-config-typescript@^9.0.1 \ | ||
@typescript-eslint/eslint-plugin@^4.20.0 \ | ||
@typescript-eslint/parser@^4.20.0 \ | ||
@typescript-eslint/eslint-plugin@^5.33.0 \ | ||
@typescript-eslint/parser@^5.33.0 \ | ||
eslint@^7.23.0 \ | ||
eslint-config-prettier@^8.1.0 \ | ||
eslint-plugin-import@^2.22.1 \ | ||
eslint-plugin-jsdoc@^36.1.0 \ | ||
eslint-plugin-jsdoc@^39.2.9 \ | ||
eslint-plugin-prettier@^3.3.1 \ | ||
@@ -19,0 +19,0 @@ prettier@^2.2.1 |
@@ -37,4 +37,3 @@ module.exports = { | ||
'@typescript-eslint/consistent-type-assertions': 'error', | ||
'@typescript-eslint/consistent-type-definitions': 'error', | ||
'@typescript-eslint/explicit-module-boundary-types': 'off', | ||
'@typescript-eslint/consistent-type-definitions': ['error', 'type'], | ||
'@typescript-eslint/no-explicit-any': 'off', | ||
@@ -55,3 +54,8 @@ '@typescript-eslint/no-namespace': [ | ||
'error', | ||
{ vars: 'all', args: 'all', argsIgnorePattern: '[_]+' }, | ||
{ | ||
vars: 'all', | ||
args: 'all', | ||
argsIgnorePattern: '[_]+', | ||
ignoreRestSiblings: true, | ||
}, | ||
], | ||
@@ -58,0 +62,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12406
81
10