6.13.0 • Published 1 year ago
eslint-config-polaris v6.13.0
极星代码规范 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
- With Parser
"parser": "@typescript-eslint/parser"
- 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"
]
6.13.0
1 year ago
6.12.0
1 year ago
6.11.0
1 year ago
6.10.0
1 year ago
6.9.0
1 year ago
6.8.0
1 year ago
6.7.0
1 year ago
6.6.0
1 year ago
6.5.0
1 year ago
6.4.0
1 year ago
6.3.0
1 year ago
6.2.0
1 year ago
6.1.0
2 years ago
6.0.0
2 years ago
5.6.0
2 years ago
5.5.0
2 years ago
5.4.0
2 years ago
5.3.0
2 years ago
5.2.0
2 years ago
5.1.0
2 years ago
5.0.1
2 years ago
5.0.0
2 years ago
4.4.0
2 years ago
4.1.0
2 years ago
4.3.0
2 years ago
4.2.0
2 years ago
4.0.0
2 years ago
3.0.0
2 years ago
2.5.0
2 years ago
2.4.0
2 years ago
2.3.1
2 years ago
2.3.0
2 years ago
2.2.0
2 years ago
2.1.0
2 years ago
2.0.0
2 years ago
1.3.1
2 years ago
1.3.0
2 years ago
1.2.2
2 years ago
1.2.1
2 years ago
1.2.0
2 years ago
1.1.3
2 years ago
1.1.1
2 years ago
1.1.0
2 years ago
1.0.0
2 years ago