Skip to content

Commit ef1bde4

Browse files
nostophiliajustin808
authored andcommitted
Add lint
1 parent 2e0ee79 commit ef1bde4

File tree

3 files changed

+27
-2
lines changed

3 files changed

+27
-2
lines changed

client/.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

client/.eslintrc.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
parser: babel-eslint
3+
4+
extends: eslint-config-shakacode
5+
6+
plugins:
7+
- react
8+
9+
globals:
10+
__DEBUG_SERVER_ERRORS__: true
11+
__SERVER_ERRORS__: true
12+
13+
env:
14+
browser: true
15+
node: true

client/package.json

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,13 @@
88
"scripts": {
99
"build:test": "webpack --config webpack.config.js",
1010
"build:production": "NODE_ENV=production webpack --config webpack.config.js",
11-
"build:development": "webpack -w --config webpack.config.js"
11+
"build:development": "webpack -w --config webpack.config.js",
12+
"eslint": "eslint --ext .js,.jsx ."
1213
},
13-
"cacheDirectories": ["node_modules", "client/node_modules"],
14+
"cacheDirectories": [
15+
"node_modules",
16+
"client/node_modules"
17+
],
1418
"dependencies": {
1519
"babel": "^6.5.2",
1620
"babel-cli": "^6.6.5",
@@ -36,5 +40,10 @@
3640
"webpack": "^1.12.14"
3741
},
3842
"devDependencies": {
43+
"eslint": "^3.10.2",
44+
"eslint-config-shakacode": "^13.1.0",
45+
"eslint-plugin-import": "^2.2.0",
46+
"eslint-plugin-jsx-a11y": "^2.2.3",
47+
"eslint-plugin-react": "^6.7.1"
3948
}
4049
}

0 commit comments

Comments
 (0)