Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@shelf/eslint-config

Package Overview
Dependencies
Maintainers
59
Versions
184
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shelf/eslint-config

ESLint Config for Shelf Projects

  • 4.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
59
Created
Source

@shelf/eslint-config

Style Guide

Read our style guide

Install

$ yarn add @shelf/eslint-config --dev

Usage

Backend

import tsConfig from '@shelf/eslint-config/typescript';

export default [...tsConfig];

Frontend

JavaScript with React eslint.config.js
import feConfig from '@shelf/eslint-config/frontend';

export default [
  ...feConfig,
  {
    settings: {
      react: {
        version: '16.7.0',
      },
    },
    rules: {
      "react/prop-types": "warn"
    }
  }
];
TypeScript or TypeScript + Next eslint.config.js
import feTsConfig from '@shelf/eslint-config/frontend-typescript';

export default [
  ...feTsConfig,
  {
    settings: {
      react: {
        version: '16.7.0',
      },
    },
    rules: {
      "react/prop-types": "warn"
    }
  }
];
Vue eslint.config.js
import feVueConfig from '@shelf/eslint-config/frontend-vue';

export default [
  ...feVueConfig,
  {
    rules: {
      "no-unused-vars": ["error", {"vars": "all", "argsIgnorePattern": "^h$"}]
    }
  }
];
Typescript with Vue eslint.config.js
import feTsVueConfig from '@shelf/eslint-config/frontend-typescript-vue';

export default [
  ...feTsVueConfig,
  {
    rules: {
      "@typescript-eslint/no-unused-vars": ["error", {"vars": "all", "argsIgnorePattern": "^h$"}]
    }
  }
];

Publish

$ git checkout master
$ yarn version
$ yarn publish
$ git push origin master --tags

License

MIT © Shelf

Keywords

FAQs

Package last updated on 06 Aug 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

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