-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update dependencies, replace tslint with eslint, migrate to pnpm (#259)
* chore: remove unused dependencies * chore: upgrade ts to 5.5.0 * fix dtslint errors * use `typescript-eslint` and `eslint-plugin-expect-type` instead of `dtslint`, `tslint` * migrate to pnpm * chore: add comment about eslint-plugin-expect-type * chore: rm tslint from vscode extension recommendations
- Loading branch information
1 parent
5a93dc1
commit 89807e5
Showing
20 changed files
with
1,599 additions
and
6,630 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
{ | ||
"recommendations": ["ms-vscode.vscode-typescript-tslint-plugin", "EditorConfig.EditorConfig", "esbenp.prettier-vscode"] | ||
"recommendations": [ | ||
"EditorConfig.EditorConfig", | ||
"esbenp.prettier-vscode", | ||
"dbaeumer.vscode-eslint" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
{ | ||
"editor.formatOnSave": true, | ||
"editor.insertSpaces": true, | ||
"editor.tabSize": 4, | ||
"editor.rulers": [140], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"rules": { | ||
"@definitelytyped/no-any-union": "off", | ||
"@definitelytyped/no-unnecessary-generics": "off", | ||
"@typescript-eslint/no-empty-interface": "off", | ||
"@typescript-eslint/no-misused-new": "off" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// @ts-check | ||
import tseslint, { parser } from 'typescript-eslint'; | ||
import expectType from "eslint-plugin-expect-type/configs/recommended"; | ||
|
||
export const sharedOpts = tseslint.config( | ||
tseslint.configs.base, | ||
expectType, | ||
// global ignore | ||
{ ignores: ["build/*", "eslint.config.*"], }, | ||
); | ||
|
||
export default tseslint.config( | ||
...sharedOpts, | ||
{ files: ['src/**/*.ts', 'dist/screeps-tests.ts'], }, | ||
{ | ||
languageOptions: { | ||
ecmaVersion: 2022, | ||
sourceType: "module", | ||
parserOptions: { | ||
parser: parser, | ||
project: ["./tsconfig.json", './dist/tsconfig.json'], | ||
}, | ||
}, | ||
}, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// @ts-check | ||
// only used for 'dist/screeps-tests.ts' | ||
import tseslint, { parser } from 'typescript-eslint'; | ||
import { sharedOpts } from "./eslint.config.mjs"; | ||
|
||
export default tseslint.config( | ||
...sharedOpts, | ||
{ files: ['dist/screeps-tests.ts'], }, | ||
{ | ||
languageOptions: { | ||
ecmaVersion: 2022, | ||
sourceType: "module", | ||
parserOptions: { | ||
parser: parser, | ||
project: ['./dist/tsconfig.json'], | ||
}, | ||
}, | ||
}, | ||
) |
Oops, something went wrong.