11.1.0 • Published 2 months ago

@doist/eslint-config v11.1.0

Weekly downloads
7
License
MIT
Repository
github
Last release
2 months ago

@doist/eslint-config

Doist ESLint config.

Usage

Install

npm install --save-dev @doist/eslint-config

In .eslintrc

{
    // ...
    "extends": [
        // ...

        // Core set of rules, recommended for all projects.
        "@doist/eslint-config/recommended",

        // Additional rules requiring type information (recommended for TypeScript projects).
        "@doist/eslint-config/recommended-type-checked",

        // Additional rules for sorting/grouping import statements (optional)
        "@doist/eslint-config/simple-import-sort"

        // Recommended for projects using React.
        "@doist/eslint-config/react"
    ],

    // When using `recommended-type-checked`,
    // you need to link to `tsconfig.eslint.json` file (see section below) for the project.
    "parserOptions": {
        "project": "tsconfig.eslint.json"
    }
}

Configuring with type-checking

For type-based rules to work, project's tsconfig.json file needs to be specified in parserOptions.project. If you want to lint files not included in build, we recommend creating a separate tsconfig.eslint.json config and specifying it instead of the default one.

Release a new package

This project uses semantic versioning. A new version will be published to both npm and GitHub Package Registry when a new tag is pushed. Please make sure an entry is added to CHANGELOG.md.

git checkout main
npm version <major|minor|patch>
git push --follow-tags

Links

11.1.0

2 months ago

10.0.0

10 months ago

11.0.0

9 months ago

8.1.4

1 year ago

9.0.0

1 year ago

8.0.1

2 years ago

8.0.0

2 years ago

8.1.2

1 year ago

8.1.1

1 year ago

8.1.3

1 year ago

7.5.0

2 years ago

7.3.0

2 years ago

7.2.0

2 years ago

7.1.2

2 years ago

7.1.1

2 years ago

7.1.0

2 years ago

7.0.0

3 years ago

6.0.2

3 years ago

3.0.0

3 years ago