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-invision
Advanced tools
The lint rules defined here are shared via a public NPM module named eslint-config-invision
. This allows us to have a common set of rules across multiple code repositories, without having to copy/paste those rules everywhere. See "ESLint's Sharable Configs article" for more details.
There are quite a few rules in our ESLint config. To help summarize, the major code guidelines are:
var
declarations.For discussion of rules or any other lint topic, check out the InVision #eslint Slack channel.
Detailed information with an example folder/file setup is available in the examples\repo folder.
Detailed overview of how testing works for this repo.
By default, the environment is set to node
. However, in some code repositories, both browser and Node.js code co-exist.
To help keep linting more specific to the environment, additional files (browser.js
, react.js
) are available that have specific definitions.
To use one of these files, change the extends
property value in your .eslintrc
file to be "eslint-config-invision/name-of-file-here"
(e.g. "eslint-config-invision/browser"
).
If you have a specific folder for these assets, you can also create a second .eslintrc
file for that directory that includes this change.
Right now, there are three lint variations:
eslint-config-invision
eslint-config-invision/browser
eslint-config-invision/react
(extends Node)When modifying the rules, it's helpful to test them locally against an existing project. Using npm link
can allow for this type of local development.
In this repo's folder, run npm link
. In the folder of the project you want to run lint on, run npm link eslint-config-invision
.
To help generate meaningful changelogs, this repo follows git commit message conventions.
Releases are handled through our standard NPM versioning process.
The majority of changes will be patch or minor. There may be many minor changes in a row, as the nature of the changes will likely be breaking.
FAQs
ESLint Rules for InVision JavaScript
The npm package eslint-config-invision receives a total of 4 weekly downloads. As such, eslint-config-invision popularity was classified as not popular.
We found that eslint-config-invision demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
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.