NLeSC / create-react-app

Create React apps with no build configuration.
Other
1 stars 1 forks source link

add tslint config and command #20

Closed jspaaks closed 7 years ago

jspaaks commented 7 years ago
sverhoeven commented 7 years ago

Took tslint.json from molviewer and adjusted rules to so example code passes.

sverhoeven commented 7 years ago

Atm tslint shows warnings during npm start, but does not terminate. npm run build does not show warnings and does not terminate.

jspaaks commented 7 years ago
https://github.com/Microsoft/tslint-microsoft-contrib
"react-no-dangerous-html": true,
"react-this-binding-issue": true,
"react-unused-props-and-state": true,
"react-anchor-blank-noopener": true,
"react-tsx-curly-spacing": [true, "never", {"allowMultiline": false}]]

https://github.com/palantir/tslint-react
"jsx-alignment": true,
"jsx-curly-spacing": already covered by tslint-microsoft-contrib/react-tsx-curly-spacing
"jsx-no-lambda": true,
"jsx-no-multiline-js: already covered by tslint-microsoft-contrib/react-tsx-curly-spacing
"jsx-no-string-ref": true,
"jsx-self-close": true