Install eslint

pull/1/head
sundowndev 2018-11-13 11:15:47 +01:00
parent b3481c3f73
commit b1abecc262
4 changed files with 1461 additions and 2 deletions

2
.eslintignore Normal file
View File

@ -0,0 +1,2 @@
docs
ode_modules

3
.eslintrc.json Normal file
View File

@ -0,0 +1,3 @@
{
"extends": "airbnb-base"
}

1448
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -12,14 +12,20 @@
"passport": "^0.4.0"
},
"devDependencies": {
"apidoc": "^0.17.7"
"apidoc": "^0.17.7",
"eslint": "^5.9.0",
"eslint-config-airbnb": "^17.1.0",
"eslint-config-airbnb-base": "^13.1.0",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-jsx-a11y": "^6.1.2",
"eslint-plugin-react": "^7.11.1"
},
"apidoc": {
"title": "Mooc API"
},
"scripts": {
"doc": "apidoc -i ./app/routes -o ./docs",
"test": "echo \"Error: no test specified\" && exit 1"
"test": "eslint ./"
},
"repository": {
"type": "git",