Security News
The Push to Ban Ransom Payments Is Gaining Momentum
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
eslint-config-pretty
Advanced tools
Readme
Modular ESLint shareable config that works well with prettier.
All the dependencies have to be installed explicitly (see eslint/eslint#3458
).
$ npm install eslint-config-pretty eslint-config-prettier eslint-plugin-ava eslint-plugin-babel eslint-plugin-eslint-comments eslint-plugin-import eslint-plugin-jasmine eslint-plugin-json eslint-plugin-node eslint-plugin-prettier eslint-plugin-promise eslint-plugin-sort-class-members eslint-plugin-unicorn prettier eslint --save-dev
Alternatively you can use install-peerdeps:
$ npm install install-peerdeps --global
$ npm install eslint-config-pretty --save-dev
$ install-peerdeps eslint-config-pretty --dev
Once the eslint-config-pretty
package is installed, you can use it by specifying the different configs in the extends
section of your ESLint configuration.
{
extends: [
'pretty/es6',
'pretty/node',
'pretty/prettier',
],
rules: {
// Additional, project specific rules...
}
}
Name | Description | Extends |
---|---|---|
pretty | Base/generic configuration | |
pretty/jasmine | Rules specific to Jasmine | pretty |
pretty/import | Rules related to ECMAScript 2015 and Node imports | pretty |
pretty/node | Rules specific to Node JS | pretty , import |
pretty/es6 | Rules specific to ECMAScript 2015 | pretty , import |
pretty/ava | Rules specific to AVA | pretty , es6 |
pretty/promise | Rules specific to Promises | pretty , es6 |
pretty/async | Rules specific to async/await | pretty , promise |
pretty/prettier | To be added last in the extends array when using prettier. Adds eslint-plugin-prettier and eslint-config-prettier |
FAQs
Modular ESLint configuration that works well with prettier
We found that eslint-config-pretty demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
Application Security
New SEC disclosure rules aim to enforce timely cyber incident reporting, but fear of job loss and inadequate resources lead to significant underreporting.
Security News
The Python Software Foundation has secured a 5-year sponsorship from Fastly that supports PSF's activities and events, most notably the security and reliability of the Python Package Index (PyPI).