Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
sonnyp committed Dec 12, 2024
1 parent d351ffa commit 4a70094
Show file tree
Hide file tree
Showing 15 changed files with 1,049 additions and 6,692 deletions.
4 changes: 0 additions & 4 deletions .eslintignore

This file was deleted.

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

This file was deleted.

16 changes: 6 additions & 10 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,16 @@ jobs:
- 14.x
- 16.x
- 18.x
- 20.x
- 22.x
steps:
- uses: actions/checkout@v2

- uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
node-version: ${{ matrix.node }}
cache: "npm"

- run: npm install
- run: npm test
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
node_modules/
.eslintcache
lib/
!lib/package.json
bundle.js
dist/
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
3 changes: 0 additions & 3 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm test
6 changes: 3 additions & 3 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
benchmarks/
test/

eslint.config.js
.github
.husky
.editorconfig
.gitignore
.npmignore
.travis.yml

CONTRIBUTING.md
7 changes: 0 additions & 7 deletions benchmarks/.eslintrc.cjs

This file was deleted.

49 changes: 49 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
import js from "@eslint/js";
import eslintConfigPrettier from "eslint-config-prettier";
import globals from "globals";

export default [
{
ignores: ["lib"],
},
js.configs.recommended,
eslintConfigPrettier,
{

languageOptions: {
globals: {
...globals["shared-node-browser"],
},
},

rules: {
strict: ["error", "global"],
"no-empty": ["error", { allowEmptyCatch: true }],
"func-names": ["error", "always"],
"operator-linebreak": [
"error",
"after",
{ overrides: { "?": "before", ":": "before" } },
],
"capitalized-comments": ["off"],
"func-style": ["error", "declaration"],

// ECMAScript 6
// https://eslint.org/docs/rules/#ecmascript-6
"no-var": ["error"],
"prefer-arrow-callback": ["error"],
"prefer-const": ["error"],
"prefer-destructuring": [
"error",
{
array: false,
object: true,
},
],
"prefer-rest-params": ["error"],
"prefer-spread": ["error"],
// Potentially slower
// "prefer-template": ["error"],
},
},
];
Loading

0 comments on commit 4a70094

Please sign in to comment.