Skip to content

Commit fb29d9b

Browse files
author
Kent C. Dodds
committed
add linting 🛃
1 parent dc6bdc8 commit fb29d9b

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

‎.eslintrc‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"node": true,
5+
},
6+
"extends": [
7+
"kentcdodds/best-practices",
8+
"kentcdodds/possible-errors",
9+
],
10+
"rules": {},
11+
}

‎package.json‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"description": "Get random Star Wars names",
55
"main": "src/index.js",
66
"scripts": {
7-
"test": "echo \"Error: no test specified\" && exit 1"
7+
"test": "echo \"Error: no test specified\" && exit 1",
8+
"lint": "eslint src"
89
},
910
"repository": {
1011
"type": "git",
@@ -22,5 +23,9 @@
2223
"homepage": "https://github.com/kentcdodds/starwars-names#readme",
2324
"dependencies": {
2425
"unique-random-array": "1.0.0"
26+
},
27+
"devDependencies": {
28+
"eslint": "3.2.0",
29+
"eslint-config-kentcdodds": "^9.0.0"
2530
}
2631
}

0 commit comments

Comments
 (0)