-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(deps): bump ESLint deps, switch from ts-node -> swc #6339
Changes from all commits
eef269b
89b3260
eccad85
904c1d2
4585fde
9492eb0
8642308
2ca36cd
4edf09a
1930c51
940ff7b
8c29e31
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"test": ".*.ts$", | ||
"jsc": { | ||
"parser": { | ||
"syntax": "typescript" | ||
} | ||
}, | ||
"module": { | ||
"type": "nodenext" | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,18 +9,19 @@ | |
"lint": "run-p lint:es", | ||
"lint:es": "es-lint", | ||
"lint-fix": "es-lint --fix", | ||
"test": "mocha" | ||
"test": "SWC_NODE_PROJECT=./tsconfig.test.json mocha --require @swc-node/register --watch-extensions ts,tsx 'test/**/*.{ts,tsx}'" | ||
}, | ||
"dependencies": { | ||
"@typescript-eslint/utils": "^5.55.0", | ||
"eslint": "^8.36.0" | ||
"@typescript-eslint/utils": "^6.5.0", | ||
"eslint": "^8.48.0" | ||
}, | ||
"devDependencies": { | ||
"@blueprintjs/node-build-scripts": "^8.0.1", | ||
"@swc/core": "^1.3.80", | ||
"@swc-node/register": "^1.6.7", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this seems to work better than ts-node and is more modern. got the suggestion from typescript-eslint/typescript-eslint#7284 (comment) |
||
"@types/dedent": "~0.7.0", | ||
"dedent": "^0.7.0", | ||
"mocha": "^10.2.0", | ||
"ts-node": "^10.9.1", | ||
"typescript": "~4.9.5" | ||
}, | ||
"repository": { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
"compilerOptions": { | ||
"lib": ["es6", "dom"], | ||
"module": "commonjs", | ||
"moduleResolution": "node16", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this change was required to work with typescript-eslint v6, see typescript-eslint/typescript-eslint#7284 |
||
"outDir": "../lib", | ||
"target": "ES2015" | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,19 @@ | ||
{ | ||
"extends": "ts-node/node16/tsconfig.json", | ||
"compilerOptions": { | ||
"esModuleInterop": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"moduleResolution": "nodenext", | ||
"lib": ["es2021"], | ||
"module": "commonjs", | ||
"noEmit": true, | ||
"noFallthroughCasesInSwitch": true, | ||
"noImplicitAny": true, | ||
"noImplicitReturns": true, | ||
"noUnusedLocals": true, | ||
"noUnusedParameters": true, | ||
"pretty": true, | ||
"strict": true | ||
"skipLibCheck": true, | ||
"strict": true, | ||
"target": "es2021" | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see docs: https://github.com/swc-project/swc-node/tree/9f674cd67091192b1fe62befd13cf4b61a6377e5/packages/register#mocha