
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
@kiwicom/eslint-config
Advanced tools
Our ESlint config.
Add the following script to your package.json
:
{
"scripts": {
"lint": "eslint . --max-warnings 0"
}
}
Increase the number of warnings to your current number of warnings to avoid introducing new ones.
Available configs to extend:
@kiwicom/eslint-config
- core, Babel, Node, imports@kiwicom/eslint-config/ts
- TypeScript@kiwicom/eslint-config/flow
- Flow@kiwicom/eslint-config/react
- React@kiwicom/eslint-config/jest
- JestYour .eslintrc.js
:
// Example config for a React+Jest project with both TS and Flow
module.exports = {
extends: ["@kiwicom", "@kiwicom/eslint-config/react", "@kiwicom/eslint-config/jest"],
overrides: [
{
// TypeScript
files: ["*.ts", "*.tsx"],
extends: ["@kiwicom/eslint-config/ts"],
parserOptions: {
project: "./tsconfig.json",
},
},
{
// Flow
files: ["*.js", "*.jsx", "*.js.flow"],
extends: ["@kiwicom/eslint-config/flow"],
},
],
};
Prettier rules to avoid conflicts are included, however, prettier
itself is not.
Install yarn add prettier -D
separately, create prettier.config.js
and add the
following scripts to your package.json
:
{
"scripts": {
"prettier": "prettier --check .",
"fmt": "prettier --write ."
}
}
Benchmark:
TIMING=1 eslint ...
Checking prettier
conflicts:
npx eslint-config-prettier index.js
MIT
FAQs
Kiwi.com's ESlint config for TypeScript and Flow.
The npm package @kiwicom/eslint-config receives a total of 1,585 weekly downloads. As such, @kiwicom/eslint-config popularity was classified as popular.
We found that @kiwicom/eslint-config demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 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.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.