@ocupop/eslint-config
v0.2.1
Published
Ocupop's default ESLint configuration for React and standard JavaScript projects.
Readme
Ocupop Linter Config @ocupop/eslint-config
Installs a lint package to be used within projects.
Getting Started
Install
npm
npm install @ocupop/eslint-config@latest --save-devyarn
yarn add --dev @ocupop/eslint-config@latestProject Setup
Add .eslintrc file within the root of your project
module.exports = {
extends: [
"eslint:recommended",
"@ocupop/eslint-config",
],
parserOptions: {
ecmaVersion: 12,
sourceType: "module",
},
env: {
browser: true,
node: true,
es6: true,
},
rules: {
// You can add additional project-specific rules here
},
};Developing
To Link:
- Run
yarn linkwithin this project - Navigate to the project where you want to test the package.
- Link the globally symlinked package to your project by running:
yarn link @ocupop/eslint-config- Update your ESLint configuration file in the test project
- See Setup instructions
To Unlink:
- In your project directory, run:
yarn unlink @ocupop/eslint-config- In your package directory, run:
yarn unlinkPublishing
$ npm login <login with ocupop creds>
# [ ] Make sure to push changes to git first
# [ ] Make sure to bump the version number
$ npm publish