Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@transferwise/eslint-config
Advanced tools
This is an extensible ESLint config used at TransferWise :money_with_wings:
It uses Airbnb's as a base, has Prettier baked in, and overrides some rules we've seen ourselves having to change often :heart:
npx install-peerdeps --dev @transferwise/eslint-config
(if it doesn't work, update npm)
@transferwise
.eslintrc
{
"extends": "@transferwise"
}
Your own config can extend and override it however you want. If you find yourself changing a certain rule often, consider contributing.
It's recommended to:
npm test
script (f.e. eslint src/
)package.json
{
...,
"lint-staged": {
"*.js": [
"eslint --fix",
"git add"
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
}
}
lint-staged
and husky
are already installed for you as part of this package's peer dependencies :ok_hand:
As of version 1.17
Prettier supports shared config files. :tada:
To use the configuration provided by this package, add the following line to your package.json
:
package.json
{
...,
"prettier": "@transferwise/eslint-config/.prettierrc.js"
}
Read more about shared configs especially, if you need to extend/override the default configuration.
This is only required if you're running Prettier
as a file watcher in your IDE to automatically format files. JS
files will be formatted by eslint
even if you don't configure your IDE.
If you think a rule should be added or changed, create a pull request. The change will be discussed, and if people agree, it can be merged. Every merge automatically releases to GitHub and npm.
Bear in mind that you'll need to bump the version in package.json
(major for breaking rules, minor for additions, patch for bugfixes) and add a CHANGELOG.md
entry.
FAQs
TransferWise ESLint & Prettier configuration
The npm package @transferwise/eslint-config receives a total of 43 weekly downloads. As such, @transferwise/eslint-config popularity was classified as not popular.
We found that @transferwise/eslint-config demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.