From 77cc7b2a8c0efcb1bbdcada41e63fd46539ff5d5 Mon Sep 17 00:00:00 2001 From: catarak Date: Wed, 22 Jun 2016 19:59:12 -0400 Subject: [PATCH] start to add eslint, add repository to package.json --- .eslintignore | 2 ++ .eslintrc | 17 +++++++++++++++++ package.json | 14 ++++++++++++-- 3 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 .eslintignore create mode 100644 .eslintrc diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 00000000..8d1287fa --- /dev/null +++ b/.eslintignore @@ -0,0 +1,2 @@ +webpack.config.js +index.js \ No newline at end of file diff --git a/.eslintrc b/.eslintrc new file mode 100644 index 00000000..48b0e6b8 --- /dev/null +++ b/.eslintrc @@ -0,0 +1,17 @@ +{ + "extends": "airbnb", + "parser": "babel-eslint", + "env": { + "browser": true, + "node": true, + "mocha": true + }, + "ecmaFeatures": { + "jsx": true, + "es6": true, + "classes": true + }, + "rules": { + + } +} \ No newline at end of file diff --git a/package.json b/package.json index 5bcbb4e9..a8e31273 100644 --- a/package.json +++ b/package.json @@ -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",