Skip to content

Commit

Permalink
Upgrade repo
Browse files Browse the repository at this point in the history
  • Loading branch information
lydell committed Aug 17, 2024
1 parent 18ad5c9 commit 307372b
Show file tree
Hide file tree
Showing 9 changed files with 1,779 additions and 1,947 deletions.
5 changes: 0 additions & 5 deletions .eslintignore

This file was deleted.

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

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node-version: [20.x]
node-version: [22.x]

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
node-version: [18.x, 20.x]
node-version: [18.x, 20.x, 22.x]

steps:
- uses: actions/checkout@v4
Expand Down
53 changes: 53 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
import js from "@eslint/js";
import vitest from "@vitest/eslint-plugin";

export default [
{
ignores: [
"build",
"coverage",
"test/fixtures",
"benchmark.input.js",
"test.*",
],
},
{
plugins: {
vitest,
},
rules: {
...js.recommended,
...vitest.configs.recommended.rules,
"arrow-body-style": "error",
curly: "error",
"dot-notation": "error",
eqeqeq: ["error", "always", { null: "ignore" }],
"no-shadow": "error",
"no-restricted-syntax": [
"error",
{
selector: "SequenceExpression",
message:
"The comma operator is confusing and a common mistake. Don’t use it!",
},
],
"no-var": "error",
"object-shorthand": "error",
"one-var": ["error", "never"],
"prefer-arrow-callback": "error",
"prefer-const": "error",
"prefer-destructuring": ["error", { object: true, array: false }],
"prefer-exponentiation-operator": "error",
"prefer-numeric-literals": "error",
"prefer-object-spread": "error",
"prefer-promise-reject-errors": "error",
"prefer-regex-literals": "error",
"prefer-rest-params": "error",
"prefer-spread": "error",
"prefer-template": "error",
"vitest/no-disabled-tests": "error",
"vitest/no-focused-tests": "error",
"vitest/valid-title": "off",
},
},
];
Loading

0 comments on commit 307372b

Please sign in to comment.