@josundt/eslint-config
ESLint ruleset with required plugins for josundt TypeScript projects
Last updated 17 hours ago by josundt .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @josundt/eslint-config 
SYNC missed versions from official npm registry.

@josundt/eslint-config

ESLint ruleset including required ESLint plugins for josundt TypeScript projects

Usage

  1. Install this package

    npm install @josundt/eslint-config
    
  2. 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) .

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

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

    npm run lint:ts
    
  5. 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)

Current Tags

  • 1.0.2                                ...           latest (17 hours ago)

3 Versions

  • 1.0.2                                ...           17 hours ago
  • 1.0.1                                ...           2 months ago
  • 1.0.0                                ...           2 months ago
Maintainers (1)
Downloads
Today 7
This Week 9
This Month 10
Last Day 0
Last Week 0
Last Month 20
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |