3.1.0 • Published 9 months ago

@kayahr/eslint-config v3.1.0

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

kayahr eslint config

Shared eslint configuration for my personal TypeScript projects.

How to use it in a project

  • Install the dependencies:

    $ npm install -DE @kayahr/eslint-config
  • Create an eslint.config.js (Or eslint.config.mjs in CommonJS projects) configuration file with the following content (Modify environment if necessary):

    {
        import kayahrConfigs from "@kayahr/eslint-config";
        import globals from "globals";
    
        export default [
            {
                ignores: [
                    "doc",
                    "lib"
                ]
            },
            {
                languageOptions: {
                    globals: {
                        ...globals.browser,
                        ...globals.node
                    }
                }
            },
            {
                files: [ "**/*.js" ],
                languageOptions: {
                    sourceType: "commonjs"
                }
            },
            ...kayahrConfigs
        ];
    }

    The block with sourceType: "commonjs" is only needed for CommonJS projects.

  • Add the following script line to package.json:

    "lint": "eslint --max-warnings 0"
  • 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.

3.1.0

9 months ago

3.0.0-alpha.1

11 months ago

3.0.0-alpha.2

11 months ago

3.0.0

11 months ago

2.11.0

1 year ago

2.10.2

2 years ago

2.10.1

2 years ago

2.10.0

2 years ago

2.9.0

2 years ago

2.8.0

2 years ago

2.7.0

2 years ago

2.6.0

3 years ago

2.5.0

3 years ago

2.4.0

3 years ago

2.3.0

3 years ago

2.2.0

3 years ago

2.3.1

3 years ago

2.1.0

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.6.1

4 years ago

1.6.0

4 years ago

1.5.0

4 years ago

1.4.0

4 years ago

1.3.0

5 years ago

1.2.0

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago