Skip to content

Commit

Permalink
Use parserOptions.projectService
Browse files Browse the repository at this point in the history
  • Loading branch information
tamuratak committed Oct 21, 2024
1 parent f2acc06 commit 8d415bf
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 39 deletions.
20 changes: 10 additions & 10 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,12 @@ const commonRules = {
export default tseslint.config(
{
ignores: [
"eslint.config.mjs",
"src/lib/await-semaphore/",
"src/lib/synctexjs/",
"viewer/viewer.js",
"viewer/viewer.mjs",
"types/**/*.d.ts",
"data/",
"dev/",
"icons/",
Expand All @@ -110,16 +112,13 @@ export default tseslint.config(
...tseslint.configs.recommended,
...tseslint.configs.stylistic,
{
files: [
"src/**/*.ts",
"test/**/*.ts"
],
languageOptions: {
parser: tseslint.parser,
ecmaVersion: 2018,
sourceType: "commonjs",
parserOptions: {
project: "./tsconfig.eslint.json",
projectService: {
defaultProject: "tsconfig.json",
},
tsconfigRootDir: import.meta.dirname
},
},
rules: {
Expand All @@ -146,12 +145,13 @@ export default tseslint.config(
},
},
{
files: ["viewer/**/*.ts"],
languageOptions: {
ecmaVersion: 2018,
sourceType: "script",
parserOptions: {
project: "./tsconfig.eslint.viewer.json",
projectService: {
defaultProject: "tsconfig.json",
},
tsconfigRootDir: import.meta.dirname + "/viewer"
},
},
rules: {
Expand Down
14 changes: 0 additions & 14 deletions tsconfig.eslint.json

This file was deleted.

15 changes: 0 additions & 15 deletions tsconfig.eslint.viewer.json

This file was deleted.

0 comments on commit 8d415bf

Please sign in to comment.