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:
parent
eac610aeb9
commit
51d63e834c
9
package-lock.json
generated
9
package-lock.json
generated
@ -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",
|
||||
|
@ -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": {
|
||||
|
@ -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>
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user