Skip to content
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

feat: migrate to typescript #1567

Draft
wants to merge 20 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ test/auth/*

/chai.js
/chai.cjs
/lib
16 changes: 12 additions & 4 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import jsdoc from "eslint-plugin-jsdoc";
import {configs as tseslintConfigs} from 'typescript-eslint';
import eslintjs from "@eslint/js";

const {configs: eslintConfigs} = eslintjs;

export default [
jsdoc.configs["flat/recommended"],
eslintConfigs["recommended"],
...tseslintConfigs.recommended,
{
languageOptions: {
// if we ever use more globals than this, pull in the `globals` package
Expand All @@ -17,10 +19,16 @@ export default [
"jsdoc/require-param-description": "off",
"jsdoc/require-returns-description": "off",
"jsdoc/tag-lines": ["error", "any", { startLines: 1 }],
"no-unused-vars": ["error", {
argsIgnorePattern: "^_",
caughtErrorsIgnorePattern: "^_"
}]

// temporary until we do a cleanup
"no-var": "off",
"@typescript-eslint/no-unsafe-function-type": "off",
"prefer-rest-params": "off",
"@typescript-eslint/no-unused-expressions": "off",
"@typescript-eslint/no-unused-vars": ["error", {
"argsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_"
}],
},
},
];
1 change: 0 additions & 1 deletion index.js

This file was deleted.

180 changes: 0 additions & 180 deletions lib/chai/assertion.js

This file was deleted.

33 changes: 0 additions & 33 deletions lib/chai/utils/flag.js

This file was deleted.

Loading
Loading