Skip to content

Commit

Permalink
Upgrade dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
joeldenning committed Sep 23, 2024
1 parent fa6a22c commit b22fdc3
Show file tree
Hide file tree
Showing 17 changed files with 6,173 additions and 6,585 deletions.
45 changes: 0 additions & 45 deletions .eslintrc

This file was deleted.

18 changes: 9 additions & 9 deletions .github/workflows/build-test-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,20 @@ jobs:

steps:
- name: Checkout Repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
# check out full history
fetch-depth: 0

- name: Install Pnpm
uses: pnpm/action-setup@v2.0.1
uses: pnpm/action-setup@v4
with:
version: 8.8.0
version: 9.11.0

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18.x
node-version: 22
cache: pnpm

- name: Install dependencies
Expand Down Expand Up @@ -54,17 +54,17 @@ jobs:
if: ${{ github.ref == 'refs/heads/main' }}
steps:
- name: Checkout Repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install Pnpm
uses: pnpm/action-setup@v2.0.1
uses: pnpm/action-setup@v4
with:
version: 8.8.0
version: 9.11.0

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x
node-version: 22
cache: pnpm

- name: Install dependencies
Expand Down
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

pnpm exec concurrently pnpm:lint "pretty-quick --staged"
pnpm run test --coverage --watchAll=false

67 changes: 67 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
import es5 from "eslint-plugin-es5";
import babelParser from "@babel/eslint-parser";
import path from "node:path";
import { fileURLToPath } from "node:url";
import js from "@eslint/js";
import { FlatCompat } from "@eslint/eslintrc";

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all,
});

export default [
...compat.extends("important-stuff"),
{
plugins: {
es5,
},

languageOptions: {
parser: babelParser,
},

rules: {
"es5/no-es6-methods": "error",
"es5/no-es6-static-methods": "error",
"es5/no-binary-and-octal-literals": "error",
"es5/no-classes": "off",
"es5/no-for-of": "off",
"es5/no-generators": "error",
"es5/no-object-super": "error",
"es5/no-typeof-symbol": "error",
"es5/no-unicode-code-point-escape": "error",
"es5/no-unicode-regex": "error",
"es5/no-computed-properties": "off",
"es5/no-destructuring": "off",
"es5/no-default-parameters": "off",
"es5/no-spread": "off",
"es5/no-modules": "off",
"es5/no-exponentiation-operator": "off",
"es5/no-block-scoping": "off",
"es5/no-arrow-functions": "off",
"es5/no-shorthand-properties": "off",
"es5/no-rest-parameters": "off",
"es5/no-template-literals": "off",
},
},
{
files: ["src/server/**/*"],

rules: {
"es5/no-es6-methods": "off",
"es5/no-es6-static-methods": "off",
"es5/no-binary-and-octal-literals": "off",
"es5/no-classes": "off",
"es5/no-for-of": "off",
"es5/no-generators": "off",
"es5/no-object-super": "off",
"es5/no-typeof-symbol": "off",
"es5/no-unicode-code-point-escape": "off",
"es5/no-unicode-regex": "off",
},
},
];
58 changes: 30 additions & 28 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"test": "jest",
"lint": "eslint src",
"prepublishOnly": "pnpm run build",
"prepare": "husky install",
"prepare": "husky",
"changeset": "changeset",
"release": "changeset publish"
},
Expand All @@ -38,41 +38,43 @@
"dist"
],
"devDependencies": {
"@babel/core": "^7.14.8",
"@babel/eslint-parser": "^7.14.7",
"@babel/plugin-proposal-class-properties": "^7.14.5",
"@babel/plugin-transform-react-jsx": "^7.14.5",
"@babel/preset-env": "^7.14.8",
"@changesets/changelog-github": "^0.4.8",
"@changesets/cli": "^2.26.2",
"@rollup/plugin-babel": "^5.3.0",
"@rollup/plugin-node-resolve": "^13.0.2",
"@testing-library/jest-dom": "^6.0.0",
"babel-jest": "^29.6.2",
"concurrently": "^6.2.0",
"@babel/core": "^7.25.2",
"@babel/eslint-parser": "^7.25.1",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-transform-react-jsx": "^7.25.2",
"@babel/preset-env": "^7.25.4",
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.27.8",
"@eslint/eslintrc": "^3.1.0",
"@eslint/js": "^9.11.1",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-node-resolve": "^15.3.0",
"@testing-library/jest-dom": "^6.5.0",
"babel-jest": "^29.7.0",
"concurrently": "^9.0.1",
"copyfiles": "^2.4.1",
"cross-env": "^7.0.3",
"eslint": "^7.31.0",
"eslint": "^9.11.0",
"eslint-config-important-stuff": "^1.1.0",
"eslint-plugin-es5": "^1.5.0",
"husky": "^7.0.1",
"jest": "^29.5.0",
"jest-cli": "^29.5.0",
"jest-environment-jsdom": "^29.5.0",
"husky": "^9.1.6",
"jest": "^29.7.0",
"jest-cli": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"jest-fetch-mock": "^3.0.3",
"postcss": "^8.3.5",
"preact": "^10.5.14",
"prettier": "^2.3.2",
"pretty-quick": "^3.1.1",
"regenerator-runtime": "^0.13.11",
"rimraf": "^3.0.2",
"rollup": "^2.53.2",
"rollup-plugin-postcss": "^4.0.0",
"postcss": "^8.4.47",
"preact": "^10.24.0",
"prettier": "^3.3.3",
"pretty-quick": "^4.0.0",
"regenerator-runtime": "^0.14.1",
"rimraf": "^6.0.1",
"rollup": "^4.22.4",
"rollup-plugin-postcss": "^4.0.2",
"rollup-plugin-terser": "^7.0.2",
"serve": "^14.2.1"
"serve": "^14.2.3"
},
"dependencies": {
"cookie": "^0.4.1"
"cookie": "^0.6.0"
},
"packageManager": "[email protected]"
}
Loading

0 comments on commit b22fdc3

Please sign in to comment.