Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b8bb1b1

Browse files
eslintrc added with rules, from airbnb style guide
1 parent 78482c9 commit b8bb1b1

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

‎.prettierrc‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"singleQuote": true
3+
}

‎package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
"precommit": "NODE_ENV=production lint-staged",
1616
"lint-staged": {
1717
"*.{js,jsx}": [
18-
"pretty-quick --staged", // pretty quick to format code.
19-
"eslint src/ --fix", // check code agains the eslint rules.
18+
"pretty-quick --staged",
19+
"eslint src/ --fix",
2020
"git add"
2121
]
2222
}

‎src/App.js‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,8 @@ export default App;
2323

2424
// lint-staged: Will run custom script on the filtered files by the extensions like .js or .jsx
2525

26-
// pretty-quick: Will prettify your code.
26+
// pretty-quick: Will prettify your code.
27+
28+
// check code agains the eslint rules.
29+
30+
// pretty quick to format code.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /