2.0.0 • Published 16 days ago

@eclipse-glsp/eslint-config v2.0.0

Weekly downloads
-
License
(EPL-2.0 OR GPL-2...
Repository
github
Last release
16 days ago

Eclipse GLSP - Shared ESLint configuration

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

Install

$ yarn add --dev @eclipse-glsp/eslint-config

Usage

Create a .eslintrc.js:

/** @type {import('eslint').Linter.Config} */
module.exports = {
    extends: "@eclipse-glsp",
    parserOptions: {
        tsconfigRootDir: __dirname,
        project: "tsconfig.json",
    },
};

Usage without prettier

The default shared ESLint configuration is expected to be used in combination with Prettier. As a consequence all stylistic rules that might conflict with Prettier haven been disabled. We provide an additional no-prettier configuration that can be used for projects that don't use Prettier.

Create a .eslintrc.js:

/** @type {import('eslint').Linter.Config} */
module.exports = {
    extends: "@eclipse-glsp/eslint-config/no-prettier",
    parserOptions: {
        tsconfigRootDir: __dirname,
        project: "tsconfig.json",
    },
};

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.

2.0.0

7 months ago

1.1.0-RC06

1 year ago

1.0.0

2 years ago

0.10.0

2 years ago

0.9.0

2 years ago