New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@pinnacle0/eslint-plugin

Package Overview
Dependencies
Maintainers
0
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pinnacle0/eslint-plugin

This package provides customized eslint rules for Pinnacle and a baseline config for react/typescript projects.

  • 0.4.0-beta.7
  • latest
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

@pinnacle0/eslint-plugin

This package provides customized eslint rules for Pinnacle and a baseline config for react/typescript projects.

Usage

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").

  1. Install @pinnacle0/eslint-plugin and the required peer dependencies:

    $ pnpm install --dev \
      @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
    
    
  2. Create .eslintrc.js at the project root directory:

    module.exports = {
        extends: ["plugin:@pinnacle0/baseline"],
    };
    
  3. Add lint script to package.json:

    {
        // ...
        "scripts": {
            // ...
            "lint": "eslint --ext .js,.jsx,.ts,.tsx .",
        },
    }
    
  4. Run linter:

    $ pnpm lint
    

Upgrading

It is recommended to use the latest version of all packages.

  1. To upgrade, run (use arrow keys and space to select packages):

    $ pnpm up -iLr
    
  2. Commit your changes:

    $ git commit -am "Upgraded dependencies"
    
  3. Review the changes of pnpm-lock.yaml if they make sense, then commit your changes:

    $ git commit -a --amend --no-edit
    

FAQs

Package last updated on 15 Jan 2025

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc