Skip to content

Commit

Permalink
build: restore failing. (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
morganney authored Jun 15, 2024
1 parent 14d7b82 commit 41f14e2
Show file tree
Hide file tree
Showing 6 changed files with 67 additions and 73 deletions.
10 changes: 8 additions & 2 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import nodePlugin from 'eslint-plugin-n'
export default tseslint.config(
eslint.configs.recommended,
nodePlugin.configs['flat/recommended'],
...tseslint.configs.recommended,
...tseslint.configs.strictTypeChecked,
{
languageOptions: {
parserOptions: {
project: './tsconfig.meta.json',
project: './tsconfig.json',
},
},
rules: {
Expand Down Expand Up @@ -57,6 +57,12 @@ export default tseslint.config(
],
},
},
{
files: ['test/*'],
rules: {
'@typescript-eslint/no-floating-promises': 'off',
},
},
{
ignores: ['dist', 'coverage', 'eslint.config.js'],
},
Expand Down
98 changes: 49 additions & 49 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
"engineStrict": true,
"scripts": {
"prettier": "prettier -w .",
"lint": "eslint --ignore-pattern dist .",
"lint:fix": "eslint --ignore-pattern dist --fix .",
"lint": "eslint .",
"lint:fix": "eslint --fix .",
"build": "duel --dirs",
"test": "c8 --reporter=text --reporter=text-summary --reporter=lcov tsx --test --test-reporter=spec test/*.ts",
"prepack": "npm run build"
Expand Down Expand Up @@ -77,7 +77,7 @@
"prettier": "^3.3.0",
"tsx": "^4.12.0",
"typescript": "^5.4.5",
"typescript-eslint": "^8.0.0-alpha.28"
"typescript-eslint": "^8.0.0-alpha.30"
},
"dependencies": {
"acorn-walk": "^8.3.2"
Expand Down
16 changes: 6 additions & 10 deletions src/baseVisitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,24 +71,20 @@ export class BaseVisitor<T> implements Required<RecursiveVisitors<T>> {
CallExpression<S>(n: swc.CallExpression, st: S, cb: Callback<S>) {
cb(n.callee, st)

if (n.arguments) {
for (const arg of n.arguments) {
cb(arg.expression, st)
}
for (const arg of n.arguments) {
cb(arg.expression, st)
}

if (n.typeArguments) {
cb(n.typeArguments, st)
}
}
CatchClause<S>(n: swc.CatchClause, st: S, cb: Callback<S>) {
if (n) {
if (n.param) {
cb(n.param, st)
}

cb(n.body, st)
if (n.param) {
cb(n.param, st)
}

cb(n.body, st)
}
ClassDeclaration<S>(_n: swc.ClassDeclaration, _st: S, _cb: Callback<S>) {
// not implemented
Expand Down
3 changes: 1 addition & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@
"outDir": "dist",
"target": "ESNext"
},
"references": [{ "path": "./tsconfig.meta.json" }],
"include": ["src"]
"include": ["src", "test", "eslint.config.js"]
}
7 changes: 0 additions & 7 deletions tsconfig.meta.json

This file was deleted.

0 comments on commit 41f14e2

Please sign in to comment.