2.3.2 • Published 7 years ago
eslint-config-yara v2.3.2
Yara Digital Labs JavaScript Style Guide
Usage
We export two ESLint configurations for your usage, vanilla JavaScript and React.
Yara Digital Labs JavaScript Style Guide
Our default export contains all of our ESLint rules, including ECMAScript 6+.
It requires eslint, eslint-config-react, eslint-plugin-react, eslint-plugin-jest.
- Install package:
npm install --save-dev eslint-config-yaraAlternatively you can use:
yarn add eslint-config-yara --devFor vanilla JavaScript add
"extends": "yara"to your .eslintrc.For React add
"extends": "yara/react"to your .eslintrc.
To check our rules on vanilla JavaScript lint.
To check our rules on React lint.
Release process
To generate a new release you need to be an admin to push on master.
We are using a semantic version to generate a new release: major, minor and patch, with a npm version.
On branch master execute:
git checkout masterGenerate a new tag:
git pull --tags origin masternpm version major|minor|patch -m "Message about what is new in that release"After create a new verstion:
npm publish