eslint config?

ive installed sapphire/ts-config and extended it but that wasnt working because it seems currently unsupported by eslint 9.x flat config requirement then i went to theeslint docs and copied their example config
// @ts-check

import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';

export default tseslint.config(eslint.configs.recommended, tseslint.configs.recommended);
// @ts-check

import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';

export default tseslint.config(eslint.configs.recommended, tseslint.configs.recommended);
and this isnt working properly either
Error: Invalid Options:
- Unknown options: ignorePath, resolvePluginsRelativeTo, rulePaths, useEslintrc
- 'resolvePluginsRelativeTo' has been removed.
- 'ignorePath' has been removed.
- 'rulePaths' has been removed. Please define your rules using plugins.
at processOptions (/home/denyed/bots/nlbot/node_modules/eslint/lib/eslint/eslint-helpers.js:843:15)
at new ESLint (/home/denyed/bots/nlbot/node_modules/eslint/lib/eslint/eslint.js:449:34)
at getESLint (/home/denyed/bots/nlbot/node_modules/prettier-eslint/dist/utils.js:337:12)
at getESLintConfig (/home/denyed/bots/nlbot/node_modules/prettier-eslint/dist/index.js:268:39)
at analyze (/home/denyed/bots/nlbot/node_modules/prettier-eslint/dist/index.js:80:77)
at format (/home/denyed/bots/nlbot/node_modules/prettier-eslint/dist/index.js:50:13)
at file:///home/denyed/.vscode/extensions/rvest.vs-code-prettier-eslint-6.0.0/dist/worker.mjs:1:1516
Error: Invalid Options:
- Unknown options: ignorePath, resolvePluginsRelativeTo, rulePaths, useEslintrc
- 'resolvePluginsRelativeTo' has been removed.
- 'ignorePath' has been removed.
- 'rulePaths' has been removed. Please define your rules using plugins.
at processOptions (/home/denyed/bots/nlbot/node_modules/eslint/lib/eslint/eslint-helpers.js:843:15)
at new ESLint (/home/denyed/bots/nlbot/node_modules/eslint/lib/eslint/eslint.js:449:34)
at getESLint (/home/denyed/bots/nlbot/node_modules/prettier-eslint/dist/utils.js:337:12)
at getESLintConfig (/home/denyed/bots/nlbot/node_modules/prettier-eslint/dist/index.js:268:39)
at analyze (/home/denyed/bots/nlbot/node_modules/prettier-eslint/dist/index.js:80:77)
at format (/home/denyed/bots/nlbot/node_modules/prettier-eslint/dist/index.js:50:13)
at file:///home/denyed/.vscode/extensions/rvest.vs-code-prettier-eslint-6.0.0/dist/worker.mjs:1:1516
1 Reply
denyed
denyedOP2w ago
my bad for not reading docs properly, found a flat config ste up

Did you find this page helpful?