
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
@otovo/eslint-config-otovo
Advanced tools
This repo contains sets of opinionated linting rules (eslint-configs) for Otovo projects.
yarn add --dev @otovo/eslint-config-otovo
# or using npm:
npm install --save-dev @otovo/eslint-config-otovo
Depending on your project, add one of these to your .eslintrc
file:
@otovo/eslint-config-otovo
@otovo/eslint-config-otovo/react-recommended
@otovo/eslint-config-otovo/react-flow-recommended
@otovo/eslint-config-otovo/react-typescript-recommended
Example .eslintrc
using React with Flow:
{
"env": { "browser": true },
"extends": ["@otovo/eslint-config-otovo/react-flow-recommended"]
}
eslint-config-otovo
consists of several small sets of rules:
For a given project, you will probably need several of them. For example: If you want to add javascript
and react
, prettier
and prettier-react
to your repo, add the following to your .eslintrc
config:
{
"env": {
"browser": true
},
"extends": [
"@otovo/eslint-config-otovo/javascript",
"@otovo/eslint-config-otovo/react",
"@otovo/eslint-config-otovo/prettier",
"@otovo/eslint-config-otovo/prettier-react"
]
}
Instead of adding rule sets one by one, you can use one of four collections:
@otovo/eslint-config-otovo
@otovo/eslint-config-otovo/react-recommended
@otovo/eslint-config-otovo/react-flow-recommended
@otovo/eslint-config-otovo/react-typescript-recommended
You use collections in the same way you add rule sets: By adding them to the extends
array in .eslintrc
:
{
"env": {
"browser": true
},
"parser": "babel-eslint",
"extends": ["@otovo/eslint-config-otovo/react-flow-recommended"]
}
The following is a overview of the rules each collection includes:
default | react-recommended | react-flow-recommended | react-typescript-recommended | |
---|---|---|---|---|
javascript | ✅ | ✅ | ✅ | ✅ |
prettier | ✅ | ✅ | ✅ | ✅ |
react | ✅ | ✅ | ✅ | |
prettier-react | ✅ | ✅ | ✅ | |
flowtype | ✅ | |||
prettier-flowtype | ✅ | |||
typescript | ✅ | |||
prettier-typescript | ✅ |
This package is hosted on npm under @otovo/eslint-config-otovo namespace and is published using np
. To publish a new version, run
yarn release --no-tests
(We currently don't have any tests)
Doing so guides you through publishing to npm, pushing tags to Github and create release notes.
FAQs
A set of eslint-configs for Otovo projects
We found that @otovo/eslint-config-otovo demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 8 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
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.