Skip to content

Commit cfe0900

Browse files
committed
JSX: Enforce no spaces before closing brackets (i.e. no <div > or </div >)
Fixes: standard/standard#1348 For: standard/eslint-config-standard-jsx#38
1 parent d5d6823 commit cfe0900

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
1515

1616
- Require Dot Notation Whenever Possible ([dot-notation](https://eslint.org/docs/rules/dot-notation)) [#1344](https://github.com/standard/standard/issues/1344) (6%)
1717
- 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%)
18+
- 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%)
1819
- 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%)
1920

2021
### Changed rules

eslintrc.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
"quotes": ["error", "single", { "avoidEscape": true }],
55
"no-self-assign": ["error", { "props": true }],
66
"import/no-absolute-path": ["error", { "esmodule": true, "commonjs": true, "amd": false }],
7-
"dot-notation": ["error", { "allowKeywords": true }]
7+
"dot-notation": ["error", { "allowKeywords": true }],
8+
9+
"react/jsx-tag-spacing": ["error", { "beforeSelfClosing": "always", "beforeClosing": "never" }]
810
}
911
}

0 commit comments

Comments
 (0)