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

eslint-config-scm

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-scm

Common code style for scm

  • 1.0.9
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-75%
Maintainers
1
Weekly downloads
 
Created
Source

eslint-config-scm

Supply Chain Group Generic Code Specification.

Use eslint-config-scm to start your next project.

Why

At present, the internal project of the group is mainly personal maintenance and development. At the time of development, some people use airbnb and elemefe config or define their own eslint file, which leads to the project coding is not unified, so provide scaffold for next new project.

Rules

Most concerned:

  • tab:2 space
  • semicolon:never

How to use

First install dependencies

default
npm install --save-dev eslint babel-eslint eslint-config-scm
vue
npm install --save-dev eslint babel-eslint eslint-plugin-vue eslint-config-scm
react
npm install --save-dev eslint babel-eslint eslint-plugin-react eslint-plugin-import eslint-plugin-jsx-a11y eslint-config-scm
angular
npm install --save-dev eslint babel-eslint eslint-config-angular eslint-config-scm
react-native
npm install --save-dev eslint babel-eslint eslint-config-react-native eslint-config-scm

Then modify config file

Make a eslint config file(recommend .eslintrc.js) then add the following configuration:

// defalut
{
  extends: 'scm'
}
// vue
{
  extends: 'scm/vue'
}
// react
{
  extends: 'scm/react'
}
// angular
{
  extends: 'scm/angular'
}
// react-native
{
  extends: 'scm/react-native'
}

Contribution

If any problems are found during use, please create issue or submit PR.

Keywords

FAQs

Package last updated on 15 Nov 2017

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