Skip to content

Commit ba439ee

Browse files
committed
docs: update peer dependencies installation doc
1 parent 0f4c5b4 commit ba439ee

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,18 @@ My default export contains most of my ESLint rules, including ECMAScript 6+, Typ
1616
npx install-peerdeps --dev eslint-config-bryanberger
1717
```
1818

19+
or
20+
21+
```sh
22+
npm i -D eslint eslint-plugin-import @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint-import-resolver-typescript eslint-plugin-react eslint-plugin-react-hooks eslint-plugin-jsx-a11y
23+
```
24+
25+
or with pnpm:
26+
27+
```sh
28+
pnpm add -D eslint eslint-plugin-import @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint-import-resolver-typescript eslint-plugin-react eslint-plugin-react-hooks eslint-plugin-jsx-a11y
29+
```
30+
1931
#### Extends config
2032

2133
Add `"extends": "bryanberger"` to your `.eslintrc` to extend the entire configuration.

react.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/* eslint-disable @typescript-eslint/no-var-requires */
22
/* eslint-disable no-magic-numbers */
3+
// eslint-disable-next-line @typescript-eslint/no-require-imports
34
const baseStyleRules = require('./javascript/style').rules;
45

56
const dangleRules = baseStyleRules[ 'no-underscore-dangle' ];
@@ -123,7 +124,7 @@ module.exports = {
123124
// https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-max-props-per-line.md
124125
'react/jsx-max-props-per-line': [ 'error', {
125126
maximum: 1,
126-
when: 'multiline',
127+
when: 'always',
127128
} ],
128129

129130
// Prevent usage of .bind() in JSX props
@@ -169,7 +170,7 @@ module.exports = {
169170

170171
// Enforce props alphabetical sorting
171172
// https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-sort-props.md
172-
'react/jsx-sort-props': [ 'off', {
173+
'react/jsx-sort-props': [ 'warn', {
173174
ignoreCase: true,
174175
callbacksLast: false,
175176
shorthandFirst: false,

0 commit comments

Comments
 (0)