@metamask/eslint-config-typescript
Advanced tools
Comparing version 11.1.0 to 12.0.0
@@ -9,2 +9,12 @@ # Changelog | ||
## [12.0.0] | ||
### Added | ||
- **BREAKING:** Add rule to enforce generic parameters have a length of at least 3 characters ([#292](https://github.com/MetaMask/eslint-config/pull/292)) | ||
- **BREAKING:** Enable `@typescript-eslint/consistent-type-imports` rule ([#284](https://github.com/MetaMask/eslint-config/pull/284)) | ||
- **BREAKING:** Enable `@typescript-eslint/prefer-enum-initializers` rule ([#269](https://github.com/MetaMask/eslint-config/pull/269)) | ||
### Changed | ||
- **BREAKING:** Update peer dependency `@metamask/eslint-config` to v12 | ||
- Disable naming convention for properties that require quotes ([#293](https://github.com/MetaMask/eslint-config/pull/293)) | ||
## [11.1.0] | ||
@@ -97,3 +107,4 @@ ### Changed | ||
[Unreleased]: https://github.com/MetaMask/eslint-config/compare/v11.1.0...HEAD | ||
[Unreleased]: https://github.com/MetaMask/eslint-config/compare/v12.0.0...HEAD | ||
[12.0.0]: https://github.com/MetaMask/eslint-config/compare/v11.1.0...v12.0.0 | ||
[11.1.0]: https://github.com/MetaMask/eslint-config/compare/v11.0.2...v11.1.0 | ||
@@ -100,0 +111,0 @@ [11.0.2]: https://github.com/MetaMask/eslint-config/compare/v11.0.0...v11.0.2 |
{ | ||
"name": "@metamask/eslint-config-typescript", | ||
"version": "11.1.0", | ||
"version": "12.0.0", | ||
"description": "Shareable MetaMask ESLint config for TypeScript.", | ||
@@ -27,3 +27,3 @@ "homepage": "https://github.com/MetaMask/eslint-config#readme", | ||
"@metamask/auto-changelog": "^3.0.0", | ||
"@metamask/eslint-config": "^11.0.0", | ||
"@metamask/eslint-config": "^12.0.0", | ||
"@typescript-eslint/eslint-plugin": "^5.42.1", | ||
@@ -40,3 +40,3 @@ "@typescript-eslint/parser": "^5.42.1", | ||
"peerDependencies": { | ||
"@metamask/eslint-config": "^11.0.0", | ||
"@metamask/eslint-config": "^12.0.0", | ||
"@typescript-eslint/eslint-plugin": "^5.42.1", | ||
@@ -43,0 +43,0 @@ "@typescript-eslint/parser": "^5.42.1", |
@@ -9,4 +9,4 @@ # `@metamask/eslint-config-typescript` | ||
yarn add --dev \ | ||
@metamask/eslint-config@^11.0.1 \ | ||
@metamask/eslint-config-typescript@^11.0.0 \ | ||
@metamask/eslint-config@^12.0.0 \ | ||
@metamask/eslint-config-typescript@^12.0.0 \ | ||
@typescript-eslint/eslint-plugin@^5.42.1 \ | ||
@@ -19,2 +19,3 @@ @typescript-eslint/parser@^5.42.1 \ | ||
eslint-plugin-prettier@^4.2.1 \ | ||
eslint-plugin-promise@^6.1.1 \ | ||
prettier@^2.7.1 | ||
@@ -21,0 +22,0 @@ ``` |
@@ -45,2 +45,3 @@ module.exports = { | ||
'@typescript-eslint/consistent-type-definitions': ['error', 'type'], | ||
'@typescript-eslint/consistent-type-imports': 'error', | ||
'@typescript-eslint/no-explicit-any': 'off', | ||
@@ -114,2 +115,10 @@ '@typescript-eslint/no-namespace': [ | ||
{ | ||
selector: 'typeParameter', | ||
format: ['PascalCase'], | ||
custom: { | ||
regex: '^.{3,}', | ||
match: true, | ||
}, | ||
}, | ||
{ | ||
selector: 'variable', | ||
@@ -124,2 +133,16 @@ format: ['camelCase', 'UPPER_CASE', 'PascalCase'], | ||
}, | ||
{ | ||
selector: [ | ||
'classProperty', | ||
'objectLiteralProperty', | ||
'typeProperty', | ||
'classMethod', | ||
'objectLiteralMethod', | ||
'typeMethod', | ||
'accessor', | ||
'enumMember', | ||
], | ||
format: null, | ||
modifiers: ['requiresQuotes'], | ||
}, | ||
], | ||
@@ -130,2 +153,3 @@ '@typescript-eslint/no-meaningless-void-operator': 'error', | ||
'@typescript-eslint/no-unnecessary-type-arguments': 'error', | ||
'@typescript-eslint/prefer-enum-initializers': 'error', | ||
'@typescript-eslint/prefer-includes': 'error', | ||
@@ -132,0 +156,0 @@ '@typescript-eslint/prefer-nullish-coalescing': 'error', |
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
18309
191
52