
Security News
PEP 810 Proposes Explicit Lazy Imports for Python 3.15
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
@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.
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.
Security News
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.