This package provides WeTransfer's base .eslintrc
as an extensible shared config. We also provide some React rules as a separate configuration.
It is eslint@4+-compatible and maintained by the friendly folks at WeTransfer.
- Install this config package and ESLint:
npm install --save-dev eslint @wetransfer/eslint-config-wetransfer
. - Add
"extends": "@wetransfer/wetransfer"
to your.eslintrc
. - Add
"extends": "@wetransfer/wetransfer/react"
to your.eslintrc
if you want to make use of our React specific rules. In that case, please installeslint-plugin-react
as well:
npm install --save-dev eslint-plugin-react
Please take a look to the source code of index.js, which lists every ESLint rule provided by this configuration.
After checking out the repo, run yarn
to install all dependencies. To run all tests:
$ npm test
First, make sure that you have a NPM account at https://www.npmjs.com/, and you are part of the WeTransfer developer's team. Use npm login
to store the credentials on the client aka, your computer. Check that your authentication token for registry.npmjs.org
is part of your ~/.npmrc
file.
We use semantic-release
to manage release process. Please run npm run release:dry
to check relevant changes and possible new versions. If you are happy with it, run npm run release
, it should do the following:
- Verify authentication for registry
- Verify GitHub authentication
- Find latest release and associated git tag
- Find last commits since last release
- Generate release notes
- Create Git tag
- Prepare the package and release it 📦
Bug reports and pull requests are welcome on GitHub at https://github.com/WeTransfer/eslint-config-wetransfer. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
The package is available as open source under the terms of the MIT License.
Everyone interacting with WeTransfer project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.