0.1.1 • Published 4 years ago
@logojoy/eslint-config-react v0.1.1
@logojoy/lint
Usage
For all JS environments
npm i --save-dev eslint @logojoy/eslint-configIn your local .eslintrc
{
"extends": ["@logojoy"]
}For React environments
npm i --save-dev eslint babel-eslint @logojoy/eslint-config @logojoy/eslint-config-reactIn your local .eslintrc
{
"extends": ["@logojoy", "@logojoy/react"]
}For mocha environments
npm i --save-dev eslint @logojoy/eslint-config @logojoy/eslint-config-mochaIn your local .eslintrc
{
"extends": ["@logojoy", "@logojoy/mocha"]
}Developing
Once you download the repo to your machine, run
npm installin the root folder, then runnpm run bootstrapto install the dependencies for each package.When adding a new package to the
packagesfolder, you will need to addeslintas a devDependency in order to run the tests successfully. You should also ensure that the new package'spackage.jsonhas the following configuration added in order to be published as a public package:
"publishConfig": {
"access": "public"
}Publishing to npm
- Once your pull request has been approved and merged into the master branch, run
npm run publishand select whether it will be a major, minor, or patch update.