0.0.14 • Published 1 year ago

eslint-config-simple v0.0.14

Weekly downloads
1
License
MIT
Repository
github
Last release
1 year ago

eslint-config-simple

Overview

A simple, shareable ESLint configuration meant to be used with prettier. View the config file, (it is pretty small), to see how ESLint is made to work with prettier.

Install

# npm
npm install eslint-config-simple --save-dev

# yarn
yarn add eslint-config-simple --dev

Then add to the extends array in your eslint config file:

{
  extends: ["simple"]
}

Overriding

Since it exports an object it can also be used in the following manner:

// eslint.config.js

"use strict";

// Import simple eslint config.
const config = require("eslint-config-simple");

// Override/add anything to config object:

// Add settings key, for example.
config.settings = {
  react: {
    version: "16.6.3"
  }
};

// Export config.
module.exports = config;

License

This project uses the MIT License.