6.0.1 • Published 1 year 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.cjsin 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.cjsin 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 publish6.0.1
1 year ago
6.0.0
1 year ago
5.1.0
1 year ago
5.0.0
1 year ago
4.0.0
2 years ago
3.2.0
2 years ago
3.0.3
4 years ago
3.0.2
4 years ago
3.0.1
5 years ago
3.0.0
5 years ago
2.2.0
6 years ago
2.1.0
6 years ago
2.0.1
6 years ago
2.0.0
7 years ago
1.5.0
8 years ago
1.4.0
8 years ago
1.3.0
8 years ago
1.2.1
8 years ago
1.2.0
8 years ago
1.1.8
8 years ago
1.1.7
8 years ago
1.1.6
10 years ago
1.1.5
10 years ago
1.1.4
10 years ago
1.1.3
10 years ago
1.1.2
10 years ago
1.1.1
10 years ago
1.1.0
10 years ago
1.0.0
10 years ago