0.0.1 • Published 3 years ago

@wealthylabs/eslint-config v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Wealthy Labs's ESLint config

Install the package

yarn add -D @wealthylabs/eslint-config

Install the peer dependencies

npx install-peerdeps --dev -o --yarn @wealthylabs/eslint-config

On your package.json:

    "prettier": "@wealthylabs/prettier-config"
    "eslintConfig": {
        "extends": "@wealthylabs"
    },

If you need to make custom changes, extend this configuration:

 "extends": "@wealthylabs/eslint-config",
  "rules": {
       ..."your other rules"
      }
 

Editor notes:

VSCode

Validation

Make sure you typescript validation is enabled - it is enabled by default.

"typescript.validate.enable": true

If for some reason you want to turn it off, configure eslint specific validation on your settings:

"eslint.validate": ["javascript", "javascriptreact", "typescript", "typescriptreact"]

Working directories

If your Javascript project is not on the root of the open project you must define the "eslint.workingDirectories": ["my-js-application"] setting of the VSCode ESLint plugin to make it work.