eslint setup
This commit is contained in:
parent
bfbd1cbf0a
commit
7182121423
4 changed files with 769 additions and 15 deletions
8
backend/.eslintrc.js
Normal file
8
backend/.eslintrc.js
Normal file
|
@ -0,0 +1,8 @@
|
|||
module.exports = {
|
||||
"extends": ["plugin:@fellow/coffee/recommended"],
|
||||
"plugins": ["@fellow/coffee"],
|
||||
"rules": {
|
||||
"@fellow/coffee/indentation": ["error", { "value": 2 }],
|
||||
"@fellow/coffee/colon-assignment-spacing": "off"
|
||||
}
|
||||
};
|
|
@ -8,10 +8,13 @@
|
|||
"license": "UNLICENSED",
|
||||
"scripts": {
|
||||
"start": "coffee server.coffee",
|
||||
"dev": "nodemon",
|
||||
"dev": "nodemon server.coffee --exec 'yarn lint && yarn start'",
|
||||
"lint": "eslint $(find . -name node_modules -prune -o \\( -type f -iname '*.coffee' -print \\))",
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@fellow/eslint-plugin-coffee": "^0.4.13",
|
||||
"eslint": "^5.16.0",
|
||||
"nodemon": "^1.19.0"
|
||||
},
|
||||
"dependencies": {
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -3,7 +3,7 @@
|
|||
{
|
||||
"id": "SdPO5j8y6",
|
||||
"path": "/app",
|
||||
"favorite": 0,
|
||||
"favorite": 1,
|
||||
"type": "vue",
|
||||
"name": "frontend",
|
||||
"openDate": 1557166583987,
|
||||
|
|
Reference in a new issue