6.0.1 • Published 1 year ago

eslint-config-opencollective v6.0.1

Weekly downloads
2,871
License
MIT
Repository
github
Last release
1 year ago

eslint-config-opencollective

npm version License

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

  1. Install dependencies:
npm install --save-dev eslint @typescript-eslint/parser eslint-plugin-import eslint-plugin-n eslint-plugin-simple-import-sort eslint-config-opencollective
  1. 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

  1. 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
  1. 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:

  1. Update the version in package.json:
npm version patch # for bug fixes
npm version minor # for new features
npm version major # for breaking changes
  1. Push the changes and the new tag:
git push --follow-tags
  1. Publish to npm:
npm publish
6.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