diff --git a/.eslintrc b/.eslintrc index 3e48e369..24c0ef30 100644 --- a/.eslintrc +++ b/.eslintrc @@ -1,3 +1,7 @@ { - "extends": "./packages/eslint-config/index.js" + "extends": "./packages/eslint-config/index.js", + "rules": { + "new-cap": 0, + "no-console": 0 + } } diff --git a/packages/cp-gql-mock-server/src/resolvers.js b/packages/cp-gql-mock-server/src/resolvers.js index 5a356539..89270099 100644 --- a/packages/cp-gql-mock-server/src/resolvers.js +++ b/packages/cp-gql-mock-server/src/resolvers.js @@ -32,18 +32,21 @@ const getDeploymentGroups = query => .filter(find(cleanQuery(query))) .map(getDeploymentGroupServices); -const getPortal = () => Object.assign({}, portal, { - datacenter, - deploymentGroups: getDeploymentGroups() -}); +const getPortal = () => + Object.assign({}, portal, { + datacenter, + deploymentGroups: getDeploymentGroups() + }); const getServices = query => services.filter(find(query)).map(getDeploymentGroupServices); module.exports = { portal: (options, request, fn) => fn(null, getPortal()), - deploymentGroups: (options, request, fn) => fn(null, getDeploymentGroups(options)), - deploymentGroup: (options, request, fn) => fn(null, getDeploymentGroups(options).shift()), + deploymentGroups: (options, request, fn) => + fn(null, getDeploymentGroups(options)), + deploymentGroup: (options, request, fn) => + fn(null, getDeploymentGroups(options).shift()), services: (options, request, fn) => fn(null, getServices()), service: (options, request, fn) => fn(null, getServices(options).shift()) }; diff --git a/packages/pseudo-yaml-ast/package.json b/packages/pseudo-yaml-ast/package.json index e500f712..ccef879e 100644 --- a/packages/pseudo-yaml-ast/package.json +++ b/packages/pseudo-yaml-ast/package.json @@ -24,7 +24,8 @@ "dist" ], "scripts": { - "lint": "eslint . --fix --format=tap", + "lint": "eslint . --fix", + "lint-ci": "eslint . --format junit --output-file $CIRCLE_TEST_REPORTS/lint/pseudo-yaml-ast.xml", "test:run": "cross-env NODE_ENV=test nyc --reporter=lcov --reporter=text ava", "test-ci:run": "cross-env NODE_ENV=test nyc --reporter=lcov --reporter=text ava --tap | tap-xunit > $CIRCLE_TEST_REPORTS/test/pseudo-yaml-ast.xml", "test": "redrun build test:run", diff --git a/packages/ui-toolkit/package.json b/packages/ui-toolkit/package.json index d787fa73..59a908da 100644 --- a/packages/ui-toolkit/package.json +++ b/packages/ui-toolkit/package.json @@ -9,7 +9,7 @@ "scripts": { "lint:css": "exit 0", "lint-ci:css": "exit 0", - "lint:js": "eslint . --fix --format=tap", + "lint:js": "eslint . --fix", "lint-ci:js": "eslint . --format junit --output-file $CIRCLE_TEST_REPORTS/lint/ui-toolkit.xml", "lint": "redrun -s lint:*", "lint-ci": "redrun -s lint-ci:*", diff --git a/packages/ui-toolkit/src/tooltip/button.js b/packages/ui-toolkit/src/tooltip/button.js index c6ac0ed1..0439e259 100644 --- a/packages/ui-toolkit/src/tooltip/button.js +++ b/packages/ui-toolkit/src/tooltip/button.js @@ -34,7 +34,7 @@ const StyledButton = styled(Button)` } `; -const TooltipButton = (props) => ( +const TooltipButton = props => (