mirror of https://github.com/status-im/js-waku.git
Add few tsconfig rules
This commit is contained in:
parent
3ae782d3b4
commit
46f838b379
|
@ -14,18 +14,19 @@
|
||||||
"strict": true /* Enable all strict type-checking options. */,
|
"strict": true /* Enable all strict type-checking options. */,
|
||||||
|
|
||||||
/* Strict Type-Checking Options */
|
/* Strict Type-Checking Options */
|
||||||
// "noImplicitAny": true /* Raise error on expressions and declarations with an implied 'any' type. */,
|
"noImplicitAny": true /* Raise error on expressions and declarations with an implied 'any' type. */,
|
||||||
// "strictNullChecks": true /* Enable strict null checks. */,
|
"strictNullChecks": true /* Enable strict null checks. */,
|
||||||
// "strictFunctionTypes": true /* Enable strict checking of function types. */,
|
"strictFunctionTypes": true /* Enable strict checking of function types. */,
|
||||||
// "strictPropertyInitialization": true /* Enable strict checking of property initialization in classes. */,
|
"strictPropertyInitialization": true /* Enable strict checking of property initialization in classes. */,
|
||||||
// "noImplicitThis": true /* Raise error on 'this' expressions with an implied 'any' type. */,
|
"noImplicitThis": true /* Raise error on 'this' expressions with an implied 'any' type. */,
|
||||||
// "alwaysStrict": true /* Parse in strict mode and emit "use strict" for each source file. */,
|
"alwaysStrict": true /* Parse in strict mode and emit "use strict" for each source file. */,
|
||||||
|
|
||||||
/* Additional Checks */
|
/* Additional Checks */
|
||||||
"noUnusedLocals": true /* Report errors on unused locals. */,
|
"noUnusedLocals": true /* Report errors on unused locals. */,
|
||||||
"noUnusedParameters": true /* Report errors on unused parameters. */,
|
"noUnusedParameters": true /* Report errors on unused parameters. */,
|
||||||
"noImplicitReturns": true /* Report error when not all code paths in function return a value. */,
|
"noImplicitReturns": true /* Report error when not all code paths in function return a value. */,
|
||||||
"noFallthroughCasesInSwitch": true /* Report errors for fallthrough cases in switch statement. */,
|
"noFallthroughCasesInSwitch": true /* Report errors for fallthrough cases in switch statement. */,
|
||||||
|
"forceConsistentCasingInFileNames": true,
|
||||||
|
|
||||||
/* Debugging Options */
|
/* Debugging Options */
|
||||||
"traceResolution": false /* Report module resolution log messages. */,
|
"traceResolution": false /* Report module resolution log messages. */,
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import { multiaddr } from 'multiaddr';
|
import { multiaddr } from 'multiaddr';
|
||||||
import PeerId from 'peer-id';
|
import PeerId from 'peer-id';
|
||||||
import React, { useEffect, useState } from 'react';
|
import { useEffect, useState } from 'react';
|
||||||
import './App.css';
|
import './App.css';
|
||||||
import { ChatMessage } from 'waku-chat/chat_message';
|
import { ChatMessage } from 'waku-chat/chat_message';
|
||||||
import { WakuMessage } from 'waku/waku_message';
|
import { WakuMessage } from 'waku/waku_message';
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"target": "es5",
|
"incremental": true,
|
||||||
|
"target": "es2017",
|
||||||
"lib": ["dom", "dom.iterable", "esnext"],
|
"lib": ["dom", "dom.iterable", "esnext"],
|
||||||
"allowJs": true,
|
"allowJs": true,
|
||||||
"skipLibCheck": true,
|
"skipLibCheck": true,
|
||||||
|
@ -8,6 +9,8 @@
|
||||||
"allowSyntheticDefaultImports": true,
|
"allowSyntheticDefaultImports": true,
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"forceConsistentCasingInFileNames": true,
|
"forceConsistentCasingInFileNames": true,
|
||||||
|
"noUnusedLocals": true,
|
||||||
|
"noUnusedParameters": true,
|
||||||
"noFallthroughCasesInSwitch": true,
|
"noFallthroughCasesInSwitch": true,
|
||||||
"module": "esnext",
|
"module": "esnext",
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "node",
|
||||||
|
|
Loading…
Reference in New Issue