Skip to content

Commit

Permalink
Add eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
amberstarlight committed May 24, 2024
1 parent 4bbc84c commit 1348bcc
Show file tree
Hide file tree
Showing 6 changed files with 499 additions and 101 deletions.
348 changes: 291 additions & 57 deletions .pnp.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ repos:
rev: "v4.0.0-alpha.8"
hooks:
- id: prettier
files: '\.(c?js.?|ts.?)$'
files: '\.(m?js.?|c?js.?|ts.?)$'

- repo: https://github.com/gitleaks/gitleaks
rev: v8.18.2
Expand Down
Binary file modified .yarn/install-state.gz
Binary file not shown.
17 changes: 17 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import globals from "globals";
import pluginJs from "@eslint/js";
import tseslint from "typescript-eslint";

export default [
{
files: ["packages/*.*"],
languageOptions: {
globals: { ...globals.browser, ...globals.node },
},
},
pluginJs.configs.recommended,
...tseslint.configs.recommended,
{
ignores: [".pnp.*"],
},
];
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,13 @@
},
"packageManager": "yarn@4.2.2",
"devDependencies": {
"@eslint/js": "^9.3.0",
"@types/node": "^20.12.7",
"eslint": "^9.1.1",
"eslint": "9.x",
"globals": "^15.3.0",
"prettier": "^3.2.5",
"ts-node": "^10.9.2",
"typescript": "^5.4.5"
"typescript": "^5.4.5",
"typescript-eslint": "^7.10.0"
}
}
Loading

0 comments on commit 1348bcc

Please sign in to comment.