Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
eslint-config-love
Advanced tools
A TypeScript ESLint config that loves you
This package specifies the following peerDependencies
:
Yes, this is a large number of peerDependencies
.
This is due to a known limitation in ESLint.
This package has @typescript-eslint/parser
in dependencies
.
And it has @typescript-eslint/eslint-plugin
in peerDependencies
.
Both are specified as ranges.
It's probably safest for the installed versions of these packages to be the same.
This can be achieved by:
@typescript-eslint/eslint-plugin
in package.json
.package-lock.json
which locks the version of the @typescript-eslint/parser
sub-dependency.And both pin/lock to the same version.
Yarn does not automatically install peerDependencies
,
so if that's what you're using, install them manually.
Here is an example, but use it only for reference,
because your decisions regarding version ranges and range specifiers may vary.
yarn add --dev \
typescript@\* \
eslint@^8.0.1 \
eslint-plugin-promise@^6.0.0 \
eslint-plugin-import@^2.25.2 \
eslint-plugin-n@^15.0.0 \
@typescript-eslint/eslint-plugin@^7.0.1 \
eslint-config-love@latest
Here is an example .eslintrc.js
.
Pay close attention to the files
property, because it determines which files are linted.
module.exports = {
overrides: [
{
files: ['*.js', '*.jsx', '*.ts', '*.tsx'],
extends: 'love'
}
],
}
Note: the config exported by this package sets parserOptions.project = true
.
Read about the project
option here.
There are some more parserOptions
you may care about.
$ npx eslint .
FAQs
A TypeScript ESLint config that loves you
The npm package eslint-config-love receives a total of 53,897 weekly downloads. As such, eslint-config-love popularity was classified as popular.
We found that eslint-config-love demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.