eslint setup

This commit is contained in:
Jörn-Michael Miehe 2019-06-04 12:13:19 +02:00
parent bfbd1cbf0a
commit 7182121423
4 changed files with 769 additions and 15 deletions

8
backend/.eslintrc.js Normal file
View 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"
}
};

View file

@ -8,10 +8,13 @@
"license": "UNLICENSED", "license": "UNLICENSED",
"scripts": { "scripts": {
"start": "coffee server.coffee", "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" "test": "echo \"Error: no test specified\" && exit 1"
}, },
"devDependencies": { "devDependencies": {
"@fellow/eslint-plugin-coffee": "^0.4.13",
"eslint": "^5.16.0",
"nodemon": "^1.19.0" "nodemon": "^1.19.0"
}, },
"dependencies": { "dependencies": {

File diff suppressed because it is too large Load diff

View file

@ -3,7 +3,7 @@
{ {
"id": "SdPO5j8y6", "id": "SdPO5j8y6",
"path": "/app", "path": "/app",
"favorite": 0, "favorite": 1,
"type": "vue", "type": "vue",
"name": "frontend", "name": "frontend",
"openDate": 1557166583987, "openDate": 1557166583987,