eslint-config-polaris

6.13.0 • Public • Published

极星代码规范 eslint-config-polaris

This package provides Polaris's base JS .eslintrc as an extensible shared config.

Installation

Install the correct versions of each package, which are listed by the command:

Which produces and runs a command like:

npm install --save-dev
    @typescript-eslint/eslint-plugin@latest
    @typescript-eslint/parser@latest
    eslint@latest
    eslint-config-prettier@latest
    eslint-plugin-import@latest
    eslint-plugin-prettier@latest
    eslint-plugin-react@latest
    eslint-plugin-react-hooks@latest
    typescript@latest
    prettier@latest

or use npm-install-peers

Useage

In your .eslintrc

  1. With Parser
"parser": "@typescript-eslint/parser"
  1. With Extends
 "extends": ["polaris"]

Configuration

Defaults

"extends": [
  "plugin:import/recommended",
  "plugin:import/typescript",
  "eslint:recommended",
  "plugin:react/recommended",
  "plugin:react-hooks/recommended",
  "plugin:react/jsx-runtime",
  "plugin:prettier/recommended",
  "prettier"
]

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
6.13.00latest

Version History

VersionDownloads (Last 7 Days)Published
6.13.00
6.12.00
6.11.00
6.10.00
6.9.00
6.8.00
6.7.00
6.6.00
6.5.00
6.4.00
6.3.00
6.2.00
6.1.00
6.0.00
5.6.00
5.5.00
5.4.00
5.3.00
5.2.00
5.1.00
5.0.10
5.0.00
4.4.00
4.3.00
4.2.00
4.1.00
4.0.00
3.0.00
2.5.00
2.4.00
2.3.10
2.3.00
2.2.00
2.1.00
2.0.00
1.3.10
1.3.00
1.2.20
1.2.10
1.2.00
1.1.30
1.1.10
1.1.00
1.0.00

Package Sidebar

Install

npm i eslint-config-polaris

Weekly Downloads

0

Version

6.13.0

License

MIT

Unpacked Size

20.8 kB

Total Files

12

Last publish

Collaborators

  • lupujiu
  • weishaodaren