2.2.1 • Published 11 months ago

@eclipse-glsp/eslint-config v2.2.1

Weekly downloads
-
License
(EPL-2.0 OR GPL-2...
Repository
github
Last release
11 months 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.3.0-next.164

12 months ago

2.2.1

11 months ago

2.2.0

12 months ago

2.2.0-next.161

12 months ago

2.2.0-next.167

11 months ago

2.2.0-next.166

12 months ago

2.3.0-next.170

11 months ago

2.0.0

2 years ago

1.1.0-RC06

2 years ago

1.0.0

3 years ago

0.10.0

4 years ago

0.9.0

4 years ago