We upgraded ESLint to version 9 in the Docs app, which includes several improvements and fixes. This change also involves updating the ESLint configuration files to the new format and ensuring compatibility with the latest ESLint features.
25 lines
484 B
JavaScript
25 lines
484 B
JavaScript
import { defineConfig } from '@eslint/config-helpers';
|
|
import docsPlugin from 'eslint-plugin-docs';
|
|
|
|
const eslintConfig = defineConfig([
|
|
{
|
|
plugins: {
|
|
docs: docsPlugin,
|
|
},
|
|
extends: ['docs/next'],
|
|
languageOptions: {
|
|
parserOptions: {
|
|
tsconfigRootDir: import.meta.dirname,
|
|
project: ['./tsconfig.json'],
|
|
},
|
|
},
|
|
settings: {
|
|
next: {
|
|
rootDir: import.meta.dirname,
|
|
},
|
|
},
|
|
},
|
|
]);
|
|
|
|
export default eslintConfig;
|