Skip to content

Latest commit

 

History

History
74 lines (55 loc) · 1.01 KB

README.md

File metadata and controls

74 lines (55 loc) · 1.01 KB

@shelf/eslint-config

Style Guide

Read our style guide

Install

$ yarn add @shelf/eslint-config --dev

Usage

Backend

import tsConfig from '@shelf/eslint-config/typescript';

export default [...tsConfig];

Frontend

JavaScript with React eslint.config.js

import feConfig from '@shelf/eslint-config/frontend';

export default [
  ...feConfig,
  {
    settings: {
      react: {
        version: '16.7.0',
      },
    },
    rules: {
      "react/prop-types": "warn"
    }
  }
];

TypeScript or TypeScript + Next eslint.config.js

import feTsConfig from '@shelf/eslint-config/frontend-typescript';

export default [
  ...feTsConfig,
  {
    settings: {
      react: {
        version: '16.7.0',
      },
    },
    rules: {
      "react/prop-types": "warn"
    }
  }
];

Publish

$ yarn version
$ git push --tags

License

MIT © Shelf