![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
eslint-plugin-quintoandar
Advanced tools
This package provides QuintoAndar's custom eslint rules, that are created by our engineer's demand.
All these rules are accessible in the eslint config that is plugged in. For example, the package eslint-config-quintoandar-pwa
uses it as a plugin.
These custom rules can be used in two ways:
npm install --save-dev eslint-plugin-quintoandar
"plugins": [
"quintoandar"
],
or
"plugins": [
"eslint-plugin-quintoandar"
],
Do not allow the usage of target="_blank"
without rel="noopener noreferrer
because of a security problem.
Just add the code below in your rules array:
"internal/no-target-blank": 2,
Create a new custom rule is also a way to move from the deprecated approach to new one. This rule does exactly this, enforce to do not use any component from the file called Typo
.
Just add the code below in your rules array
"quintoandar/no-typo-components": 2,
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
Just go to /rules
folder, create a new file and export as default one function receiving context
and write the condition.
module.exports = function(context) {
return {
....
context.report({ /*... somethong */ })
}
}
In order to make it easy, there're two interesting tools:
Plus: Always to remember to update this readme and create unit tests when adding a new custom rule.
Reference: https://medium.com/@btegelund/creating-an-eslint-plugin-87f1cb42767f
FAQs
An eslint-plugin for PWA-Tenants custom rules
The npm package eslint-plugin-quintoandar receives a total of 112 weekly downloads. As such, eslint-plugin-quintoandar popularity was classified as not popular.
We found that eslint-plugin-quintoandar demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 10 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
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.