(Translated by https://www.hiragana.jp/)
GitHub - Ionaru/eslint-config: My custom flavoured config for ESLint
Skip to content

My custom flavoured config for ESLint

License

Notifications You must be signed in to change notification settings

Ionaru/eslint-config

Repository files navigation

ESLint-config

npm version

Description

My custom flavoured config for ESLint based on my standard TSLint configuration.

Usage

Install

npm install -D @ionaru/eslint-config eslint @typescript-eslint/eslint-plugin eslint-plugin-import eslint-plugin-prefer-arrow eslint-plugin-sonarjs eslint-plugin-unicorn

Configuration

tsconfig.eslint.json example

{
    "extends": "./tsconfig.json",
    "include": [
        "src/**/*.ts"
    ]
}

.eslintrc.json example

{
    "env": {
        "es6": true
    },
    "parserOptions": {
        "project": "tsconfig.eslint.json",
        "sourceType": "module"
    },
    "extends": [
        "@ionaru"
    ]
}

package.json example

...
"scripts": {
    ...
    "lint": "eslint --ext ts --max-warnings 0 src",
    ...
},
...

About

My custom flavoured config for ESLint

Resources

License

Stars

Watchers

Forks

Packages

No packages published