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

@shelf/eslint-config

Package Overview
Dependencies
Maintainers
10
Versions
188
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

0.21.2
Source
npm
Version published
Weekly downloads
6.1K
8.59%
Maintainers
10
Weekly downloads
 
Created
Source

@shelf/eslint-config

Install

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

Usage

Backend

JavaScript .eslintrc
{
  "extends": ["@shelf/eslint-config/backend"]
}
TypeScript .eslintrc
{
  "extends": ["@shelf/eslint-config/typescript"]
}

Frontend

JavaScript with React .eslintrc
{
  "extends": ["@shelf/eslint-config/frontend"],
  "settings": {
    "react": {
      "version": "16.7.0"
    }
  },
  "rules": {
    "react/prop-types": "warn"
  }
}
TypeScript .eslintrc
{
  "extends": ["@shelf/eslint-config/frontend-typescript"],
  "settings": {
    "react": {
      "version": "16.7.0"
    }
  },
  "rules": {
    "react/prop-types": "warn"
  }
}
Vue .eslintrc
{
  "extends": ["@shelf/eslint-config/frontend-vue"],
  "rules": {
    "no-unused-vars": ["error", {"vars": "all", "argsIgnorePattern": "^h$"}]
  }
}
Typescript with Vue .eslintrc
{
  "extends": ["@shelf/eslint-config/frontend-typescript-vue"],
  "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

eslint

FAQs

Package last updated on 11 Sep 2020

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