Skip to content

Commit 2c8c7ea

Browse files
authored
Merge pull request #15 from Exabyte-io/feature/SOF-6169
SOF 6169 - adds prettier and eslint hook
2 parents 660c6ad + ce6a329 commit 2c8c7ea

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+706
-705
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ dist/
22
build/
33
node_modules/
44
.eslintcache
5-
.husky/
65
.nyc_output/
76
.idea/
87

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx lint-staged

package-lock.json

Lines changed: 33 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
"lint": "eslint src tests && prettier --write src tests",
88
"lint:fix": "eslint --fix --cache src tests && prettier --write src tests",
99
"transpile": "babel --out-dir dist src",
10-
"postinstall": "npm run transpile"
10+
"postinstall": "npm run transpile",
11+
"prettier": "prettier --check src tests",
12+
"prepare": "husky install"
1113
},
1214
"repository": {
1315
"type": "git",
@@ -51,17 +53,19 @@
5153
"mathjs": "^3.9.0",
5254
"mixwith": "^0.1.1",
5355
"underscore": "^1.13.3",
54-
"underscore.string": "^3.3.4"
56+
"underscore.string": "^3.3.4",
57+
"uuid": "8.3.2"
5558
},
5659
"devDependencies": {
5760
"chai": "^4.3.4",
5861
"eslint": "7.32.0",
5962
"eslint-config-airbnb": "19.0.2",
6063
"eslint-config-prettier": "8.3.0",
61-
"eslint-plugin-react": "^7.30.0",
6264
"eslint-plugin-import": "2.25.3",
6365
"eslint-plugin-jsdoc": "37.1.0",
6466
"eslint-plugin-jsx-a11y": "6.5.1",
67+
"eslint-plugin-prettier": "4.2.1",
68+
"eslint-plugin-react": "7.30.0",
6569
"eslint-plugin-simple-import-sort": "7.0.0",
6670
"husky": "^7.0.4",
6771
"lint-staged": "^12.1.2",

src/context/index.js

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,26 @@
1-
import { ContextProvider } from "./provider";
2-
import { ContextProviderRegistryContainer } from "./registry";
3-
4-
import { JobContextPickKeysForMixin, WorkflowContextPickKeysForMixin } from "./pickers";
5-
61
import {
72
ApplicationContextMixinBuilder,
3+
JobContextMixin,
84
MaterialContextMixinBuilder,
95
MaterialsContextMixinBuilder,
106
MaterialsSetContextMixin,
117
MethodDataContextMixin,
12-
JobContextMixin,
138
WorkflowContextMixin,
149
} from "./mixins";
10+
import { JobContextPickKeysForMixin, WorkflowContextPickKeysForMixin } from "./pickers";
11+
import { ContextProvider } from "./provider";
12+
import { ContextProviderRegistryContainer } from "./registry";
1513

1614
export {
1715
ContextProvider,
1816
ContextProviderRegistryContainer,
19-
2017
JobContextPickKeysForMixin,
2118
WorkflowContextPickKeysForMixin,
22-
2319
ApplicationContextMixinBuilder,
2420
MaterialContextMixinBuilder,
2521
MaterialsContextMixinBuilder,
2622
MaterialsSetContextMixin,
2723
MethodDataContextMixin,
2824
JobContextMixin,
2925
WorkflowContextMixin,
30-
3126
};

0 commit comments

Comments
 (0)