From: abias Date: Tue, 23 May 2023 12:34:20 +0000 (-0400) Subject: Hopefully stop lint command from erroring X-Git-Url: http://these/git/README.zh.hans.md?a=commitdiff_plain;h=06a553c7a40af8c1833e14845bdb81168f926773;p=lemmy-ui.git Hopefully stop lint command from erroring --- diff --git a/.eslintignore b/.eslintignore index 439fa03..af02c1c 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 e24f602..43b8883 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 d508c4a..d92ec25 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 6e6dd19..3b7d3e4 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" + ] }