Adjust code to airbnb style guide, including eslint rules and prettier configuration for code base
This commit is contained in:
parent
1b55cabf63
commit
281acd6ad8
23 changed files with 919 additions and 2225 deletions
|
|
@ -9,5 +9,23 @@
|
|||
"mqtt": "~3.0.0",
|
||||
"sleep": "~6.1.0",
|
||||
"winston": "~3.3.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"babel-eslint": "~10.1.0",
|
||||
"eslint": "~7.18.0",
|
||||
"eslint-config-airbnb": "~18.2.1",
|
||||
"eslint-config-prettier": "~7.2.0",
|
||||
"eslint-plugin-import": "~2.22.1",
|
||||
"eslint-plugin-prettier": "~3.3.1",
|
||||
"prettier": "~2.2.1"
|
||||
},
|
||||
"scripts": {
|
||||
"lint": "prettier \"../*.{js*,md}\" --check & eslint **/*.js",
|
||||
"lint:fix": "prettier .. --check --write & eslint **/*.js --fix",
|
||||
"lint:prettier:fix": "npm run lint:prettier --write",
|
||||
"lint:errors": "npm run lint:prettier & npm run lint:styles --quiet & npm run lint:types & npm run lint:scripts --quiet",
|
||||
"lint:errors:fix": "npm run lint:prettier --write & npm run lint:scripts --quiet --fix",
|
||||
"lint:prettier": "prettier --check \"**/*.js\"",
|
||||
"lint:scripts": "eslint --config ./.eslintrc.js \"**/*.js\""
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue