1
0
mirror of https://github.com/oceanprotocol/commons.git synced 2023-03-15 18:03:00 +01:00

add tslint-react rules

This commit is contained in:
Matthias Kretschmann 2019-01-23 11:47:47 +01:00
parent eac610aeb9
commit 51d63e834c
Signed by: m
GPG Key ID: 606EEEF3C479A91F
4 changed files with 12 additions and 2 deletions

9
package-lock.json generated
View File

@ -19395,6 +19395,15 @@
"integrity": "sha512-NKWNkThwqE4Snn4Cm6SZB7lV5RMDDFsBwz6fWUkTxOKGjMx8ycOHnjIbhn7dZd5XmssW3CwqUjlANR6EhP9YQw==", "integrity": "sha512-NKWNkThwqE4Snn4Cm6SZB7lV5RMDDFsBwz6fWUkTxOKGjMx8ycOHnjIbhn7dZd5XmssW3CwqUjlANR6EhP9YQw==",
"dev": true "dev": true
}, },
"tslint-react": {
"version": "3.6.0",
"resolved": "https://registry.npmjs.org/tslint-react/-/tslint-react-3.6.0.tgz",
"integrity": "sha512-AIv1QcsSnj7e9pFir6cJ6vIncTqxfqeFF3Lzh8SuuBljueYzEAtByuB6zMaD27BL0xhMEqsZ9s5eHuCONydjBw==",
"dev": true,
"requires": {
"tsutils": "^2.13.1"
}
},
"tsutils": { "tsutils": {
"version": "2.29.0", "version": "2.29.0",
"resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz", "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz",

View File

@ -35,6 +35,7 @@
"stylelint-config-standard": "^18.2.0", "stylelint-config-standard": "^18.2.0",
"tslint": "^5.12.1", "tslint": "^5.12.1",
"tslint-config-prettier": "^1.17.0", "tslint-config-prettier": "^1.17.0",
"tslint-react": "^3.6.0",
"typescript": "3.2.4" "typescript": "3.2.4"
}, },
"eslintConfig": { "eslintConfig": {

View File

@ -6,7 +6,7 @@ import NotFound from './pages/NotFound'
const Routes = () => ( const Routes = () => (
<Router> <Router>
<Switch> <Switch>
<Route exact component={Home} path="/" /> <Route exact={true} component={Home} path="/" />
<Route component={NotFound} /> <Route component={NotFound} />
</Switch> </Switch>
</Router> </Router>

View File

@ -1,6 +1,6 @@
{ {
"defaultSeverity": "error", "defaultSeverity": "error",
"extends": ["tslint:recommended", "tslint-config-prettier"], "extends": ["tslint:recommended", "tslint-config-prettier", "tslint-react"],
"jsRules": {}, "jsRules": {},
"rules": { "rules": {
"object-literal-sort-keys": false, "object-literal-sort-keys": false,