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

@silvermine/eslint-config

Package Overview
Dependencies
Maintainers
3
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@silvermine/eslint-config

JS Code Standards for all SilverMine projects - eslint enforcement

  • 2.2.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
312
decreased by-49.1%
Maintainers
3
Weekly downloads
 
Created
Source

Silvermine ESLint Rules

NPM Version License Build Status Dependency Status Dev Dependency Status Conventional Commits

What?

Shareable ESLint configuration for all Silvermine projects.

Why?

Because we need it. Whitespace errors are evil. As are the other hundreds of types of errors this protects us from.

Other Configuration Files Available

In addition to the ESLint rules, this package provides configuration for the following:

  • EditorConfig
    • Provides a default set of editor configuration values to use in Silvermine projects
    • Usage: Symlink the .editorconfig file to the root of your project and use the appropriate extension for your editor.
      • ln -s ./node_modules/@silvermine/eslint-config/.editorconfig
  • commitlint
    • Provides linting for commit messages of Silvermine projects
    • Usage: Add a commitlint.config.js file to the root of the project with the following and then set up commitlint in the project:
      'use strict';
      
      module.exports = {
         extends: [ '@silvermine/eslint-config/commitlint' ],
      };
      

Notes on Semantic Versioning

See the notes we made in eslint-plugin-silvermine regarding our use of version numbers here. The same decisions made for that repo also apply to this repo, basically for the same reasons.

What version should I use?

When choosing which version of this config to use, consider the following:

  • v2.x.x is the newest branch of our config, which allows for ES2015+ features, as well as TypeScript linting. On new projects, we recommend using this branch of the config.
  • v1.x.x is the legacy version of our eslint config. This should primarily be used in legacy es5 projects and with node version < 8.10.0. It does not allow for many es2015+ features, such as spread/rest operators and arrow functions.
    • The v1.x.x branch is not recommended for use in new projects and will only be minimally updated with bug fixes to support legacy code.

License

This software is released under the MIT license. See the license file for more details.

Keywords

FAQs

Package last updated on 05 Apr 2019

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