Skip to content

Commit

Permalink
eslint ts conf
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdada committed Aug 9, 2024
1 parent 615c8f2 commit 41a03c4
Show file tree
Hide file tree
Showing 3 changed files with 274 additions and 11 deletions.
18 changes: 8 additions & 10 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import js from '@eslint/js'
// @ts-check

export default [
js.configs.recommended,
{
rules: {
'no-unused-vars': 'warn',
'no-undef': 'warn',
},
},
]
import eslint from '@eslint/js'
import tseslint from 'typescript-eslint'

export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
)
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"scripts": {
"src:dev": "vuepress dev src",
"src:build": "vuepress build src",
"lint": "eslint . ",
"prepare": "husky"
},
"devDependencies": {
Expand All @@ -17,6 +18,7 @@
},
"dependencies": {
"eslint": "^9.8.0",
"husky": "^9.1.4"
"husky": "^9.1.4",
"typescript-eslint": "^8.0.1"
}
}
Loading

0 comments on commit 41a03c4

Please sign in to comment.