Skip to content

Commit d7d298e

Browse files
committed
prettier
1 parent 0210919 commit d7d298e

File tree

5 files changed

+1767
-0
lines changed

5 files changed

+1767
-0
lines changed

.eslintignore

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
.DS_Store
8+
9+
# Runtime data
10+
pids
11+
*.pid
12+
*.seed
13+
*.pid.lock
14+
15+
# Directory for instrumented libs generated by jscoverage/JSCover
16+
lib-cov
17+
18+
# Coverage directory used by tools like istanbul
19+
coverage
20+
21+
# nyc test coverage
22+
.nyc_output
23+
24+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
25+
.grunt
26+
27+
# Bower dependency directory (https://bower.io/)
28+
bower_components
29+
30+
# node-waf configuration
31+
.lock-wscript
32+
33+
# Compiled binary addons (http://nodejs.org/api/addons.html)
34+
build/Release
35+
36+
# Dependency directories
37+
node_modules/
38+
jspm_packages/
39+
40+
# Typescript v1 declaration files
41+
typings/
42+
43+
# Optional npm cache directory
44+
.npm
45+
46+
# Optional eslint cache
47+
.eslintcache
48+
49+
# Optional REPL history
50+
.node_repl_history
51+
52+
# Output of 'npm pack'
53+
*.tgz
54+
55+
# Yarn Integrity file
56+
.yarn-integrity
57+
58+
# dotenv environment variables file
59+
.env
60+
61+
.cache/
62+
public
63+
yarn-error.log

.eslintrc.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
module.exports = {
2+
env: {
3+
browser: true,
4+
es6: true
5+
},
6+
extends: ["airbnb", "prettier", "prettier/react"],
7+
globals: {
8+
Atomics: "readonly",
9+
SharedArrayBuffer: "readonly"
10+
},
11+
rules: {
12+
"react/jsx-filename-extension": "off"
13+
},
14+
parserOptions: {
15+
ecmaFeatures: {
16+
jsx: true
17+
},
18+
ecmaVersion: 2018,
19+
sourceType: "module"
20+
},
21+
plugins: ["react"]
22+
};

.prettierignore

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
.DS_Store
8+
9+
# Runtime data
10+
pids
11+
*.pid
12+
*.seed
13+
*.pid.lock
14+
15+
# Directory for instrumented libs generated by jscoverage/JSCover
16+
lib-cov
17+
18+
# Coverage directory used by tools like istanbul
19+
coverage
20+
21+
# nyc test coverage
22+
.nyc_output
23+
24+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
25+
.grunt
26+
27+
# Bower dependency directory (https://bower.io/)
28+
bower_components
29+
30+
# node-waf configuration
31+
.lock-wscript
32+
33+
# Compiled binary addons (http://nodejs.org/api/addons.html)
34+
build/Release
35+
36+
# Dependency directories
37+
node_modules/
38+
jspm_packages/
39+
40+
# Typescript v1 declaration files
41+
typings/
42+
43+
# Optional npm cache directory
44+
.npm
45+
46+
# Optional eslint cache
47+
.eslintcache
48+
49+
# Optional REPL history
50+
.node_repl_history
51+
52+
# Output of 'npm pack'
53+
*.tgz
54+
55+
# Yarn Integrity file
56+
.yarn-integrity
57+
58+
# dotenv environment variables file
59+
.env
60+
61+
.cache/
62+
public
63+
yarn-error.log

package.json

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"name": "react-shelf",
3+
"version": "0.0.0",
4+
"description": "Swipable shelf",
5+
"main": "dist/index.js",
6+
"scripts": {
7+
"test": "yarn test:eslint && yarn test:prettier",
8+
"test:eslint": "eslint '**/*.js'",
9+
"test:prettier": "prettier \"**/*.{js,jsx,css,scss,json,md,mdx,html}\" --list-different",
10+
"format": "prettier \"**/*.{js,jsx,css,scss,json,md,mdx,html}\" --write"
11+
},
12+
"repository": {
13+
"type": "git",
14+
"url": "git+https://github.com/julesforrest/react-shelf.git"
15+
},
16+
"keywords": [
17+
"react",
18+
"shelf"
19+
],
20+
"author": "Jules Forrest",
21+
"license": "MIT",
22+
"bugs": {
23+
"url": "https://github.com/julesforrest/react-shelf/issues"
24+
},
25+
"homepage": "https://github.com/julesforrest/react-shelf#readme",
26+
"dependencies": {},
27+
"devDependencies": {
28+
"eslint": "^5.15.3",
29+
"eslint-config-airbnb": "^17.1.0",
30+
"eslint-config-prettier": "^4.1.0",
31+
"eslint-plugin-import": "^2.16.0",
32+
"eslint-plugin-jsx-a11y": "^6.2.1",
33+
"eslint-plugin-react": "^7.12.4",
34+
"husky": "^1.3.1",
35+
"prettier": "1.16.4",
36+
"pretty-quick": "^1.10.0"
37+
},
38+
"husky": {
39+
"hooks": {
40+
"pre-commit": "pretty-quick --staged"
41+
}
42+
}
43+
}

0 commit comments

Comments
 (0)