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

eslint-config-true

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-true

ESLint shareable config for True

  • 0.1.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5
increased by150%
Maintainers
2
Weekly downloads
 
Created
Source

eslint-config-true Build Status

ESLint shareable config for True

Install

$ npm install --save-dev eslint eslint-config-true

For the esnext version you'll also need Babel's ESLint parser and plugin:

$ npm install --save-dev babel-eslint eslint-plugin-babel

For react, you will also need eslint-plugin-react:

$ npm install --save-dev eslint-plugin-react

Usage

Add some ESLint config to your package.json:

{
	"name": "my-awesome-project",
	"eslintConfig": {
		"extends": "true"
	}
}

Or to .eslintrc:

{
	"extends": "true"
}

Supports parsing ES2015, but doesn't enforce it by default.

This package also exposes xo/esnext if you want ES2015+ rules:

{
	"extends": "true/esnext"
}

And true/browser if you're in the browser:

{
	"extends": "true/browser"
}

And true/react if you want React application to be linted:

{
    "extends": "true/react"
}

Or have multiple configs together:

{
    "extends": [
        "true", // base
        "true/esnext", // ES6/7
        "true/react" // React/JSX
    ]
}

License

MIT © True

Keywords

FAQs

Package last updated on 02 Dec 2015

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