npm.io
2.8.0 • Published 2 months ago

@eclipse-glsp/eslint-config

Licence
(EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0)
Version
2.8.0
Deps
0
Size
45 kB
Vulns
0
Weekly
0
Stars
237

Eclipse GLSP - Shared ESLint configuration

Common shared configuration for Eclipse GLSP components that are using ESLint for linting.

Install

pnpm add --save-dev @eclipse-glsp/eslint-config

Usage

Create an eslint.config.mjs:

import glspConfig from '@eclipse-glsp/eslint-config';

export default [
    ...glspConfig,
    {
        languageOptions: {
            parserOptions: {
                tsconfigRootDir: import.meta.dirname,
                project: 'tsconfig.json'
            }
        }
    }
];

Individual config layers can also be imported separately:

import baseConfig from '@eclipse-glsp/eslint-config/base';
import warningsConfig from '@eclipse-glsp/eslint-config/warnings';
import errorsConfig from '@eclipse-glsp/eslint-config/errors';

More information

For more information, please visit the Eclipse GLSP Umbrella repository and the Eclipse GLSP Website. If you have questions, please raise them in the discussions and have a look at our communication and support options.

Keywords