Socket
Socket
Sign inDemoInstall

@little-core-labs/eslint-config-12core

Package Overview
Dependencies
Maintainers
3
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@little-core-labs/eslint-config-12core

12Core Shareable eslint config


Version published
Weekly downloads
3
increased by200%
Maintainers
3
Weekly downloads
 
Created
Source

eslint-config-12core

Node.js CI

A shareable eslint config for 12core projects.

Usage

npm i @little-core-labs/eslint-config-12core eslint --save-dev

Then create an .eslintrc.json file in the root of your directory:

{
  "extends": "@little-core-labs/eslint-config-12core"
}

Then run eslint on whatever code you want to lint:

eslint --ext .js esm/

Make the linting step part of your testing script.

What

@little-core-labs/eslint-config-12core bundles standard + standard-jsx with additional consutomizations that work for all of us at little-core-labs.

Because we control the shareable config, the normally peer-dependent eslint plugins are actually included as transient dependencies, so that usage of this config is a lot more convenient (only 2 deps, instead if 5+).

Contributing

If you would like to make rule changes, please submit a PR with some discussion with rational.

Editor plugins

You should use an editor plugin so that you can see the warnings while working, and take advantage of auto formatting:

VSCode

  • ESLint

Sublime

Your favorite editor

... please PR notes you have!

React

If you want to use the standard react plugin, follow these steps:

Install deps

npm i @little-core-labs/eslint-config-12core eslint babel-eslint eslint-config-standard-react --save-dev

Create eslint config

Create a .eslintrc.json with the following.

{
  "parser": "babel-eslint",
  "extends": ["@little-core-labs/eslint-config-12core", "standard-react"]
}

Run eslint

eslint --ext .js esm/

FAQs

Package last updated on 12 May 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

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