diff --git a/libs/remix-astwalker/package.json b/libs/remix-astwalker/package.json index efe10b807a..0097bddf76 100644 --- a/libs/remix-astwalker/package.json +++ b/libs/remix-astwalker/package.json @@ -5,6 +5,7 @@ "main": "dist/index.js", "scripts": { "build": "tsc", + "lint": "standard", "test": "nyc --reporter=lcov --require ts-node/register tape ./tests/*.ts | tap-spec; nyc report ---reporter=text", "prepublish": "npm run build" }, @@ -35,6 +36,7 @@ "@types/tape": "^4.2.33", "nyc": "^13.3.0", "remix-lib": "0.4.29", + "standard": "^14.3.4", "tape": "^4.10.1", "ts-node": "^8.0.3", "typescript": "^3.4.3" diff --git a/libs/remix-lib/package.json b/libs/remix-lib/package.json index c6f0d39754..7e2d45d6e7 100644 --- a/libs/remix-lib/package.json +++ b/libs/remix-lib/package.json @@ -37,6 +37,7 @@ "tape": "^4.6.0" }, "scripts": { + "lint": "standard", "test": "standard && tape ./test/tests.js" }, "repository": { diff --git a/libs/remix-simulator/package.json b/libs/remix-simulator/package.json index 0e31526868..b7f4ba5858 100644 --- a/libs/remix-simulator/package.json +++ b/libs/remix-simulator/package.json @@ -43,6 +43,7 @@ "standard": "^10.0.3" }, "scripts": { + "lint": "standard", "test": "standard && mocha test/" }, "bin": { diff --git a/libs/remix-solidity/package.json b/libs/remix-solidity/package.json index ef9a03f752..49e639566b 100644 --- a/libs/remix-solidity/package.json +++ b/libs/remix-solidity/package.json @@ -36,6 +36,7 @@ }, "scripts": { "build": "tsc", + "lint": "standard", "test": "tsc && tape ./test/tests.js" }, "standard": { diff --git a/libs/remix-tests/package.json b/libs/remix-tests/package.json index 320b844ad4..8e7e6d0d65 100644 --- a/libs/remix-tests/package.json +++ b/libs/remix-tests/package.json @@ -19,6 +19,7 @@ }, "scripts": { "build": "tsc", + "lint": "standard", "test": "tsc && mocha --require ts-node/register tests/*.ts -t 300000", "prepublish": "npm run build" }, diff --git a/package.json b/package.json index 6f4da2fa0d..f13a9b2f71 100644 --- a/package.json +++ b/package.json @@ -27,6 +27,7 @@ "build": "nx build", "test": "nx test", "lint": "nx lint", + "lint:libs": "nx run-many --target=lint --projects=remix-analyzer,remix-astwalker,remix-debug,remix-lib,remix-simulator,remix-solidity,remix-tests,remix-url-resolver", "e2e": "nx e2e", "affected:apps": "nx affected:apps", "affected:libs": "nx affected:libs", diff --git a/workspace.json b/workspace.json index a2336bf306..3793a0734b 100644 --- a/workspace.json +++ b/workspace.json @@ -74,14 +74,14 @@ "schematics": {}, "architect": { "lint": { - "builder": "@nrwl/linter:lint", + "builder": "@nrwl/workspace:run-commands", "options": { - "linter": "eslint", - "config": "apps/remix-ide/.eslintrc", - "tsConfig": [ - "libs/remix-analyzer/tsconfig.lib.json" + "commands": [ + { + "command": "./../../node_modules/.bin/npm-run-all lint" + } ], - "exclude": ["**/node_modules/**", "!libs/remix-analyzer/**"] + "cwd": "libs/remix-analyzer" } }, "test": {}, @@ -104,14 +104,14 @@ "schematics": {}, "architect": { "lint": { - "builder": "@nrwl/linter:lint", + "builder": "@nrwl/workspace:run-commands", "options": { - "linter": "eslint", - "config": "apps/remix-ide/.eslintrc", - "tsConfig": [ - "libs/remix-astwalker/tsconfig.lib.json" + "commands": [ + { + "command": "./../../node_modules/.bin/npm-run-all lint" + } ], - "exclude": ["**/node_modules/**", "!libs/remix-astwalker/**"] + "cwd": "libs/remix-astwalker" } }, "test": {}, @@ -134,12 +134,14 @@ "schematics": {}, "architect": { "lint": { - "builder": "@nrwl/linter:lint", + "builder": "@nrwl/workspace:run-commands", "options": { - "linter": "eslint", - "config": "apps/remix-ide/.eslintrc", - "tsConfig": [], - "exclude": ["**/node_modules/**", "!libs/remix-debug/**"] + "commands": [ + { + "command": "./../../node_modules/.bin/npm-run-all lint" + } + ], + "cwd": "libs/remix-debug" } }, "test": {}, @@ -162,12 +164,14 @@ "schematics": {}, "architect": { "lint": { - "builder": "@nrwl/linter:lint", + "builder": "@nrwl/workspace:run-commands", "options": { - "linter": "eslint", - "config": "apps/remix-ide/.eslintrc", - "tsConfig": [], - "exclude": ["**/node_modules/**", "!libs/remix-lib/**"] + "commands": [ + { + "command": "./../../node_modules/.bin/npm-run-all lint" + } + ], + "cwd": "libs/remix-lib" } }, "test": {}, @@ -190,12 +194,14 @@ "schematics": {}, "architect": { "lint": { - "builder": "@nrwl/linter:lint", + "builder": "@nrwl/workspace:run-commands", "options": { - "linter": "eslint", - "config": "apps/remix-ide/.eslintrc", - "tsConfig": [], - "exclude": ["**/node_modules/**", "!libs/remix-simulator/**"] + "commands": [ + { + "command": "./../../node_modules/.bin/npm-run-all lint" + } + ], + "cwd": "libs/remix-simulator" } }, "test": {}, @@ -218,14 +224,14 @@ "schematics": {}, "architect": { "lint": { - "builder": "@nrwl/linter:lint", + "builder": "@nrwl/workspace:run-commands", "options": { - "linter": "eslint", - "config": "apps/remix-ide/.eslintrc", - "tsConfig": [ - "libs/remix-solidity/tsconfig.lib.json" + "commands": [ + { + "command": "./../../node_modules/.bin/npm-run-all lint" + } ], - "exclude": ["**/node_modules/**", "!libs/remix-solidity/**"] + "cwd": "libs/remix-solidity" } }, "test": {}, @@ -248,14 +254,14 @@ "schematics": {}, "architect": { "lint": { - "builder": "@nrwl/linter:lint", + "builder": "@nrwl/workspace:run-commands", "options": { - "linter": "eslint", - "config": "apps/remix-ide/.eslintrc", - "tsConfig": [ - "libs/remix-tests/tsconfig.lib.json" + "commands": [ + { + "command": "./../../node_modules/.bin/npm-run-all lint" + } ], - "exclude": ["**/node_modules/**", "!libs/remix-tests/**"] + "cwd": "libs/remix-tests" } }, "test": {}, @@ -278,14 +284,14 @@ "schematics": {}, "architect": { "lint": { - "builder": "@nrwl/linter:lint", + "builder": "@nrwl/workspace:run-commands", "options": { - "linter": "eslint", - "config": "apps/remix-ide/.eslintrc", - "tsConfig": [ - "libs/remix-url-resolver/tsconfig.lib.json" + "commands": [ + { + "command": "./../../node_modules/.bin/npm-run-all lint" + } ], - "exclude": ["**/node_modules/**", "!libs/remix-url-resolver/**"] + "cwd": "libs/remix-url-resolver" } }, "test": {},