npm.io
5.0.0 • Published 5 years ago

eslint-config-wombat

Licence
MIT
Version
5.0.0
Deps
12
Size
5.0 MB
Vulns
0
Weekly
0

eslint-config-wombat

Installation

  1. Installation

    TypeScript only

    yarn add -D babel-eslint@~10.1.0 eslint@^7.5.0 eslint-config-wombat

    JavaScript

    yarn add -D babel-eslint@~10.1.0 eslint@^7.5.0 eslint-config-wombat
  2. create/update .eslintrc.js

    • javascript:
    module.exports = {
      "extends": [
        "wombat"
      ],
      "ignorePatterns": [
      ]
    };
    
    • typescript:
    module.exports = {
      "extends": [
        "wombat/typescript"
      ],
      "parserOptions": {
        project: ['./tsconfig.json'],
        tsconfigRootDir: __dirname,
      },
      "ignorePatterns": [
      ]
    };
  3. Add script to package.json

    "scripts": {
      ...
      "lint:js": "eslint ./src --ext .js,.jsx,.ts,.tsx --max-warnings=0",
    }  

Publishing

  1. Be repo Maintainer.
  2. Merging branch develop to master via Merge Request.
  3. Switch locally to master branch
  4. run yarn run createNewVersion
  5. Select new version
  6. after publication is completed make sure that everything is pushed to gitlab
  7. merge master to develop(without creating Merge Request)
  8. done

Keywords