start to add eslint, add repository to package.json
This commit is contained in:
parent
bba0130c72
commit
77cc7b2a8c
3 changed files with 31 additions and 2 deletions
2
.eslintignore
Normal file
2
.eslintignore
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
webpack.config.js
|
||||||
|
index.js
|
17
.eslintrc
Normal file
17
.eslintrc
Normal 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": {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
14
package.json
14
package.json
|
@ -2,14 +2,19 @@
|
||||||
"name": "p5.js-web-editor",
|
"name": "p5.js-web-editor",
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"description": "The web editor for p5.js.",
|
"description": "The web editor for p5.js.",
|
||||||
"main": "server.js",
|
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "BABEL_DISABLE_CACHE=1 NODE_ENV=development nodemon index.js",
|
"start": "BABEL_DISABLE_CACHE=1 NODE_ENV=development nodemon index.js",
|
||||||
|
"lint": "eslint client server",
|
||||||
"test": "echo \"Error: no test specified\" && exit 1"
|
"test": "echo \"Error: no test specified\" && exit 1"
|
||||||
},
|
},
|
||||||
"author": "Cassie Tarakajian",
|
"author": "Cassie Tarakajian",
|
||||||
"license": "ISC",
|
"license": "MIT",
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/catarak/p5.js-web-editor"
|
||||||
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"babel-eslint": "^6.1.0",
|
||||||
"babel-loader": "^6.2.4",
|
"babel-loader": "^6.2.4",
|
||||||
"babel-plugin-transform-react-constant-elements": "^6.8.0",
|
"babel-plugin-transform-react-constant-elements": "^6.8.0",
|
||||||
"babel-plugin-transform-react-inline-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-preset-stage-0": "^6.5.0",
|
||||||
"babel-register": "^6.8.0",
|
"babel-register": "^6.8.0",
|
||||||
"css-loader": "^0.23.1",
|
"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",
|
"file-loader": "^0.8.5",
|
||||||
"node-sass": "^3.7.0",
|
"node-sass": "^3.7.0",
|
||||||
"nodemon": "^1.9.2",
|
"nodemon": "^1.9.2",
|
||||||
|
|
Loading…
Reference in a new issue