diff --git a/package.json b/package.json index 9b6420779..5214d88d7 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ "eslint-plugin-jsx-a11y": "5.1.1", "eslint-plugin-react": "7.4.0", "gzip-size": "^5.0.0", - "husky": "^0.14.3", + "husky": "^1.0.0-rc.13", "lerna": "^2.11.0", "postcss-flexbugs-fixes": "^3.3.1", "postcss-loader": "^2.1.5", @@ -50,5 +50,10 @@ "rollup-plugin-replace": "^2.0.0", "rollup-plugin-uglify": "^4.0.0" }, - "prettier": {} + "prettier": {}, + "husky": { + "hooks": { + "pre-push": "lerna run lint" + } + } } diff --git a/packages/component-component/.eslintignore b/packages/component-component/.eslintignore new file mode 100644 index 000000000..945ce43a9 --- /dev/null +++ b/packages/component-component/.eslintignore @@ -0,0 +1 @@ +index.js \ No newline at end of file diff --git a/packages/component-component/package.json b/packages/component-component/package.json index 15287f3dd..12dab1bd9 100644 --- a/packages/component-component/package.json +++ b/packages/component-component/package.json @@ -6,7 +6,8 @@ "module": "es/index.js", "scripts": { "test": "jest", - "build": "node ../../shared/build-package" + "build": "node ../../shared/build-package", + "lint": "eslint . --max-warnings=0" }, "author": "Ryan Florence <@ryanflorence>", "license": "MIT", diff --git a/packages/dialog/.eslintignore b/packages/dialog/.eslintignore new file mode 100644 index 000000000..945ce43a9 --- /dev/null +++ b/packages/dialog/.eslintignore @@ -0,0 +1 @@ +index.js \ No newline at end of file diff --git a/packages/dialog/package.json b/packages/dialog/package.json index 8844f5136..58185fdb0 100644 --- a/packages/dialog/package.json +++ b/packages/dialog/package.json @@ -8,7 +8,8 @@ "module": "es/index.js", "scripts": { "test": "echo \"Write some tests you bum!\"", - "build": "node ../../shared/build-package" + "build": "node ../../shared/build-package", + "lint": "eslint . --max-warnings=0" }, "dependencies": { "@reach/component-component": "^0.1.0", diff --git a/packages/menu-button/.eslintignore b/packages/menu-button/.eslintignore new file mode 100644 index 000000000..945ce43a9 --- /dev/null +++ b/packages/menu-button/.eslintignore @@ -0,0 +1 @@ +index.js \ No newline at end of file diff --git a/packages/menu-button/package.json b/packages/menu-button/package.json index 4b0030694..629bcd2fd 100644 --- a/packages/menu-button/package.json +++ b/packages/menu-button/package.json @@ -8,7 +8,8 @@ "module": "es/index.js", "scripts": { "test": "echo \"Write some tests you bum!\"", - "build": "node ../../shared/build-package" + "build": "node ../../shared/build-package", + "lint": "eslint . --max-warnings=0" }, "dependencies": { "@reach/component-component": "^0.1.0", diff --git a/packages/portal/.eslintignore b/packages/portal/.eslintignore new file mode 100644 index 000000000..945ce43a9 --- /dev/null +++ b/packages/portal/.eslintignore @@ -0,0 +1 @@ +index.js \ No newline at end of file diff --git a/packages/portal/package.json b/packages/portal/package.json index e08a661ff..7496c21c1 100644 --- a/packages/portal/package.json +++ b/packages/portal/package.json @@ -6,7 +6,8 @@ "module": "es/index.js", "scripts": { "test": "echo \"Write some tests you bum!\"", - "build": "node ../../shared/build-package" + "build": "node ../../shared/build-package", + "lint": "eslint . --max-warnings=0" }, "dependencies": { "@reach/component-component": "^0.1.0" diff --git a/packages/rect/.eslintignore b/packages/rect/.eslintignore new file mode 100644 index 000000000..945ce43a9 --- /dev/null +++ b/packages/rect/.eslintignore @@ -0,0 +1 @@ +index.js \ No newline at end of file diff --git a/packages/rect/package.json b/packages/rect/package.json index b275bc9da..6b38a1aa6 100644 --- a/packages/rect/package.json +++ b/packages/rect/package.json @@ -6,7 +6,8 @@ "module": "es/index.js", "scripts": { "test": "echo \"Write some tests you bum!\"", - "build": "node ../../shared/build-package" + "build": "node ../../shared/build-package", + "lint": "eslint . --max-warnings=0" }, "dependencies": { "@reach/component-component": "^0.1.0", diff --git a/packages/skip-nav/.eslintignore b/packages/skip-nav/.eslintignore new file mode 100644 index 000000000..945ce43a9 --- /dev/null +++ b/packages/skip-nav/.eslintignore @@ -0,0 +1 @@ +index.js \ No newline at end of file diff --git a/packages/skip-nav/package.json b/packages/skip-nav/package.json index 5694d8d26..74f7d8f50 100644 --- a/packages/skip-nav/package.json +++ b/packages/skip-nav/package.json @@ -6,7 +6,8 @@ "module": "es/index.js", "scripts": { "test": "echo \"Write some tests you bum!\"", - "build": "node ../../shared/build-package" + "build": "node ../../shared/build-package", + "lint": "eslint . --max-warnings=0" }, "peerDependencies": { "react": "^16.4.0", diff --git a/packages/utils/.eslintignore b/packages/utils/.eslintignore new file mode 100644 index 000000000..945ce43a9 --- /dev/null +++ b/packages/utils/.eslintignore @@ -0,0 +1 @@ +index.js \ No newline at end of file diff --git a/packages/utils/package.json b/packages/utils/package.json index 0486ab208..d7cc3ba2e 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -6,7 +6,8 @@ "module": "es/index.js", "scripts": { "test": "echo \"Write some tests you bum!\"", - "build": "node ../../shared/build-package" + "build": "node ../../shared/build-package", + "lint": "eslint . --max-warnings=0" }, "peerDependencies": { "react": "^16.4.0", diff --git a/packages/visually-hidden/.eslintignore b/packages/visually-hidden/.eslintignore new file mode 100644 index 000000000..945ce43a9 --- /dev/null +++ b/packages/visually-hidden/.eslintignore @@ -0,0 +1 @@ +index.js \ No newline at end of file diff --git a/packages/visually-hidden/package.json b/packages/visually-hidden/package.json index 953ba7264..f85aad340 100644 --- a/packages/visually-hidden/package.json +++ b/packages/visually-hidden/package.json @@ -6,7 +6,8 @@ "module": "es/index.js", "scripts": { "test": "echo \"Write some tests you bum!\"", - "build": "node ../../shared/build-package" + "build": "node ../../shared/build-package", + "lint": "eslint . --max-warnings=0" }, "peerDependencies": { "react": "^16.4.0", diff --git a/packages/window-size/.eslintignore b/packages/window-size/.eslintignore new file mode 100644 index 000000000..945ce43a9 --- /dev/null +++ b/packages/window-size/.eslintignore @@ -0,0 +1 @@ +index.js \ No newline at end of file diff --git a/packages/window-size/package.json b/packages/window-size/package.json index 6a4cc99fd..95cf7b53f 100644 --- a/packages/window-size/package.json +++ b/packages/window-size/package.json @@ -6,7 +6,8 @@ "module": "es/index.js", "scripts": { "test": "echo \"Write some tests you bum!\"", - "build": "node ../../shared/build-package" + "build": "node ../../shared/build-package", + "lint": "eslint . --max-warnings=0" }, "dependencies": { "@reach/component-component": "^0.1.0"