Skip to content

Commit

Permalink
chore: add basic ESLint config
Browse files Browse the repository at this point in the history
  • Loading branch information
michael1011 committed Nov 1, 2024
1 parent 8c40705 commit bf0e8f9
Show file tree
Hide file tree
Showing 91 changed files with 2,288 additions and 695 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:

- run: npm ci

- run: npm run lint

- run: npm run prettier:check

- run: npm run test
Expand Down
30 changes: 30 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import pluginJs from "@eslint/js";
import solid from "eslint-plugin-solid";
import globals from "globals";
import tseslint from "typescript-eslint";

/** @type {import('eslint').Linter.Config[]} */
export default [
{ files: ["**/*.{js,mjs,cjs,ts,tsx}"] },
{ languageOptions: { globals: globals.browser } },
{
ignores: [
"dist",
"coverage",
"node_modules",
"dnssec-prover",
"jest.config.js",
"babel.config.js",
"vite.config.mjs",
"src/utils/dnssec/dnssec_prover*",
],
},
pluginJs.configs.recommended,
...tseslint.configs.recommended,
solid.configs["flat/typescript"],
{
rules: {
"no-async-promise-executor": "off",
},
},
];
Loading

0 comments on commit bf0e8f9

Please sign in to comment.