diff --git a/.eslintrc.json b/.eslintrc.json index 28164af..4cacd71 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -32,6 +32,6 @@ "require-atomic-updates": "off", "@typescript-eslint/no-explicit-any": "error", "@typescript-eslint/camelcase": "off", - "@typescript-eslint/interface-name-prefix": ["error", { "prefixWithI": "always" }] + "@typescript-eslint/interface-name-prefix": "off" } } \ No newline at end of file diff --git a/package.json b/package.json index d31f6f0..e50a54c 100644 --- a/package.json +++ b/package.json @@ -31,6 +31,7 @@ "@types/mongoose": "^5.5.29", "@types/node-fetch": "^2.5.3", "@types/parse-link-header": "^1.0.0", + "@types/pug": "^2.0.4", "@types/react": "^16.9.11", "@types/react-dom": "^16.9.3", "@types/react-router-dom": "^5.1.2", diff --git a/src/client/components/question.tsx b/src/client/components/question.tsx index e08a467..bda6217 100644 --- a/src/client/components/question.tsx +++ b/src/client/components/question.tsx @@ -1,4 +1,4 @@ -import * as moment from 'moment'; +import moment from 'moment'; import * as React from 'react'; import { Link } from 'react-router-dom'; import { Button, Card, CardBody, CardSubtitle, CardText, CardTitle, FormGroup, Input } from 'reactstrap'; diff --git a/tsconfig.json b/tsconfig.json index 6ec68a1..5643af4 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -56,7 +56,7 @@ "noImplicitReturns": true, "noImplicitThis": true, "noUnusedLocals": false, - "noUnusedParameters": true, + "noUnusedParameters": false, "strictPropertyInitialization": true, "strictNullChecks": true, "removeComments": true, diff --git a/yarn.lock b/yarn.lock index a3701f7..c1c9787 100644 --- a/yarn.lock +++ b/yarn.lock @@ -282,6 +282,11 @@ resolved "https://registry.yarnpkg.com/@types/prop-types/-/prop-types-15.7.3.tgz#2ab0d5da2e5815f94b0b9d4b95d1e5f243ab2ca7" integrity sha512-KfRL3PuHmqQLOG+2tGpRO26Ctg+Cq1E01D2DMriKEATHgWLfeNDmq9e29Q9WIky0dQ3NPkd1mzYH8Lm936Z9qw== +"@types/pug@^2.0.4": + version "2.0.4" + resolved "https://registry.yarnpkg.com/@types/pug/-/pug-2.0.4.tgz#8772fcd0418e3cd2cc171555d73007415051f4b2" + integrity sha1-h3L80EGOPNLMFxVV1zAHQVBR9LI= + "@types/range-parser@*": version "1.2.3" resolved "https://registry.yarnpkg.com/@types/range-parser/-/range-parser-1.2.3.tgz#7ee330ba7caafb98090bece86a5ee44115904c2c"