Skip to content

Commit

Permalink
JSX: Enforce no spaces before closing brackets (i.e. no <div > or `…
Browse files Browse the repository at this point in the history
  • Loading branch information
feross committed Aug 3, 2019
1 parent d5d6823 commit cfe0900
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).

- Require Dot Notation Whenever Possible ([dot-notation](https://eslint.org/docs/rules/dot-notation)) [#1344](https://github.com/standard/standard/issues/1344) (6%)
- Forbid import of modules using absolute paths ([import/no-absolute-path](https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-absolute-path.md)) [#861](https://github.com/standard/standard/issues/861) [#1343](https://github.com/standard/standard/issues/1343) (0%)
- JSX: Enforce no spaces before closing brackets (i.e. no `<div >` or `</div >`) [#1348](https://github.com/standard/standard/issues/1348) [eslint-config-standard-jsx/38](https://github.com/standard/eslint-config-standard-jsx/pull/38) (0%)
- Disallow template literals when placeholders or tagged template features are not used. ([quotes](https://eslint.org/docs/rules/quotes)) [#838](https://github.com/standard/standard/issues/838) [eslint-config-standard/#151](https://github.com/standard/eslint-config-standard/pull/151) (1%)

### Changed rules
Expand Down
4 changes: 3 additions & 1 deletion eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
"quotes": ["error", "single", { "avoidEscape": true }],
"no-self-assign": ["error", { "props": true }],
"import/no-absolute-path": ["error", { "esmodule": true, "commonjs": true, "amd": false }],
"dot-notation": ["error", { "allowKeywords": true }]
"dot-notation": ["error", { "allowKeywords": true }],

"react/jsx-tag-spacing": ["error", { "beforeSelfClosing": "always", "beforeClosing": "never" }]
}
}

0 comments on commit cfe0900

Please sign in to comment.