Skip to content
This repository has been archived by the owner on Nov 23, 2022. It is now read-only.

Commit

Permalink
feat(core): add @typescript-eslint/consistent-generic-constructors
Browse files Browse the repository at this point in the history
BREAKING CHANGE: generic type declarations now have to specified in a certain way
  • Loading branch information
vuki656 committed Jul 7, 2022
1 parent 44e2f47 commit 2720f04
Show file tree
Hide file tree
Showing 3 changed files with 149 additions and 10 deletions.
6 changes: 4 additions & 2 deletions core.js
Expand Up @@ -45,6 +45,10 @@ module.exports = {
},
],
'@typescript-eslint/comma-spacing': 'error',
'@typescript-eslint/consistent-generic-constructors': [
'error',
'constructor',
],
'@typescript-eslint/consistent-indexed-object-style': 'error',
'@typescript-eslint/consistent-type-imports': [
'error',
Expand Down Expand Up @@ -75,7 +79,6 @@ module.exports = {
],
'@typescript-eslint/no-confusing-non-null-assertion': 'error',
'@typescript-eslint/no-confusing-void-expression': 'error',
'@typescript-eslint/no-duplicate-imports': 'error',
'@typescript-eslint/no-empty-function': 'warn',
'@typescript-eslint/no-empty-interface': [
'error',
Expand Down Expand Up @@ -265,7 +268,6 @@ module.exports = {
'no-dupe-else-if': 'error',
'no-dupe-keys': 'error',
'no-duplicate-case': 'error',
'no-duplicate-imports': 'off',
'no-empty': 'error',
'no-empty-function': 'off',
'no-empty-pattern': 'error',
Expand Down
6 changes: 3 additions & 3 deletions package.json
Expand Up @@ -36,9 +36,9 @@
"eslint": "^8"
},
"dependencies": {
"@rimac-technology/eslint-plugin": "^1.0.1",
"@typescript-eslint/eslint-plugin": "^5.14.0",
"@typescript-eslint/parser": "^5.14.0",
"@rimac-technology/eslint-plugin": "^1.0.2",
"@typescript-eslint/eslint-plugin": "^5.30.5",
"@typescript-eslint/parser": "^5.30.5",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-etc": "^2.0.2",
"eslint-plugin-import": "^2.25.4",
Expand Down
147 changes: 142 additions & 5 deletions yarn.lock
Expand Up @@ -1406,15 +1406,15 @@ __metadata:
"@commitlint/cli": ^16.2.1
"@commitlint/config-conventional": ^16.2.1
"@rimac-technology/eslint-config": ^22.2.3
"@rimac-technology/eslint-plugin": ^1.0.1
"@rimac-technology/eslint-plugin": ^1.0.2
"@semantic-release/changelog": ^6.0.1
"@semantic-release/commit-analyzer": ^9.0.2
"@semantic-release/git": ^10.0.1
"@semantic-release/github": ^8.0.4
"@semantic-release/npm": ^9.0.1
"@semantic-release/release-notes-generator": ^10.0.3
"@typescript-eslint/eslint-plugin": ^5.14.0
"@typescript-eslint/parser": ^5.14.0
"@typescript-eslint/eslint-plugin": ^5.30.5
"@typescript-eslint/parser": ^5.30.5
commitizen: ^4.2.4
conventional-changelog-conventionalcommits: ^4.6.3
eslint: ^8.14.0
Expand Down Expand Up @@ -1459,6 +1459,15 @@ __metadata:
languageName: node
linkType: hard

"@rimac-technology/eslint-plugin@npm:^1.0.2":
version: 1.0.2
resolution: "@rimac-technology/eslint-plugin@npm:1.0.2"
dependencies:
"@typescript-eslint/types": ^5.19.0
checksum: 1f264ff627e76eb85a30ceef399bbc3e33815706c2046898fd7095ed47756d84a5b752b925308691f2bdbfa3db5013649c3d21f54073553a63b051cdd7950d44
languageName: node
linkType: hard

"@semantic-release/changelog@npm:^6.0.1":
version: 6.0.1
resolution: "@semantic-release/changelog@npm:6.0.1"
Expand Down Expand Up @@ -1870,6 +1879,29 @@ __metadata:
languageName: node
linkType: hard

"@typescript-eslint/eslint-plugin@npm:^5.30.5":
version: 5.30.5
resolution: "@typescript-eslint/eslint-plugin@npm:5.30.5"
dependencies:
"@typescript-eslint/scope-manager": 5.30.5
"@typescript-eslint/type-utils": 5.30.5
"@typescript-eslint/utils": 5.30.5
debug: ^4.3.4
functional-red-black-tree: ^1.0.1
ignore: ^5.2.0
regexpp: ^3.2.0
semver: ^7.3.7
tsutils: ^3.21.0
peerDependencies:
"@typescript-eslint/parser": ^5.0.0
eslint: ^6.0.0 || ^7.0.0 || ^8.0.0
peerDependenciesMeta:
typescript:
optional: true
checksum: cf763fb091dcdfd6c25843251a220b654ca83968b17266e0f343771f489085c6afc4e41fcf2187b4c72c4d12a787070c64b5e5367069460f95a8174573f48905
languageName: node
linkType: hard

"@typescript-eslint/experimental-utils@npm:^5.0.0":
version: 5.2.0
resolution: "@typescript-eslint/experimental-utils@npm:5.2.0"
Expand Down Expand Up @@ -1914,6 +1946,23 @@ __metadata:
languageName: node
linkType: hard

"@typescript-eslint/parser@npm:^5.30.5":
version: 5.30.5
resolution: "@typescript-eslint/parser@npm:5.30.5"
dependencies:
"@typescript-eslint/scope-manager": 5.30.5
"@typescript-eslint/types": 5.30.5
"@typescript-eslint/typescript-estree": 5.30.5
debug: ^4.3.4
peerDependencies:
eslint: ^6.0.0 || ^7.0.0 || ^8.0.0
peerDependenciesMeta:
typescript:
optional: true
checksum: 6c16821e122b891420a538f200f6e576ad1167855a67e87f9a7d3a08c0513fe26006f6411b8ba6f4662a81526bd0339ae37c47dd88fa5943e6f27ff70da9f989
languageName: node
linkType: hard

"@typescript-eslint/scope-manager@npm:5.10.2":
version: 5.10.2
resolution: "@typescript-eslint/scope-manager@npm:5.10.2"
Expand Down Expand Up @@ -1944,6 +1993,16 @@ __metadata:
languageName: node
linkType: hard

"@typescript-eslint/scope-manager@npm:5.30.5":
version: 5.30.5
resolution: "@typescript-eslint/scope-manager@npm:5.30.5"
dependencies:
"@typescript-eslint/types": 5.30.5
"@typescript-eslint/visitor-keys": 5.30.5
checksum: 509bee6d62cca1716e8f4792d9180c189974992ba13d8103ca04423a64006cf184c4b2c606d55c776305458140c798a3a9a414d07a60790b83dd714f56c457b0
languageName: node
linkType: hard

"@typescript-eslint/type-utils@npm:5.14.0":
version: 5.14.0
resolution: "@typescript-eslint/type-utils@npm:5.14.0"
Expand All @@ -1960,6 +2019,22 @@ __metadata:
languageName: node
linkType: hard

"@typescript-eslint/type-utils@npm:5.30.5":
version: 5.30.5
resolution: "@typescript-eslint/type-utils@npm:5.30.5"
dependencies:
"@typescript-eslint/utils": 5.30.5
debug: ^4.3.4
tsutils: ^3.21.0
peerDependencies:
eslint: "*"
peerDependenciesMeta:
typescript:
optional: true
checksum: 080cc1231729c34b778395658374e32d034474056f9b777dbc89d20d15eb93d93d0959328ad47c2a6623d40c6552364ababadce439842a944bce001f55b731b3
languageName: node
linkType: hard

"@typescript-eslint/types@npm:5.10.2":
version: 5.10.2
resolution: "@typescript-eslint/types@npm:5.10.2"
Expand All @@ -1981,6 +2056,13 @@ __metadata:
languageName: node
linkType: hard

"@typescript-eslint/types@npm:5.30.5":
version: 5.30.5
resolution: "@typescript-eslint/types@npm:5.30.5"
checksum: c70420618cb875d4e964a20a3fa4cf40cb97a8ad3123e24860e3d829edf3b081c77fa1fe25644700499d27e44aee5783abc7765deee61e2ef59a928db96b2175
languageName: node
linkType: hard

"@typescript-eslint/types@npm:^5.19.0":
version: 5.19.0
resolution: "@typescript-eslint/types@npm:5.19.0"
Expand Down Expand Up @@ -2042,6 +2124,24 @@ __metadata:
languageName: node
linkType: hard

"@typescript-eslint/typescript-estree@npm:5.30.5":
version: 5.30.5
resolution: "@typescript-eslint/typescript-estree@npm:5.30.5"
dependencies:
"@typescript-eslint/types": 5.30.5
"@typescript-eslint/visitor-keys": 5.30.5
debug: ^4.3.4
globby: ^11.1.0
is-glob: ^4.0.3
semver: ^7.3.7
tsutils: ^3.21.0
peerDependenciesMeta:
typescript:
optional: true
checksum: 19dce426c826cddd4aadf2fa15be943c6ad7d2038685cc2665749486a5f44a47819aab5d260b54f8a4babf6acf2500e9f62e709d61fce337b12d5468ff285277
languageName: node
linkType: hard

"@typescript-eslint/utils@npm:5.10.2, @typescript-eslint/utils@npm:^5.10.0":
version: 5.10.2
resolution: "@typescript-eslint/utils@npm:5.10.2"
Expand Down Expand Up @@ -2074,6 +2174,22 @@ __metadata:
languageName: node
linkType: hard

"@typescript-eslint/utils@npm:5.30.5":
version: 5.30.5
resolution: "@typescript-eslint/utils@npm:5.30.5"
dependencies:
"@types/json-schema": ^7.0.9
"@typescript-eslint/scope-manager": 5.30.5
"@typescript-eslint/types": 5.30.5
"@typescript-eslint/typescript-estree": 5.30.5
eslint-scope: ^5.1.1
eslint-utils: ^3.0.0
peerDependencies:
eslint: ^6.0.0 || ^7.0.0 || ^8.0.0
checksum: 12f68cb34a150d39708f4e09a54964360f29589885cd50f119a2061660011752ec72eff3d90111f0e597575d32aae7250a6e2c730a84963e5e30352759d5f1f4
languageName: node
linkType: hard

"@typescript-eslint/visitor-keys@npm:5.10.2":
version: 5.10.2
resolution: "@typescript-eslint/visitor-keys@npm:5.10.2"
Expand Down Expand Up @@ -2104,6 +2220,16 @@ __metadata:
languageName: node
linkType: hard

"@typescript-eslint/visitor-keys@npm:5.30.5":
version: 5.30.5
resolution: "@typescript-eslint/visitor-keys@npm:5.30.5"
dependencies:
"@typescript-eslint/types": 5.30.5
eslint-visitor-keys: ^3.3.0
checksum: c0de9ae48378eec2682b860a059518bed213ea29575aad538d8d2f8137875e7279e375a7f23d38c1c183466fdd9cf1ca1db4ed5a1d374968f9460d83e48b2437
languageName: node
linkType: hard

"JSONStream@npm:^1.0.4":
version: 1.3.5
resolution: "JSONStream@npm:1.3.5"
Expand Down Expand Up @@ -3356,7 +3482,7 @@ __metadata:
languageName: node
linkType: hard

"debug@npm:^4.1.1, debug@npm:^4.3.3":
"debug@npm:^4.1.1, debug@npm:^4.3.3, debug@npm:^4.3.4":
version: 4.3.4
resolution: "debug@npm:4.3.4"
dependencies:
Expand Down Expand Up @@ -4894,7 +5020,7 @@ __metadata:
languageName: node
linkType: hard

"globby@npm:^11.0.0":
"globby@npm:^11.0.0, globby@npm:^11.1.0":
version: 11.1.0
resolution: "globby@npm:11.1.0"
dependencies:
Expand Down Expand Up @@ -8738,6 +8864,17 @@ resolve@^2.0.0-next.3:
languageName: node
linkType: hard

"semver@npm:^7.3.7":
version: 7.3.7
resolution: "semver@npm:7.3.7"
dependencies:
lru-cache: ^6.0.0
bin:
semver: bin/semver.js
checksum: 2fa3e877568cd6ce769c75c211beaed1f9fce80b28338cadd9d0b6c40f2e2862bafd62c19a6cff42f3d54292b7c623277bcab8816a2b5521cf15210d43e75232
languageName: node
linkType: hard

"set-blocking@npm:^2.0.0":
version: 2.0.0
resolution: "set-blocking@npm:2.0.0"
Expand Down

0 comments on commit 2720f04

Please sign in to comment.