Browse Source

storage-node: fix lint scripts to be consistent and cover all files

Mokhtar Naamani 4 years ago
parent
commit
bc6f3221f3
2 changed files with 2 additions and 2 deletions
  1. 1 1
      storage-node/package.json
  2. 1 1
      storage-node/packages/cli/package.json

+ 1 - 1
storage-node/package.json

@@ -32,7 +32,7 @@
   ],
   "scripts": {
     "test": "wsrun --serial test",
-    "lint": "eslint --ignore-path .gitignore .",
+    "lint": "eslint --ext .js,.ts --ignore-path .gitignore .",
     "build": "yarn workspace @joystream/storage-cli run build",
     "checks": "yarn lint && prettier . --check",
     "format": "prettier . --write"

+ 1 - 1
storage-node/packages/cli/package.json

@@ -28,7 +28,7 @@
   },
   "scripts": {
     "test": "mocha 'dist/test/**/*.js'",
-    "lint": "eslint --ext .ts,.tsx . && tsc --noEmit --pretty",
+    "lint": "eslint --ext .js,.ts . && tsc --noEmit --pretty",
     "build": "tsc --build"
   },
   "bin": {