Skip to content

Commit

Permalink
Set up pre-push hook for every package
Browse files Browse the repository at this point in the history
  • Loading branch information
Glazy authored and ryanflorence committed Sep 3, 2018
1 parent 1b09b05 commit ad0db58
Show file tree
Hide file tree
Showing 19 changed files with 34 additions and 11 deletions.
9 changes: 7 additions & 2 deletions package.json
Expand Up @@ -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",
Expand All @@ -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"
}
}
}
1 change: 1 addition & 0 deletions packages/component-component/.eslintignore
@@ -0,0 +1 @@
index.js
3 changes: 2 additions & 1 deletion packages/component-component/package.json
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions packages/dialog/.eslintignore
@@ -0,0 +1 @@
index.js
3 changes: 2 additions & 1 deletion packages/dialog/package.json
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions packages/menu-button/.eslintignore
@@ -0,0 +1 @@
index.js
3 changes: 2 additions & 1 deletion packages/menu-button/package.json
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions packages/portal/.eslintignore
@@ -0,0 +1 @@
index.js
3 changes: 2 additions & 1 deletion packages/portal/package.json
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions packages/rect/.eslintignore
@@ -0,0 +1 @@
index.js
3 changes: 2 additions & 1 deletion packages/rect/package.json
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions packages/skip-nav/.eslintignore
@@ -0,0 +1 @@
index.js
3 changes: 2 additions & 1 deletion packages/skip-nav/package.json
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions packages/utils/.eslintignore
@@ -0,0 +1 @@
index.js
3 changes: 2 additions & 1 deletion packages/utils/package.json
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions packages/visually-hidden/.eslintignore
@@ -0,0 +1 @@
index.js
3 changes: 2 additions & 1 deletion packages/visually-hidden/package.json
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions packages/window-size/.eslintignore
@@ -0,0 +1 @@
index.js
3 changes: 2 additions & 1 deletion packages/window-size/package.json
Expand Up @@ -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"
Expand Down

0 comments on commit ad0db58

Please sign in to comment.