@kayahr/eslint-config

2.10.2 • Public • Published

kayahr eslint config

Shared eslint configuration for my personal TypeScript projects.

How to use it in a project

  • Install the dependencies:

    $ npm install -D \
        eslint \
        @kayahr/eslint-config \
        @typescript-eslint/eslint-plugin \
        @typescript-eslint/parser \
        eslint-plugin-deprecation \
        eslint-plugin-simple-import-sort
  • Create an .eslintrc.json configuration file with the following content (Modify environment if necessary):

    {
        "$schema": "https://json.schemastore.org/eslintrc",
        "root": true,
        "env": {
            "es6": true,
            "node": true,
            "browser": true
        },
        "extends": [
            "@kayahr"
        ]
    }
  • Add the following script line to package.json:

    "lint": "eslint --max-warnings 0 --ext .ts src"
  • Reference the lint script in the test script:

    "test": "npm run -s lint && npm run -s check"
    
  • Run eslint by typing npm test or npm run lint.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.10.2
    3
    • latest

Version History

Package Sidebar

Install

npm i @kayahr/eslint-config

Weekly Downloads

4

Version

2.10.2

License

MIT

Unpacked Size

44.3 kB

Total Files

13

Last publish

Collaborators

  • kayahr