From 0a8b025c7e8c0c4042a27dc8b7b6b154165b0c5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=CC=81rgio=20Ramos?= Date: Tue, 19 Sep 2017 11:17:20 +0100 Subject: [PATCH] chore: update lint conf --- .eslintignore | 3 +++ .eslintrc | 2 +- package.json | 10 ++++++---- packages/my-joyent/package.json | 2 +- 4 files changed, 11 insertions(+), 6 deletions(-) create mode 100644 .eslintignore diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 00000000..91c1db38 --- /dev/null +++ b/.eslintignore @@ -0,0 +1,3 @@ +packages/*/** +artifacts +reports diff --git a/.eslintrc b/.eslintrc index 24c0ef30..58fb4f4b 100644 --- a/.eslintrc +++ b/.eslintrc @@ -1,5 +1,5 @@ { - "extends": "./packages/eslint-config/index.js", + "extends": "joyent-portal", "rules": { "new-cap": 0, "no-console": 0 diff --git a/package.json b/package.json index 3ce85302..a12cff80 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "lint-license": "./scripts/license-to-fail", "lint-docs": "./scripts/quality-docs", "lint-ci:root": "eslint scripts/*", - "lint:root": "eslint scripts/* --fix", + "lint:root": "eslint . --fix", "lint-ci:packages": "lerna run lint-ci", "lint:packages": "lerna run lint", "lint-ci": "redrun -s lint-ci:*", @@ -27,8 +27,7 @@ "dev:cp-frontend": "lerna run start --scope joyent-cp-frontend", "dev:gql-mock-server": "lerna run dev --scope joyent-cp-gql-mock-server", "commitmsg": "commitlint -e", - "precommit": - "cross-env CI=1 redrun -s lint-staged format-staged test-staged", + "precommit": "cross-env CI=1 redrun -s lint-staged format-staged test-staged", "postinstall": "lerna run prepublish", "commit": "commit" }, @@ -48,6 +47,7 @@ "checksum": "^0.1.1", "cross-env": "^5.0.5", "eslint": "^4.5.0", + "eslint-config-joyent-portal": "^3.0.0", "eslint-config-prettier": "^2.3.0", "eslint-config-react-app": "^2.0.0", "eslint-config-xo-space": "^0.16.0", @@ -69,5 +69,7 @@ "staged-git-files": "0.0.4", "yargs": "^8.0.2" }, - "workspaces": ["packages/*"] + "workspaces": [ + "packages/*" + ] } diff --git a/packages/my-joyent/package.json b/packages/my-joyent/package.json index 1831221b..5cc21da4 100644 --- a/packages/my-joyent/package.json +++ b/packages/my-joyent/package.json @@ -8,7 +8,7 @@ "dev": "REACT_APP_GQL_PORT=4000 PORT=3069 REACT_APP_GQL_PROTOCOL=http react-scripts start", "start": "PORT=3069 react-scripts start", "build": "NODE_ENV=production react-scripts build", - "lint:css": "stylelint './src/**/*.js'", + "lint:css": "echo 0 `# stylelint './src/**/*.js'`", "lint:js": "eslint . --fix", "lint": "redrun -s lint:*", "test": "NODE_ENV=test ./test/run --env=jsdom",