Skip to content

Commit

Permalink
Merge pull request #2 from mahabubx7/1-fix-eslint-ci
Browse files Browse the repository at this point in the history
fix(lint): added missing eslint
  • Loading branch information
mahabubx7 authored Oct 14, 2024
2 parents 80d08ed + 32e4e2a commit 12ef72a
Show file tree
Hide file tree
Showing 4 changed files with 1,128 additions and 93 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: "14"
node-version: "20"

- name: Install dependencies
run: npm install
Expand Down
18 changes: 18 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import pluginJs from "@eslint/js"
import globals from "globals"
import tseslint from "typescript-eslint"

export default [
{ files: ["**/*.{js,mjs,cjs,ts}"] },
{ ignores: ["node_modules/", "dist/", "docs/", "playground/", "coverage/"] },
{ languageOptions: { globals: { ...globals.browser, ...globals.node } } },
pluginJs.configs.recommended,
...tseslint.configs.recommended,
{
rules: {
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": "off",
"no-control-regex": "off"
}
}
]
Loading

0 comments on commit 12ef72a

Please sign in to comment.