start to add eslint, add repository to package.json

This commit is contained in:
catarak 2016-06-22 19:59:12 -04:00
parent bba0130c72
commit 77cc7b2a8c
3 changed files with 31 additions and 2 deletions

2
.eslintignore Normal file
View file

@ -0,0 +1,2 @@
webpack.config.js
index.js

17
.eslintrc Normal file
View file

@ -0,0 +1,17 @@
{
"extends": "airbnb",
"parser": "babel-eslint",
"env": {
"browser": true,
"node": true,
"mocha": true
},
"ecmaFeatures": {
"jsx": true,
"es6": true,
"classes": true
},
"rules": {
}
}

View file

@ -2,14 +2,19 @@
"name": "p5.js-web-editor",
"version": "0.0.1",
"description": "The web editor for p5.js.",
"main": "server.js",
"scripts": {
"start": "BABEL_DISABLE_CACHE=1 NODE_ENV=development nodemon index.js",
"lint": "eslint client server",
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Cassie Tarakajian",
"license": "ISC",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/catarak/p5.js-web-editor"
},
"devDependencies": {
"babel-eslint": "^6.1.0",
"babel-loader": "^6.2.4",
"babel-plugin-transform-react-constant-elements": "^6.8.0",
"babel-plugin-transform-react-inline-elements": "^6.8.0",
@ -21,6 +26,11 @@
"babel-preset-stage-0": "^6.5.0",
"babel-register": "^6.8.0",
"css-loader": "^0.23.1",
"eslint": "^2.13.1",
"eslint-config-airbnb": "^9.0.1",
"eslint-plugin-import": "^1.9.2",
"eslint-plugin-jsx-a11y": "^1.5.3",
"eslint-plugin-react": "^5.2.2",
"file-loader": "^0.8.5",
"node-sass": "^3.7.0",
"nodemon": "^1.9.2",