Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
eslint-config-vizzuality
Advanced tools
This package provides Vizzuality's .eslintrc as an extensible shared config.
This package provides Vizzuality's .eslintrc as an extensible shared config.
## Usage
We export three ESLint configurations for your usage.
Unsing npm:
npx install-peerdeps --dev eslint-config-vizzuality
npm install --save-dev eslint-config-vizzuality
Using yarn:
yarn add eslint@5.7.0 \
eslint-config-airbnb@17.1.0 \
eslint-plugin-import@2.14.0 \
eslint-plugin-jsx-a11y@6.1.1 \
eslint-plugin-react@7.11.0 \
eslint-config-vizzuality@latest \
--dev
Add "extends": "vizzuality"
to your .eslintrc
Example of .eslintrc.json
:
{
"env": {
"browser": true,
"node": true,
"es6": true
},
"extends": [
"vizzuality"
]
}
Add script to in your package.json
:
{
"scripts": {
...
"lint": "eslint --ext .js --ext .jsx ."
}
}
And execute eslint running:
yarn lint
As a good practice running eslint only in git staged files using (lint-staged)[https://github.com/okonet/lint-staged] will have quicker analysis and ensure quality in each commit.
And it is as easy as install the dependency:
npm install lint-staged
or
yarn add lint-staged
And add the following code to the package.json
:
"scripts": {
"precommit": "lint-staged"
},
"lint-staged": {
"**/*.js": [
"eslint --quiet --fix",
"git add"
]
},
FAQs
This package provides Vizzuality's .eslintrc as an extensible shared config.
We found that eslint-config-vizzuality demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 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
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.