#typescript eslint ignore error

7 messages · Page 1 of 1 (latest)

indigo burrow
#

guys pls help me to fix this fk error,i am fade up from it

Parsing error: ESLint was configured to run on `<tsconfigRootDir>/eslint.config.js` using `parserOptions.project`: <tsconfigRootDir>/tsconfig.json
However, that TSConfig does not include this file. Either:
- Change ESLint's list of included files to not include this file
- Change that TSConfig to include this file
- Create a new TSConfig that includes this file and include it in your parserOptions.project
See the typescript-eslint docs for more info: https://typescript-eslint.io/linting/troubleshooting#i-get-errors-telling-me-eslint-was-configured-to-run--however-that-tsconfig-does-not--none-of-those-tsconfigs-include-this-fileeslint

i getting this even i am ignoring the file

import base from '@repo/eslint-config/base.js';

export default [
    ...base,
    {
        files: ['src/**/*.{js,ts}'],
        ignores: ['eslint.config.js', 'test']
    }
]

i am using typescript eslint

winter ocean
#

this is a ts-eslint/eslint issue, not a ts issue. you might get a better or quicker response asking in one of those 2 servers

#

though, do you really need to check .js? is your project mixed?

primal pagoda
#

lol, that URL anchor (#i-get-errors-telling-me-eslint-was-configured-to-run--however-that-tsconfig-does-not--none-of-those-tsconfigs-include-this-fileeslint)

#

so if you do want to check .js files that are not part of your TS project (this sounds like a weird setup so i'm not sure), then you could use this approach to run eslint on your entire project but only apply the typescript-eslint plugin to the subset of files that are part of your TS project

#

if you can tell me more about your project setup (ideally also showing your tsconfig.json file and your directory layout) then i could be more confident about how things should be set up