@gomarry/eslint-config-gomarry

1.0.4 • Public • Published

eslint-config-gomarry 🏆

Travis version npm-version

Gomarry ESLint config utilizing Flow/TypeScript, Prettier, Jest, React and React Native.

Plugins and configs used:

Default config:

{
  "env": {
    "es6": true,
    "node": true,
    "react-native/react-native": true
  }
}

Node config:

{
  "env": {
    "es6": true,
    "node": true
  }
}

Installation

yarn add --dev eslint @gomarry/eslint-config-gomarry

Note: We're using yarn to install deps. Feel free to change commands to use npm 3+ and npx if you like

Usage

Add to your ESLint config (.eslintrc, or eslintConfig field in package.json):

{
  "extends": "@gomarry"
}

or for Node.js projects:

{
  "extends": "@gomarry/eslint-config-gomarry/node"
}

Example of extending the configuration

{
  "extends": "@gomarry",
  "rules": {
    "global-require": 0,
    "prefer-destructuring": 0
  }
}

TypeScript

In order to use this config in TypeScript project make sure you have installed following dependencies:

Then when running ESLint add --ext '.js,.ts' (you might need also .jsx, .tsx) option, for example:

yarn eslint --ext '.js,.ts' ./src

Package Sidebar

Install

npm i @gomarry/eslint-config-gomarry

Weekly Downloads

5

Version

1.0.4

License

MIT

Unpacked Size

9.56 kB

Total Files

7

Last publish

Collaborators

  • usamaliaquat