Skip to content

ESLint shareable config for the True JavaScript style guide

Notifications You must be signed in to change notification settings

true/eslint-config

Repository files navigation

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"
}

ES6+

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

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

{
	"extends": "true/esnext"
}

Browser

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

{
	"extends": "true/browser"
}

React

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

{
    "extends": "true/react"
}

Multiple configs

Or have multiple configs together:

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

License

MIT © True B.V.

About

ESLint shareable config for the True JavaScript style guide

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published