Skip to content

Commit 65e0c7a

Browse files
committed
Total rewrite
1 parent 5d157c7 commit 65e0c7a

Some content is hidden

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

51 files changed

+24299
-25027
lines changed

.all-contributorsrc

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,31 @@
11
{
22
"projectName": "react-medium-image-zoom",
33
"projectOwner": "rpearce",
4+
"repoType": "github",
5+
"repoHost": "https://github.com",
46
"files": [
57
"README.md"
68
],
79
"imageSize": 100,
810
"commit": true,
911
"contributors": [
12+
{
13+
"login": "rpearce",
14+
"name": "Robert Pearce",
15+
"avatar_url": "https://avatars2.githubusercontent.com/u/592876?v=4",
16+
"profile": "https://robertwpearce.com",
17+
"contributions": [
18+
"code",
19+
"question",
20+
"test",
21+
"bug",
22+
"example",
23+
"design",
24+
"review",
25+
"ideas",
26+
"doc"
27+
]
28+
},
1029
{
1130
"login": "cbothner",
1231
"name": "Cameron Bothner",
@@ -69,23 +88,6 @@
6988
"bug"
7089
]
7190
},
72-
{
73-
"login": "rpearce",
74-
"name": "Robert Pearce",
75-
"avatar_url": "https://avatars2.githubusercontent.com/u/592876?v=4",
76-
"profile": "https://robertwpearce.com",
77-
"contributions": [
78-
"code",
79-
"question",
80-
"test",
81-
"bug",
82-
"example",
83-
"design",
84-
"review",
85-
"ideas",
86-
"doc"
87-
]
88-
},
8991
{
9092
"login": "joshsloat",
9193
"name": "Josh Sloat",
@@ -186,6 +188,5 @@
186188
"bug"
187189
]
188190
}
189-
],
190-
"repoType": "github"
191+
]
191192
}

.babelrc

Lines changed: 0 additions & 7 deletions
This file was deleted.

.eslintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1+
coverage/
12
docs/
3+
node_modules/
4+
src/

.eslintrc

Lines changed: 49 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,62 @@
11
{
22
"env": {
33
"browser": true,
4-
"commonjs": true,
5-
"es6": true
4+
"es6": true,
5+
"jest": true,
6+
"node": true
67
},
78
"extends": [
89
"eslint:recommended",
9-
"plugin:react/recommended",
10+
"plugin:react/recommended"
1011
],
1112
"parserOptions": {
12-
"ecmaFeatures": {
13-
"experimentalObjectRestSpread": true,
14-
"jsx": true
15-
},
13+
"ecmaVersion": 2018,
1614
"sourceType": "module"
1715
},
16+
"plugins": [
17+
"react"
18+
],
1819
"rules": {
19-
"array-bracket-spacing": ["error", "always"],
20-
"camelcase": "error",
21-
"global-require": "error",
22-
"no-console": "warn",
23-
"no-debugger": "warn",
24-
"no-duplicate-imports": "error",
25-
"no-eq-null": "error",
26-
"no-extra-parens": "error",
27-
"no-return-assign": "error",
28-
"no-template-curly-in-string": "error",
29-
"no-trailing-spaces": "error",
30-
"no-useless-constructor": "error",
31-
"object-curly-spacing": ["error", "always"],
32-
"react/display-name": 0,
33-
"react/no-deprecated": 0,
34-
"react/no-find-dom-node": 0,
35-
"react/no-is-mounted": 0,
36-
"react/no-string-refs": 0,
37-
"react/prop-types": 0
20+
"array-bracket-spacing": [ "error", "always" ],
21+
"arrow-spacing": [ "error" ],
22+
"block-spacing": [ "error" ],
23+
"camelcase": [ "error" ],
24+
"comma-dangle": [ "error", "never" ],
25+
"computed-property-spacing": [ "error", "never" ],
26+
"curly": [ "error", "all" ],
27+
"eqeqeq": [ "error", "always" ],
28+
"eol-last": [ "error", "always" ],
29+
"func-call-spacing": [ "error", "never" ],
30+
"indent": [ "error", 2 ],
31+
"linebreak-style": [ "error", "unix" ],
32+
"no-console": "off",
33+
"no-else-return": [ "error" ],
34+
"no-empty-function": [ "error" ],
35+
"no-multiple-empty-lines": [2, { "max": 1, "maxEOF": 1 }],
36+
"no-extra-parens": [ "error" ],
37+
"no-lone-blocks": [ "error" ],
38+
"no-multi-assign": [ "error" ],
39+
"no-new": [ "error" ],
40+
"no-new-func": [ "error" ],
41+
"no-param-reassign": [ "error" ],
42+
"no-return-assign": [ "error" ],
43+
"no-sequences": [ "error" ],
44+
"no-trailing-spaces": [ "error" ],
45+
"no-void": [ "error" ],
46+
"no-with": [ "error" ],
47+
"no-useless-return": [ "error" ],
48+
"object-curly-spacing": [ "error", "always" ],
49+
"quotes": [ "error", "single" ],
50+
"react/jsx-uses-react": "error",
51+
"react/jsx-uses-vars": "error",
52+
"react/jsx-no-undef": "error",
53+
"react/prop-types": 0,
54+
"semi": [ "error", "never" ],
55+
"yoda": [ "error" ]
56+
},
57+
"settings": {
58+
"react": {
59+
"version": "16"
60+
}
3861
}
3962
}

.github/ISSUE_TEMPLATE.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ What actually happened was...
1818
1. Then this...
1919
1. Then this...
2020
21+
## Demo
22+
https://codesandbox.io/s/wwp7n7rr47
23+
2124
## Link to repository/example of behavior
2225
[link to example]()
2326

.gitignore

Lines changed: 29 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@
22
logs
33
*.log
44
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
57

68
# Runtime data
79
pids
810
*.pid
911
*.seed
12+
*.pid.lock
1013

1114
# Directory for instrumented libs generated by jscoverage/JSCover
1215
lib-cov
@@ -20,22 +23,42 @@ coverage
2023
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
2124
.grunt
2225

26+
# Bower dependency directory (https://bower.io/)
27+
bower_components
28+
2329
# node-waf configuration
2430
.lock-wscript
2531

26-
# Compiled binary addons (http://nodejs.org/api/addons.html)
32+
# Compiled binary addons (https://nodejs.org/api/addons.html)
2733
build/Release
2834

2935
# Dependency directories
30-
node_modules
31-
jspm_packages
36+
node_modules/
37+
jspm_packages/
38+
39+
# TypeScript v1 declaration files
40+
typings/
3241

3342
# Optional npm cache directory
3443
.npm
3544

45+
# Optional eslint cache
46+
.eslintcache
47+
3648
# Optional REPL history
3749
.node_repl_history
3850

39-
config.codekit
40-
lib/
41-
.DS_Store
51+
# Output of 'npm pack'
52+
*.tgz
53+
54+
# Yarn Integrity file
55+
.yarn-integrity
56+
57+
# dotenv environment variables file
58+
.env
59+
60+
# next.js build output
61+
.next
62+
63+
src/
64+
*.tmp

.npmignore

Lines changed: 0 additions & 14 deletions
This file was deleted.

.prettierignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.prettierrc

Lines changed: 0 additions & 11 deletions
This file was deleted.

.storybook/addons.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)