![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@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
The npm package @otovo/eslint-config-otovo receives a total of 150 weekly downloads. As such, @otovo/eslint-config-otovo popularity was classified as not popular.
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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.