]> Untitled Git - lemmy-ui.git/commitdiff
Hopefully stop lint command from erroring
authorabias <abias1122@gmail.com>
Tue, 23 May 2023 12:34:20 +0000 (08:34 -0400)
committerabias <abias1122@gmail.com>
Tue, 23 May 2023 12:34:20 +0000 (08:34 -0400)
.eslintignore
package.json
src/shared/components/app/navbar.tsx
tsconfig.json

index 439fa035a6c6783acb712946cf5ec33534588b6c..af02c1c4ec18856bf295f25481ee6618733cbcce 100644 (file)
@@ -1,3 +1,7 @@
 generate_translations.js
 webpack.config.js
 src/api_tests
+**/*.png
+**/*.css
+**/*.scss
+**/*.svg
\ No newline at end of file
index e24f602d01a5bf921216d0eaae934ae5162fed19..43b8883bc58a7cd07fa4399f760c18bdc21b8fba 100644 (file)
@@ -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"
   },
index d508c4abae7db2d9085a9eb2332aa9084b8f4aea..d92ec259443f144987968190c81e3d56514a030f 100644 (file)
@@ -612,4 +612,4 @@ export class Navbar extends Component<NavbarProps, NavbarState> {
       });
     }
   }
-}
\ No newline at end of file
+}
index 6e6dd19b0498138bbd9e125af41eca6bad68e576..3b7d3e41049b11e75a1cb10910b39aef10882afc 100644 (file)
@@ -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"
+  ]
 }