0.1.1 • Published 7 years ago

eslint-config-samrap v0.1.1

Weekly downloads
1
License
MIT
Repository
-
Last release
7 years ago

eslint-config-samrap

Build Status

An ESLint configuration for my personal tastes. As a PHP developer, I find certain conventions in the JavaScript community (especially 2 space indents) to be unreadable and impractical. This ESLint config takes the best practices and error checking from eslint:recommended and combines it with the style conventions of the PHP community, specifically from PSR-2 and Laravel. The result is a well-configured linter that promotes clean and readable code and is not as restrictive as the shareable configs from larger companies such as AirBNB and Google.

Installation

yarn add eslint eslint-config-samrap

Or, if you prefer NPM over Yarn: (Why though?)

npm install eslint eslint-config-samrap

Usage

After installing eslint-config-samrap as a dependency, you can extend the configuration in your ESLint Configuration:

{
    "extends": "samrap",
    "rules": {
        // Add or override rules here...
    }
}