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
13
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.26.0
Source
npm
Version published
Weekly downloads
6.1K
8.59%
Maintainers
13
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$"}]
  }
}
React with testing-library .eslintrc
{
  "extends": ["@shelf/eslint-config/frontend-testing-library"],
  "rules": {
    "testing-library/no-wait-for-empty-callback": "error",
    "testing-library/no-await-sync-query": "error"
  }
}

Publish

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

License

MIT © Shelf

Keywords

eslint

FAQs

Package last updated on 02 Jan 2021

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