From 06a553c7a40af8c1833e14845bdb81168f926773 Mon Sep 17 00:00:00 2001 From: abias Date: Tue, 23 May 2023 08:34:20 -0400 Subject: [PATCH] Hopefully stop lint command from erroring --- .eslintignore | 4 ++++ package.json | 2 +- src/shared/components/app/navbar.tsx | 2 +- tsconfig.json | 6 +++++- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.eslintignore b/.eslintignore index 439fa035..af02c1c4 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,3 +1,7 @@ generate_translations.js webpack.config.js src/api_tests +**/*.png +**/*.css +**/*.scss +**/*.svg \ No newline at end of file diff --git a/package.json b/package.json index e24f602d..43b8883b 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "build:prod": "webpack --mode=production", "clean": "yarn run rimraf dist", "dev": "yarn start", - "lint": "node generate_translations.js && tsc --noEmit && eslint --report-unused-disable-directives --ext .js,.ts,.tsx src && prettier --check \"src/**/*.{ts,tsx,js,css,scss}\"", + "lint": "node generate_translations.js && tsc --noEmit && eslint --report-unused-disable-directives --ext .js,.ts,.tsx \"src/**\" && prettier --check \"src/**/*.{ts,tsx,js,css,scss}\"", "prepare": "husky install", "start": "yarn build:dev --watch" }, diff --git a/src/shared/components/app/navbar.tsx b/src/shared/components/app/navbar.tsx index d508c4ab..d92ec259 100644 --- a/src/shared/components/app/navbar.tsx +++ b/src/shared/components/app/navbar.tsx @@ -612,4 +612,4 @@ export class Navbar extends Component { }); } } -} \ No newline at end of file +} diff --git a/tsconfig.json b/tsconfig.json index 6e6dd19b..3b7d3e41 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -20,5 +20,9 @@ "strictNullChecks": true, "noFallthroughCasesInSwitch": true }, - "include": ["src/**/*", "node_modules/inferno/dist/index.d.ts"] + "include": [ + "src/**/*.ts", + "src/**/*.tsx", + "node_modules/inferno/dist/index.d.ts" + ] }