Commit 845b93a8 authored by aniket-engg's avatar aniket-engg

linting done for libs

parent 42cad01f
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
"main": "dist/index.js", "main": "dist/index.js",
"scripts": { "scripts": {
"build": "tsc", "build": "tsc",
"lint": "standard",
"test": "nyc --reporter=lcov --require ts-node/register tape ./tests/*.ts | tap-spec; nyc report ---reporter=text", "test": "nyc --reporter=lcov --require ts-node/register tape ./tests/*.ts | tap-spec; nyc report ---reporter=text",
"prepublish": "npm run build" "prepublish": "npm run build"
}, },
...@@ -35,6 +36,7 @@ ...@@ -35,6 +36,7 @@
"@types/tape": "^4.2.33", "@types/tape": "^4.2.33",
"nyc": "^13.3.0", "nyc": "^13.3.0",
"remix-lib": "0.4.29", "remix-lib": "0.4.29",
"standard": "^14.3.4",
"tape": "^4.10.1", "tape": "^4.10.1",
"ts-node": "^8.0.3", "ts-node": "^8.0.3",
"typescript": "^3.4.3" "typescript": "^3.4.3"
......
...@@ -37,6 +37,7 @@ ...@@ -37,6 +37,7 @@
"tape": "^4.6.0" "tape": "^4.6.0"
}, },
"scripts": { "scripts": {
"lint": "standard",
"test": "standard && tape ./test/tests.js" "test": "standard && tape ./test/tests.js"
}, },
"repository": { "repository": {
......
...@@ -43,6 +43,7 @@ ...@@ -43,6 +43,7 @@
"standard": "^10.0.3" "standard": "^10.0.3"
}, },
"scripts": { "scripts": {
"lint": "standard",
"test": "standard && mocha test/" "test": "standard && mocha test/"
}, },
"bin": { "bin": {
......
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
}, },
"scripts": { "scripts": {
"build": "tsc", "build": "tsc",
"lint": "standard",
"test": "tsc && tape ./test/tests.js" "test": "tsc && tape ./test/tests.js"
}, },
"standard": { "standard": {
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
}, },
"scripts": { "scripts": {
"build": "tsc", "build": "tsc",
"lint": "standard",
"test": "tsc && mocha --require ts-node/register tests/*.ts -t 300000", "test": "tsc && mocha --require ts-node/register tests/*.ts -t 300000",
"prepublish": "npm run build" "prepublish": "npm run build"
}, },
......
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
"build": "nx build", "build": "nx build",
"test": "nx test", "test": "nx test",
"lint": "nx lint", "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", "e2e": "nx e2e",
"affected:apps": "nx affected:apps", "affected:apps": "nx affected:apps",
"affected:libs": "nx affected:libs", "affected:libs": "nx affected:libs",
......
...@@ -74,14 +74,14 @@ ...@@ -74,14 +74,14 @@
"schematics": {}, "schematics": {},
"architect": { "architect": {
"lint": { "lint": {
"builder": "@nrwl/linter:lint", "builder": "@nrwl/workspace:run-commands",
"options": { "options": {
"linter": "eslint", "commands": [
"config": "apps/remix-ide/.eslintrc", {
"tsConfig": [ "command": "./../../node_modules/.bin/npm-run-all lint"
"libs/remix-analyzer/tsconfig.lib.json" }
], ],
"exclude": ["**/node_modules/**", "!libs/remix-analyzer/**"] "cwd": "libs/remix-analyzer"
} }
}, },
"test": {}, "test": {},
...@@ -104,14 +104,14 @@ ...@@ -104,14 +104,14 @@
"schematics": {}, "schematics": {},
"architect": { "architect": {
"lint": { "lint": {
"builder": "@nrwl/linter:lint", "builder": "@nrwl/workspace:run-commands",
"options": { "options": {
"linter": "eslint", "commands": [
"config": "apps/remix-ide/.eslintrc", {
"tsConfig": [ "command": "./../../node_modules/.bin/npm-run-all lint"
"libs/remix-astwalker/tsconfig.lib.json" }
], ],
"exclude": ["**/node_modules/**", "!libs/remix-astwalker/**"] "cwd": "libs/remix-astwalker"
} }
}, },
"test": {}, "test": {},
...@@ -134,12 +134,14 @@ ...@@ -134,12 +134,14 @@
"schematics": {}, "schematics": {},
"architect": { "architect": {
"lint": { "lint": {
"builder": "@nrwl/linter:lint", "builder": "@nrwl/workspace:run-commands",
"options": { "options": {
"linter": "eslint", "commands": [
"config": "apps/remix-ide/.eslintrc", {
"tsConfig": [], "command": "./../../node_modules/.bin/npm-run-all lint"
"exclude": ["**/node_modules/**", "!libs/remix-debug/**"] }
],
"cwd": "libs/remix-debug"
} }
}, },
"test": {}, "test": {},
...@@ -162,12 +164,14 @@ ...@@ -162,12 +164,14 @@
"schematics": {}, "schematics": {},
"architect": { "architect": {
"lint": { "lint": {
"builder": "@nrwl/linter:lint", "builder": "@nrwl/workspace:run-commands",
"options": { "options": {
"linter": "eslint", "commands": [
"config": "apps/remix-ide/.eslintrc", {
"tsConfig": [], "command": "./../../node_modules/.bin/npm-run-all lint"
"exclude": ["**/node_modules/**", "!libs/remix-lib/**"] }
],
"cwd": "libs/remix-lib"
} }
}, },
"test": {}, "test": {},
...@@ -190,12 +194,14 @@ ...@@ -190,12 +194,14 @@
"schematics": {}, "schematics": {},
"architect": { "architect": {
"lint": { "lint": {
"builder": "@nrwl/linter:lint", "builder": "@nrwl/workspace:run-commands",
"options": { "options": {
"linter": "eslint", "commands": [
"config": "apps/remix-ide/.eslintrc", {
"tsConfig": [], "command": "./../../node_modules/.bin/npm-run-all lint"
"exclude": ["**/node_modules/**", "!libs/remix-simulator/**"] }
],
"cwd": "libs/remix-simulator"
} }
}, },
"test": {}, "test": {},
...@@ -218,14 +224,14 @@ ...@@ -218,14 +224,14 @@
"schematics": {}, "schematics": {},
"architect": { "architect": {
"lint": { "lint": {
"builder": "@nrwl/linter:lint", "builder": "@nrwl/workspace:run-commands",
"options": { "options": {
"linter": "eslint", "commands": [
"config": "apps/remix-ide/.eslintrc", {
"tsConfig": [ "command": "./../../node_modules/.bin/npm-run-all lint"
"libs/remix-solidity/tsconfig.lib.json" }
], ],
"exclude": ["**/node_modules/**", "!libs/remix-solidity/**"] "cwd": "libs/remix-solidity"
} }
}, },
"test": {}, "test": {},
...@@ -248,14 +254,14 @@ ...@@ -248,14 +254,14 @@
"schematics": {}, "schematics": {},
"architect": { "architect": {
"lint": { "lint": {
"builder": "@nrwl/linter:lint", "builder": "@nrwl/workspace:run-commands",
"options": { "options": {
"linter": "eslint", "commands": [
"config": "apps/remix-ide/.eslintrc", {
"tsConfig": [ "command": "./../../node_modules/.bin/npm-run-all lint"
"libs/remix-tests/tsconfig.lib.json" }
], ],
"exclude": ["**/node_modules/**", "!libs/remix-tests/**"] "cwd": "libs/remix-tests"
} }
}, },
"test": {}, "test": {},
...@@ -278,14 +284,14 @@ ...@@ -278,14 +284,14 @@
"schematics": {}, "schematics": {},
"architect": { "architect": {
"lint": { "lint": {
"builder": "@nrwl/linter:lint", "builder": "@nrwl/workspace:run-commands",
"options": { "options": {
"linter": "eslint", "commands": [
"config": "apps/remix-ide/.eslintrc", {
"tsConfig": [ "command": "./../../node_modules/.bin/npm-run-all lint"
"libs/remix-url-resolver/tsconfig.lib.json" }
], ],
"exclude": ["**/node_modules/**", "!libs/remix-url-resolver/**"] "cwd": "libs/remix-url-resolver"
} }
}, },
"test": {}, "test": {},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment