Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@leather-wallet/eslint-config

Package Overview
Dependencies
Maintainers
3
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@leather-wallet/eslint-config

Shared eslint configuration

latest
Source
npmnpm
Version
0.5.0
Version published
Weekly downloads
22
-15.38%
Maintainers
3
Weekly downloads
 
Created
Source

Shared eslint configuration

This package contains eslint configuration to be shared across projects.

Contents

  • Setup
  • Usage
  • License

Setup

  • Install as a dev dependency in packages / apps:

    npm i --save-dev @leather-wallet/eslint-config
    
  • Add eslint configuration file:

    // .eslintrc.js
    module.exports = {
      extends: ['@leather-wallet/eslint-config', 'universe/native'],
    
      // add this if you have typescript in your package / app
      parserOptions: {
        project: path.resolve(__dirname, './tsconfig.json'),
      },
    
      ...,
    };
    
  • Add eslint ignore patterns file:

    # .eslintignore
    
    !.*
    node_modules/
    
    .commitlintrc.js
    .prettierrc.js
    .eslintrc.js
    
    # Custom ignore patterns
    ...
    
  • Add eslint scripts:

    // package.json
    
    "scripts": {
      ...
      "lint": "eslint . --config .eslintrc.js",
      "lint:fix": "eslint . --config .eslintrc.js --fix"
      ...
    }
    

Usage

  • Manual usage from command line:

    npm run lint
    npm run lint:fix
    

License

MIT © Leather Wallet LLC

⬅ Back

Keywords

eslint

FAQs

Package last updated on 05 Jun 2024

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