1.0.0 • Published 8 years ago

eslint-config-prlb v1.0.0

Weekly downloads
4
License
Apache-2.0
Repository
github
Last release
8 years ago

eslint-config-prlb

ESLint shareable config for the Google JavaScript style guide on which this is based

Usage

Once the eslint-config-prlb package is installed, you can use it by specifying prlb in the extends section of your ESLint configuration.

{
	"extends": "prlb",
	"rules": {
		// Additional, per-project rules...
	}
}

Using the prlb config with eslint:recommended

There are several rules in the eslint:recommended ruleset that this style is not opinionated about that you might want to enforce in your project.

To use this style in conjunction with ESLint's recommended rule set, extend them both, making sure to list prlb last:

{
	"extends": ["eslint:recommended", "prlb"],
	"rules": {
		// Additional, per-project rules...
	}
}

To see how the prlb config compares with eslint:recommended, refer to the source code of index.js, which lists every ESLint rule along with whether (and how) it is enforced by the prlb config. For more on how the Google style differs from this fork, visit the eslint-config-google repository.

License

Apache-2