Skip to content

Commit

Permalink
Add linter
Browse files Browse the repository at this point in the history
  • Loading branch information
umgefahren committed Nov 5, 2024
1 parent 31d055c commit 7770de6
Show file tree
Hide file tree
Showing 7 changed files with 1,172 additions and 27 deletions.
11 changes: 11 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import globals from 'globals'
import pluginJs from '@eslint/js'
import tseslint from 'typescript-eslint'

/** @type {import('eslint').Linter.Config[]} */
export default [
{ files: ['**/*.{js,mjs,cjs,ts}'] },
{ languageOptions: { globals: globals.browser } },
pluginJs.configs.recommended,
...tseslint.configs.recommended,
]
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,19 @@
"start": "wrangler dev",
"test": "vitest",
"cf-typegen": "wrangler types",
"format": "prettier --write ."
"format": "prettier --write .",
"lint": "eslint .",
"ts-check": "tsc --noEmit"
},
"devDependencies": {
"@cloudflare/vitest-pool-workers": "^0.5.2",
"@cloudflare/workers-types": "^4.20241022.0",
"@eslint/js": "^9.14.0",
"eslint": "^9.14.0",
"globals": "^15.12.0",
"prettier": "3.3.3",
"typescript": "^5.5.2",
"typescript-eslint": "^8.13.0",
"vitest": "2.0.5",
"wrangler": "^3.60.3"
},
Expand Down
Loading

0 comments on commit 7770de6

Please sign in to comment.