![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.
@pinnacle0/eslint-plugin
Advanced tools
This package provides customized eslint rules for Pinnacle and a baseline config for react/typescript projects.
This package provides customized eslint rules for Pinnacle and a baseline config for react/typescript projects.
This package includes a config which wraps multiple other eslint plugins and presets.
For our config to work properly, @pinnacle0/eslint-plugin
has to be installed along with
all these plugins and presets ("peer dependencies").
Install @pinnacle0/eslint-plugin and the required peer dependencies:
$ yarn add --dev --exact \
@pinnacle/eslint-plugin \
eslint \
@typescript-eslint/parser \
@typescript-eslint/eslint-plugin \
eslint-config-prettier \
eslint-plugin-react \
eslint-plugin-react-hooks \
eslint-plugin-import \
eslint-plugin-eslint-comments
Create .eslintrc.js
at the project root directory:
module.exports = {
extends: ["plugin:@pinnacle0/baseline"],
};
Add lint
script to package.json
:
{
// ...
"scripts": {
// ...
"lint": "eslint --ext .js,.jsx,.ts,.tsx ."
}
}
Run linter:
$ yarn lint
It is recommended to use the latest version of all packages.
To upgrade, run (use arrow keys and space to select packages):
$ yarn upgrade-interactive --latest
Commit your changes:
$ git commit -am "Upgraded dependencies"
To make sure transitive dependencies locked by yarn.lock
can also be upgraded, run:
$ npx yarn-deduplicate
Review the changes of yarn.lock
if they make sense, then commit your changes:
$ git commit -a --amend --no-edit
FAQs
This package provides customized eslint rules for Pinnacle and a baseline config for react/typescript projects.
The npm package @pinnacle0/eslint-plugin receives a total of 18 weekly downloads. As such, @pinnacle0/eslint-plugin popularity was classified as not popular.
We found that @pinnacle0/eslint-plugin demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 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.