You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have those inconsistencies between TS and ESlint in my turborepo :
In apps\SvelteKitExample\vite.config.ts :
import{sveltekit}from"@sveltejs/kit/vite";// Correctly Resolved by TS,// Is resolved on dev server and during build// BUT NOT resolved by ESLint : Unable to resolve path to module '@sveltejs/kit/vite'.eslintimport/no-unresolved
In apps\SvelteKitTypia\src\routes\api\healthCheck+server.ts :
import{messageLoadedLocal}from"$src/routes/local-ts";// Correctly Resolved by TS,// Is resolved on dev server and during build// BUT NOT resolved by ESLint : Unable to resolve path to module '$src/routes/local-ts'.eslintimport/no-unresolvedconstshouldBeAConst="Lint test";// Lint working
This is my eslint config : packages\eslint-config\base.js
module.exports={parserOptions: {sourceType: "module",ecmaVersion: 2020,// Is overriden in each projectproject: "./tsconfig.json",extraFileExtensions: [".svelte"],// This is a required setting in `@typescript-eslint/parser` v4.24.0.},parser: "@typescript-eslint/parser",extends: ["eslint:recommended","plugin:@typescript-eslint/recommended","plugin:import/recommended","plugin:import/errors","plugin:import/warnings","plugin:import/typescript","plugin:svelte/base","plugin:svelte/recommended","turbo",],plugins: ["@typescript-eslint"],ignorePatterns: ["*.cjs",".eslintrc.cjs",".eslintrc.js","svelte.config.js","*.min.js","node_modules/","dist/","build/","coverage/",".svelte-kit/",".vercel/",".netlify/",],overrides: [{// From https://github.com/sveltejs/eslint-plugin-sveltefiles: ["*.svelte"],parser: "svelte-eslint-parser",parserOptions: {parser: "@typescript-eslint/parser",},rules: {"@typescript-eslint/no-inferrable-types": "off",},},],env: {browser: true,node: true,es2020: true,commonjs: true,},rules: {"@typescript-eslint/no-inferrable-types": "off",},};
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have those inconsistencies between TS and ESlint in my turborepo :
In apps\SvelteKitExample\vite.config.ts :
In apps\SvelteKitTypia\src\routes\api\healthCheck+server.ts :
Here is my complete repo: MarArMar/TurboMin
This is my eslint config : packages\eslint-config\base.js
Overriden by apps\SvelteKitExample.eslintrc.cjs
This is my tsconfigs : packages\tsconfig\sveltekit.json
Overriden by apps\SvelteKitExample\tsconfig.json
Do you have any idea what is wrong with my setup ?
Beta Was this translation helpful? Give feedback.
All reactions