@ww-digital/eslint-config

ESlint config file for WWI

Usage no npm install needed!

<script type="module">
  import wwDigitalEslintConfig from 'https://cdn.skypack.dev/@ww-digital/eslint-config';
</script>

README

@ww-digital/eslint-config

Requirements

  • eslint 4.x is a dependency, so make sure your project doesn't already have a conflicting version

Install

  1. From the root of your project, run:

    npm i -D @ww-digital/eslint-config
    
  2. Add this to your package.json in the scripts section:

    "eslint": "eslint ./"
    
  3. Add this .eslintrc file to the root of your project:

    {
      "extends": "@ww-digital/eslint-config/nodejs",
      "rules": {}
    }
    

    ** You may substitute angularjs for nodejs

  4. Then you can simply run:

    npm run eslint
    

Modifying rules

You can add rules specific to your project in the .eslintrc file that was created in the root of your project.