{"repo":"palantir/tslint-react","free":true,"listed":false,"github":"https://github.com/palantir/tslint-react","clone":"git clone https://github.com/palantir/tslint-react.git","description":":orange_book: Lint rules related to React & JSX for TSLint.","language":"TypeScript","stars":751,"topics":["tslint","linting-rules","react","jsx","typescript","octo-correct-managed"],"license":"Apache-2.0","category":"ui-components","readme_excerpt":"tslint-react ------------ Lint rules related to React & JSX for TSLint. Usage tslint-react has peer dependencies on TSLint and TypeScript. To use these lint rules with the default preset, use configuration inheritance via the extends keyword. Here's a sample configuration where tslint.json lives adjacent to your node modules folder: To lint your .ts and .tsx files you can simply run tslint -c tslint.json 'src/ / .{ts,tsx}' . Semantic versioning The built-in configuration preset you get with \"extends\": \"tslint-react\" is semantically versioned in a manner similar to TSLint's built-in presets and the TypeScript language itself. As new rules are added to tslint-react across minor versions, stricter checks may be enabled here. Your code is not guaranteed to continue passing checks across these version bumps. If you wish to ensure that npm upgrade or yarn upgrade never breaks your build, declare a tilde dependency on this package (e.g. \" 1.0.0\" ). Rules - jsx-alignment - Enforces a consistent style for multiline JSX elements which promotes ease of editing via line-wise manipulations as well as maintainability via small diffs when changes are made. - jsx-ban-elements (since v3.4.0) - Allows blacklisting of JSX elements with an optional explanatory message in the reported failure. - jsx-ban-props (since v2.3.0) - Allows blacklisting of props in JSX with an optional explanatory message in the reported failure. - jsx-boolean-value (since v2.5.0) - When using a boolean attribute in JSX,","default_branch":null,"files":null,"tree":[],"storefront":"/r/palantir","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/palantir/tslint-react/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}