@chatie/eslint-config

    0.5.4 • Public • Published

    eslint-config

    NPM Version npm (tag) Build Status

    ESLint Sharable Rules in TypeScript Standard Style

    ESLint Sharable Rules in TypeScript Standard Style

    Source: Using ESLint and Prettier in a TypeScript Project

    USAGE

    1. Install @chatie/eslint-config

    npm install --save-dev @chatie/eslint-config

    2. Create .eslintrc.yaml

    In the root directory of your project (which should contains your package.json file), create .eslintrc.yaml with the following content:

    ---
    extends: '@chatie'

    3. You are All Set

    ./node_modules/.bin/eslint

    eslint will work and follow the @chatie rules.

    STYLES

    SEE ALSO

    tslint -> eslint

    FAQ

    1. vscode not linting TypeScript files at all

    Add the following config to .vscode/settings.json to enable linting TypeScript files:

      "eslint.validate": [
        "javascript",
        "typescript",
      ],
    ```json
    
    ## HISTORY
    
    ### v0.5 (master)
    
    ### v0.4 Jne 08 2019
    
    1. Auto generate `.eslintrc.yaml` in the project root directory after install if it not exists.
    
    ### v0.2 June 08 2019
    
    1. First beta
    
    ### v0.0.1 June 07 2019
    
    1. Converted tsling.json to .eslintrc.js with the JavaScript Standard Style.
    
    ## AUTHOR
    
    [Huan LI (李卓桓)](http://linkedin.com/in/zixia) zixia@zixia.net
    
    [![Profile of Huan LI (李卓桓) on StackOverflow](https://stackexchange.com/users/flair/265499.png)](https://stackexchange.com/users/265499)
    
    ## COPYRIGHT & LICENSE
    
    - Code & Docs © 2019 - now Huan LI zixia@zixia.net
    - Code released under the Apache-2.0 License
    - Docs released under Creative Commons

    Install

    npm i @chatie/eslint-config@0.5.4

    Version

    0.5.4

    License

    Apache-2.0

    Unpacked Size

    18.6 kB

    Total Files

    5

    Last publish

    Collaborators

    • zixia
    • chatie