项目作者: iamnapo

项目描述 :
📝 ESLint shareable config for iamnapo's coding style.
高级语言: JavaScript
项目地址: git://github.com/iamnapo/eslint-config-iamnapo.git
创建时间: 2018-12-12T20:34:19Z
项目社区:https://github.com/iamnapo/eslint-config-iamnapo

开源协议:MIT License

下载


eslint-config-iamnapo

ESLint shareable config for iamnapo’s coding style

build npm style

Install

  1. npm i eslint-config-iamnapo -D

This config requires eslint and (optionally) typescript to be installed.

Usage

Add to your eslint.config.js one of the available configs (default, react, typescript, react-typescript) like so:

  1. import eslintConfigIamnapo from "eslint-config-iamnapo";
  2. const config = [
  3. ...eslintConfigIamnapo.configs.default.map(cfg => ({
  4. ...cfg,
  5. files: [eslintConfigIamnapo.filePatterns.default],
  6. })),
  7. // your overrides
  8. ];
  9. export default config;

[!TIP]
filePatterns contains some helpful patterns about each case, so you won’t have to figure them out yourself.