@josundt/eslint-config

5.5.1 • Public • Published

@josundt/eslint-config

ESLint ruleset including required ESLint plugins for jorundt TypeScript projects

Usage

  1. Make sure you have installed and configured @josundt/prettier-config first

  2. Install this package

    npm install @josundt/eslint-config
  3. Create an .eslintrc file in the root directory of your project with the following content:

    {
        "extends": ["@josundt"]
    }

    ["@josundt"] is the default configuration for typescript web projects with jasmine unit tests

    Other configurations:

    • ["@josundt/eslint-config/typescript-web"] (same as default; only without jasmine linting support).

    • ["@josundt/eslint-config/typescript-node-jasmine"] (same as default; but without browser environment).

    • ["@josundt/eslint-config/typescript-node"] (same as default; but without browser environment and jasmine linting support) .

  4. Add lint:ts script to your project's package.json file:

    {
        // ...
        "scripts": {
            // ...
            "lint:ts": "eslint ./src --format visualstudio --ext .ts,.tsx"
            // ...
        }
        // ...
    }
  5. Test the script:

    npm run lint:ts
  6. Live Code Analysis in Visual Studio Code:

    • Add a .eslintignore file in the root directory of your project with the following content:
      # Ignore js files; only analyze typescript files:
      **/*.js
      
    • Install extension for VSCode: ESLint (dbaeumer.vscode-eslint)

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
5.5.10latest

Version History

VersionDownloads (Last 7 Days)Published
5.5.10
5.4.10
5.4.00
5.3.10
5.2.100
5.2.20
5.2.10
5.2.00
5.0.40
4.9.70
4.9.60
4.8.30
4.7.30
4.6.10
4.4.10
4.4.00
4.3.30
4.3.20
4.2.20
4.1.00
4.0.60
1.0.30
1.0.20
1.0.10
1.0.00

Package Sidebar

Install

npm i @josundt/eslint-config

Weekly Downloads

0

Version

5.5.1

License

ISC

Unpacked Size

39.5 kB

Total Files

23

Last publish

Collaborators

  • josundt