Skip to content

Commit

Permalink
[Dev Deps] update markdownlint-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Feb 7, 2020
1 parent 651280e commit 41ca203
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1590,6 +1590,7 @@ Other Style Guides

const isJedi = getProp('jedi');
```

<a name="es2016-properties--exponentiation-operator"></a>
- [12.3](#es2016-properties--exponentiation-operator) Use exponentiation operator `**` when calculating exponentiations. eslint: [`no-restricted-properties`](https://eslint.org/docs/rules/no-restricted-properties).

Expand Down Expand Up @@ -1703,6 +1704,7 @@ Other Style Guides
return name;
}
```

<a name="variables--no-chain-assignment"></a><a name="13.5"></a>
- [13.5](#variables--no-chain-assignment) Don’t chain variable assignments. eslint: [`no-multi-assign`](https://eslint.org/docs/rules/no-multi-assign)

Expand Down
3 changes: 2 additions & 1 deletion linters/.markdownlint.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@

"comment": "MD007: Unordered list indentation: 2 spaces.",
"ul-indent": {
"indent": 2
"indent": 2,
"start_indented": true
},

"comment": "MD009: Disallow trailing spaces!",
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "A mostly reasonable approach to JavaScript.",
"scripts": {
"preinstall": "npm run install:config && npm run install:config:base",
"postinstall": "rm -rf node_modules/markdownlint-cli/node_modules/markdownlint",
"install:config": "cd packages/eslint-config-airbnb && npm prune && npm install",
"install:config:base": "cd packages/eslint-config-airbnb-base && npm prune && npm install",
"lint": "markdownlint --config linters/.markdownlint.json README.md */README.md",
Expand Down Expand Up @@ -39,6 +40,7 @@
},
"homepage": "https://github.com/airbnb/javascript",
"devDependencies": {
"markdownlint-cli": "^0.13.0"
"markdownlint": "^0.19.0",
"markdownlint-cli": "^0.21.0"
}
}
1 change: 1 addition & 0 deletions react/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ This style guide is mostly based on the standards that are currently prevalent i
// good
import Footer from './Footer';
```

- **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)`.

> 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.
Expand Down

0 comments on commit 41ca203

Please sign in to comment.