Skip to content

Commit

Permalink
Merge pull request #125 from qnighy/chore/project-service
Browse files Browse the repository at this point in the history
Migrate to projectService
  • Loading branch information
qnighy authored Aug 3, 2024
2 parents acf52b2 + 39ae6bf commit b649baf
Showing 1 changed file with 5 additions and 57 deletions.
62 changes: 5 additions & 57 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
import path from "node:path";

import js from "@eslint/js";
import tseslint from "typescript-eslint";
import jest from "eslint-plugin-jest";
import babelDevelopment from "@babel/eslint-plugin-development";
import prettier from "eslint-config-prettier";
import globals from "globals";

const __dirname = new URL(".", import.meta.url).pathname;

export default tseslint.config(
js.configs.recommended,
...tseslint.configs.recommended,
Expand Down Expand Up @@ -56,61 +52,13 @@ export default tseslint.config(
},
},
{
files: ["packages/node-cjs-interop/@(src|test)/**/*.ts"],
languageOptions: {
parserOptions: {
project: [
path.resolve(__dirname, "./packages/node-cjs-interop/tsconfig.json"),
path.resolve(
__dirname,
"./packages/node-cjs-interop/configs/tsconfig.main.json"
),
],
},
},
},
{
files: ["packages/babel-plugin-node-cjs-interop/@(src|test)/**/*.ts"],
languageOptions: {
parserOptions: {
project: [
path.resolve(
__dirname,
"./packages/babel-plugin-node-cjs-interop/tsconfig.json"
),
path.resolve(
__dirname,
"./packages/babel-plugin-node-cjs-interop/configs/tsconfig.main.json"
),
],
},
},
},
{
files: ["packages/node-cjs-interop-finder/@(src|test)/**/*.ts"],
languageOptions: {
parserOptions: {
project: [
path.resolve(
__dirname,
"./packages/node-cjs-interop-finder/tsconfig.json"
),
path.resolve(
__dirname,
"./packages/node-cjs-interop-finder/configs/tsconfig.main.json"
),
],
},
},
},
{
files: ["e2e/tests-e2e/@(src|test)/**/*.ts"],
files: [
"packages/*/@(src|test)/**/*.ts",
"e2e/tests-e2e/@(src|test)/**/*.ts",
],
languageOptions: {
parserOptions: {
project: [
path.resolve(__dirname, "./e2e/tests-e2e/tsconfig.json"),
path.resolve(__dirname, "./e2e/tests-e2e/configs/tsconfig.main.json"),
],
projectService: true,
},
},
},
Expand Down

0 comments on commit b649baf

Please sign in to comment.