Skip to content

Commit

Permalink
include .ts files in eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
nasa42 committed Nov 10, 2024
1 parent 1617d55 commit 0fde273
Show file tree
Hide file tree
Showing 3 changed files with 118 additions and 7 deletions.
9 changes: 6 additions & 3 deletions frontend/eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
import eslintPluginAstro from "eslint-plugin-astro";
import tsEsLint from "typescript-eslint";

export default [
// add more generic rule sets here, such as:
// js.configs.recommended,
...eslintPluginAstro.configs.recommended,
{
ignores: ["src/generated/flatbuffers_schema/"],
},
...tsEsLint.configs.recommended,
...eslintPluginAstro.configs["flat/recommended"],
{
rules: {
// override/add rules settings here, such as:
Expand Down
112 changes: 110 additions & 2 deletions frontend/package-lock.json

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

4 changes: 2 additions & 2 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@
},
"devDependencies": {
"@types/lodash": "^4.17.13",
"@typescript-eslint/parser": "^8.13.0",
"eslint": "^9.14.0",
"eslint-plugin-astro": "^1.3.1",
"prettier": "^3.3.3",
"prettier-plugin-astro": "^0.14.1",
"sass": "^1.80.6"
"sass": "^1.80.6",
"typescript-eslint": "^8.13.0"
}
}

0 comments on commit 0fde273

Please sign in to comment.