6.0.1 • Published 4 months ago
eslint-config-opencollective v6.0.1
eslint-config-opencollective
Shared ESLint configuration used across Open Collective projects.
Installation
First, add the ESLint scripts to your package.json
:
{
"scripts": {
"lint": "eslint .",
"lint:fix": "npm run lint -- --fix",
"lint:quiet": "npm run lint -- --quiet"
}
}
Then choose your project type:
Node.js Projects
- Install dependencies:
npm install --save-dev eslint @typescript-eslint/parser eslint-plugin-import eslint-plugin-n eslint-plugin-simple-import-sort eslint-config-opencollective
- Create
.eslintrc.cjs
in your project root:
import openCollectiveConfig from 'eslint-config-opencollective/eslint-node.config.cjs';
module.exports = {
...openCollectiveConfig,
// Add your custom rules here
};
React Projects
- Install dependencies:
npm install --save-dev eslint @typescript-eslint/parser eslint-plugin-import eslint-plugin-n eslint-plugin-react eslint-plugin-simple-import-sort eslint-config-opencollective
- Create
.eslintrc.cjs
in your project root:
import openCollectiveConfig from 'eslint-config-opencollective/eslint-react.config.cjs';
module.exports = {
...openCollectiveConfig,
// Add your custom rules here
};
Publishing
To publish a new version:
- Update the version in
package.json
:
npm version patch # for bug fixes
npm version minor # for new features
npm version major # for breaking changes
- Push the changes and the new tag:
git push --follow-tags
- Publish to npm:
npm publish
6.0.1
4 months ago
6.0.0
4 months ago
5.1.0
8 months ago
5.0.0
9 months ago
4.0.0
1 year ago
3.2.0
1 year ago
3.0.3
4 years ago
3.0.2
4 years ago
3.0.1
4 years ago
3.0.0
4 years ago
2.2.0
5 years ago
2.1.0
5 years ago
2.0.1
6 years ago
2.0.0
6 years ago
1.5.0
7 years ago
1.4.0
7 years ago
1.3.0
7 years ago
1.2.1
7 years ago
1.2.0
7 years ago
1.1.8
7 years ago
1.1.7
7 years ago
1.1.6
9 years ago
1.1.5
9 years ago
1.1.4
9 years ago
1.1.3
9 years ago
1.1.2
9 years ago
1.1.1
9 years ago
1.1.0
9 years ago
1.0.0
9 years ago