eslint-config-wombat
v5.0.0
Published
Recommended Common Wombat config for eslint
Downloads
10
Readme
eslint-config-wombat
Installation
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
create/update .eslintrc.js
- javascript:
module.exports = { "extends": [ "wombat" ], "ignorePatterns": [ ] };
- typescript:
module.exports = { "extends": [ "wombat/typescript" ], "parserOptions": { project: ['./tsconfig.json'], tsconfigRootDir: __dirname, }, "ignorePatterns": [ ] };
Add script to package.json
"scripts": { ... "lint:js": "eslint ./src --ext .js,.jsx,.ts,.tsx --max-warnings=0", }
Publishing
- Be repo Maintainer.
- Merging branch develop to master via Merge Request.
- Switch locally to master branch
- run
yarn run createNewVersion
- Select new version
- after publication is completed make sure that everything is pushed to gitlab
- merge master to develop(without creating Merge Request)
- done