Skip to content
This repository was archived by the owner on Jan 10, 2023. It is now read-only.

Commit c6ea6fa

Browse files
committed
Configured ESLint and Prettier
1 parent a83940c commit c6ea6fa

19 files changed

+199
-4878
lines changed

.eslintignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.history
2+
dist/
3+
example/js/build.js

.eslintrc

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"parser": "babel-eslint",
3+
"extends": [
4+
"standard",
5+
"prettier",
6+
"plugin:react/recommended",
7+
"prettier/standard"
8+
],
9+
"plugins": ["react"],
10+
"rules": {
11+
"react/react-in-jsx-scope": "off",
12+
"react/display-name": "off"
13+
},
14+
"settings": {
15+
"react": {
16+
"version": "detect"
17+
}
18+
}
19+
}

.gitignore

+5-8
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
1-
# ide
2-
.idea
3-
41
# npm
5-
node_modules
6-
npm-debug.log
2+
node_modules/
3+
yarn-error.log
74

8-
# example
5+
# build
6+
dist/
97
example/js/build.js
108

119
# coverage
12-
coverage
13-
.nyc_output
10+
.nyc_output/

.prettierignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.history/
2+
dist/
3+
example/js/build.js

.prettierrc.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"tabWidth": 4,
3+
"printWidth": 80,
4+
"singleQuote": true,
5+
"trailingComma": "all"
6+
}

0 commit comments

Comments
 (0)