@microsoft/eslint-config-arbutus

0.0.4 • Public • Published

Eslint Config

An eslintrc base for Arbutus projects.

Get Started

(1) Install dependencies

npm i -D @microsoft/eslint-config-arbutus

(2) Add to .eslintrc

{
  "extends": ["@microsoft/eslint-config-arbutus"]
}

Rationale

Extensions

  • eslint:recommended → Eslint recommended rules for JavaScript.
  • plugin:@typescript-eslint/eslint-recommended → Recommended rules for TypeScript.
  • plugin:@typescript-eslint/recommended →
  • plugin:jsx-a11y/recommended → Recommended rules for accessible interfaces.
  • plugin:react-hooks/recommended → Recommended rules for React Hooks.
  • plugin:react/recommended → Recommended rules for React.
  • prettier → This plugin disables rules from eslint:recommended that should be handled by Prettier.

Additional rules

  • "react/prop-types": "off" → We don't use prop-types; we type props with TypeScript.
  • "simple-import-sort/imports": "error" → Auto sort imports.
  • "simple-import-sort/exports": "error" → Auto sort exports.
  • "padding-line-between-statements" → Rules for blank lines.
  • @rnx-kit/no-export-allWhy is export * bad? — HackMD

Readme

Keywords

none

Package Sidebar

Install

npm i @microsoft/eslint-config-arbutus

Weekly Downloads

0

Version

0.0.4

License

none

Unpacked Size

4.27 kB

Total Files

3

Last publish

Collaborators

  • jinjun-ms
  • riacarmin