Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ jobs:
working-directory: ./src
run: npm install --no-audit --no-fund

- name: Run linting
working-directory: ./src
run: npm run lint

- name: Run type check
working-directory: ./src
run: npm run type-check

- name: Run test suite
working-directory: ./src
run: npm test
Expand Down
33 changes: 33 additions & 0 deletions src/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import js from "@eslint/js";
import globals from "globals";

export default [
js.configs.recommended,
{
files: ["**/*.js"],
languageOptions: {
ecmaVersion: 2022,
sourceType: "commonjs",
globals: {
...globals.node,
...globals.es2022,
},
},
rules: {
"no-var": "error",
"prefer-const": "warn",
"eqeqeq": ["error", "always"],
"no-unused-vars": ["warn", { "argsIgnorePattern": "^_" }],
"no-console": "off",
"no-undef": "error",
},
},
{
files: ["test/**/*.js"],
languageOptions: {
globals: {
...globals.node,
},
},
},
];
Loading
Loading