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==",
"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": {
"version": "2.29.0",
"resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz",

View File

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

View File

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

View File

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