Skip to content

Commit

Permalink
Update eslint and all other configs (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
katydecorah authored May 26, 2024
1 parent b2859eb commit 8071ecc
Show file tree
Hide file tree
Showing 7 changed files with 685 additions and 1,027 deletions.
11 changes: 0 additions & 11 deletions .eslintrc.cjs

This file was deleted.

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"
]
}
17 changes: 17 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// @ts-check

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: ["__tests__/**"],
...jest.configs["flat/recommended"],
}
);
1,654 changes: 654 additions & 1,000 deletions package-lock.json

Large diffs are not rendered by default.

17 changes: 8 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,25 @@
"scripts": {
"pretest": "npm run lint",
"test": "jest --coverage",
"lint": "eslint src/**/*.ts",
"lint": "eslint .",
"pretty-quick": "pretty-quick",
"build": "ncc build src/index.ts"
},
"author": "Katy DeCorah",
"license": "ISC",
"devDependencies": {
"@babel/preset-env": "^7.24.3",
"@babel/preset-typescript": "^7.24.1",
"@babel/preset-env": "^7.24.6",
"@babel/preset-typescript": "^7.24.6",
"@eslint/js": "^9.3.0",
"@types/jest": "^29.5.12",
"@types/js-yaml": "^4.0.9",
"@types/node": "^20.11.30",
"@typescript-eslint/eslint-plugin": "^7.4.0",
"@typescript-eslint/parser": "^7.4.0",
"@types/node": "^20.12.12",
"@vercel/ncc": "^0.38.1",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-jest": "^27.9.0",
"eslint-plugin-jest": "^28.5.0",
"jest": "^29.7.0",
"typescript": "^5.4.3"
"typescript": "^5.4.5",
"typescript-eslint": "^7.10.0"
},
"dependencies": {
"@actions/core": "^1.10.1",
Expand Down
1 change: 0 additions & 1 deletion src/write-file.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { writeFile, readFile } from "fs/promises";
import { Playlist } from ".";
import { load, dump } from "js-yaml";
import { setFailed } from "@actions/core";

export default async function updateMain(data: Playlist, filename: string) {
try {
Expand Down

0 comments on commit 8071ecc

Please sign in to comment.