@btmills/eslint-config-btmills

My personal ESLint shareable configurations.

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
16May 10, 2021Nov 16, 2015Minified + gzip package size for @btmills/eslint-config-btmills in KB

Readme

eslint-config-btmills

My personal ESLint shareable configurations.

Installation

$ npm install --save-dev eslint @btmills/eslint-config-btmills

If using ES6 modules, install eslint-plugin-import:

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

If using React, install eslint-plugin-react:

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

If using Flow, install babel-eslint and eslint-plugin-flowtype:

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

Usage

Add one of the following lines to your project's .eslintrc.js:

module.exports = {
    "extends": "@btmills/eslint-config-btmills", // Defaults to es5
    "extends": "@btmills/eslint-config-btmills/es5",
    "extends": "@btmills/eslint-config-btmills/es2015",
    "extends": "@btmills/eslint-config-btmills/es2016",
    "extends": "@btmills/eslint-config-btmills/es2017",
    "extends": "@btmills/eslint-config-btmills/es2018",

    // Use React and Flow with a language config by extending multiple configs
    "extends": [
        "@btmills/eslint-config-btmills/es2015",
        "@btmills/eslint-config-btmills/react",
        "@btmills/eslint-config-btmills/flow"
    ]
};

License

MIT © Brandon Mills

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.