Skip to content

Commit

Permalink
Update eslint and other configs; update devDependencies (#339)
Browse files Browse the repository at this point in the history
  • Loading branch information
katydecorah authored May 27, 2024
1 parent eabc08f commit 641bdb1
Show file tree
Hide file tree
Showing 8 changed files with 963 additions and 642 deletions.
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

14 changes: 0 additions & 14 deletions .eslintrc.cjs

This file was deleted.

2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"source.fixAll.eslint": "explicit"
},
"files.exclude": {
"**/.dist": true
Expand Down
6 changes: 0 additions & 6 deletions babel.config.cjs

This file was deleted.

6 changes: 6 additions & 0 deletions babel.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"presets": [
["@babel/preset-env", { "targets": { "node": "current" } }],
"@babel/preset-typescript"
]
}
15 changes: 15 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import eslint from "@eslint/js";
import tseslint from "typescript-eslint";
import jest from "eslint-plugin-jest";

export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
{
ignores: ["dist/*"],
},
{
files: ["src/__tests__/**"],
...jest.configs["flat/recommended"],
},
);
1,538 changes: 929 additions & 609 deletions package-lock.json

Large diffs are not rendered by default.

23 changes: 12 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"types": "dist/index.d.ts",
"type": "module",
"scripts": {
"lint": "eslint . --ext .js,.ts",
"lint": "eslint .",
"pretest": "npm run lint",
"test": "jest",
"write-docs": "tsc && node dist/docs.js",
Expand All @@ -29,18 +29,19 @@
"github-slugger": "^2.0.0"
},
"devDependencies": {
"@babel/preset-env": "^7.23.5",
"@babel/preset-typescript": "^7.23.3",
"@types/jest": "^29.5.10",
"@types/node": "^20.10.3",
"@typescript-eslint/eslint-plugin": "^6.13.2",
"@typescript-eslint/parser": "^6.13.2",
"eslint": "^8.55.0",
"eslint-config-prettier": "^9.1.0",
"@babel/preset-env": "^7.24.6",
"@babel/preset-typescript": "^7.24.6",
"@eslint/js": "^9.3.0",
"@types/eslint__js": "^8.42.3",
"@types/jest": "^29.5.12",
"@types/node": "^20.12.12",
"eslint": "^8.57.0",
"eslint-plugin-jest": "^28.5.0",
"jest": "^29.7.0",
"pinst": "^3.0.0",
"prettier": "^3.1.0",
"typescript": "^5.3.2"
"prettier": "^3.2.5",
"typescript": "^5.4.5",
"typescript-eslint": "^7.11.0"
},
"directories": {
"test": "tests"
Expand Down

0 comments on commit 641bdb1

Please sign in to comment.