Skip to content

Commit

Permalink
chore: configure eslint with ts [skip actions]
Browse files Browse the repository at this point in the history
  • Loading branch information
davidenke committed Oct 25, 2024
1 parent 155f8a8 commit 5aacf8c
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ junit.xml

.vscode/*
!.vscode/extensions.json
!.vscode/settings.json
.idea
*.suo
*.ntvs*
Expand Down
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"eslint.options": {
"flags": ["unstable_ts_config"]
}
}
2 changes: 0 additions & 2 deletions eslint.config.js → eslint.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// @ts-check

import eslintJs from '@eslint/js';
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
import eslintSimpleImportSort from 'eslint-plugin-simple-import-sort';
Expand Down
11 changes: 11 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
},
"type": "module",
"scripts": {
"lint": "eslint",
"lint": "eslint --flag unstable_ts_config",
"test": "cross-env NODE_OPTIONS=\"--experimental-vm-modules\" NODE_NO_WARNINGS=1 jest",
"dev": "vite dev",
"build:lib": "tsc -p tsconfig.lib.json",
Expand Down Expand Up @@ -59,6 +59,7 @@
"highlight.js": "11.10.0",
"jest": "29.7.0",
"jest-junit": "16.0.0",
"jiti": "2.3.3",
"npm-run-all": "4.1.5",
"prettier": "3.3.3",
"simple-icons": "13.14.1",
Expand Down

0 comments on commit 5aacf8c

Please sign in to comment.