Skip to content

Commit 41ca203

Browse files
committed
[Dev Deps] update markdownlint-cli
1 parent 651280e commit 41ca203

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1590,6 +1590,7 @@ Other Style Guides
15901590
15911591
const isJedi = getProp('jedi');
15921592
```
1593+
15931594
<a name="es2016-properties--exponentiation-operator"></a>
15941595
- [12.3](#es2016-properties--exponentiation-operator) Use exponentiation operator `**` when calculating exponentiations. eslint: [`no-restricted-properties`](https://eslint.org/docs/rules/no-restricted-properties).
15951596

@@ -1703,6 +1704,7 @@ Other Style Guides
17031704
return name;
17041705
}
17051706
```
1707+
17061708
<a name="variables--no-chain-assignment"></a><a name="13.5"></a>
17071709
- [13.5](#variables--no-chain-assignment) Don’t chain variable assignments. eslint: [`no-multi-assign`](https://eslint.org/docs/rules/no-multi-assign)
17081710

linters/.markdownlint.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626

2727
"comment": "MD007: Unordered list indentation: 2 spaces.",
2828
"ul-indent": {
29-
"indent": 2
29+
"indent": 2,
30+
"start_indented": true
3031
},
3132

3233
"comment": "MD009: Disallow trailing spaces!",

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"description": "A mostly reasonable approach to JavaScript.",
55
"scripts": {
66
"preinstall": "npm run install:config && npm run install:config:base",
7+
"postinstall": "rm -rf node_modules/markdownlint-cli/node_modules/markdownlint",
78
"install:config": "cd packages/eslint-config-airbnb && npm prune && npm install",
89
"install:config:base": "cd packages/eslint-config-airbnb-base && npm prune && npm install",
910
"lint": "markdownlint --config linters/.markdownlint.json README.md */README.md",
@@ -39,6 +40,7 @@
3940
},
4041
"homepage": "https://github.com/airbnb/javascript",
4142
"devDependencies": {
42-
"markdownlint-cli": "^0.13.0"
43+
"markdownlint": "^0.19.0",
44+
"markdownlint-cli": "^0.21.0"
4345
}
4446
}

react/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ This style guide is mostly based on the standards that are currently prevalent i
111111
// good
112112
import Footer from './Footer';
113113
```
114+
114115
- **Higher-order Component Naming**: Use a composite of the higher-order component’s name and the passed-in component’s name as the `displayName` on the generated component. For example, the higher-order component `withFoo()`, when passed a component `Bar` should produce a component with a `displayName` of `withFoo(Bar)`.
115116

116117
> Why? A component’s `displayName` may be used by developer tools or in error messages, and having a value that clearly expresses this relationship helps people understand what is happening.

0 commit comments

Comments
 (0)