diff --git a/dev_dotfiles/.eslintrc.json b/dev_dotfiles/.eslintrc.json index 89a52a1..7042266 100644 --- a/dev_dotfiles/.eslintrc.json +++ b/dev_dotfiles/.eslintrc.json @@ -12,35 +12,44 @@ "es6": true }, "rules": { - "no-new-object": 1, - "no-reserved-keys": 1, - "no-array-constructor": 1, - "quotes": [1, "single"], - "max-len": [1, 120, 2], // 2 spaces per tab, max 80 chars per line - "no-inner-declarations": [1, "both"], - "no-shadow-restricted-names": 1, - "one-var": 0, - "vars-on-top": 1, - "eqeqeq": 1, + "arrow-spacing": "error", + "block-scoped-var": "error", + "block-spacing": "error", + "brace-style": ["error", "stroustrup", {}], + "camelcase": "error", + "comma-dangle": ["error", "never"], + "comma-spacing": ["error", { "before": false, "after": true }], + "comma-style": [1, "last"], + "consistent-this": [1, "_this"], "curly": [1, "multi"], + "eol-last": 1, + "eqeqeq": 1, + "func-names": 1, + "indent": ["error", 2, { "SwitchCase": 1 }], + "lines-around-comment": ["error", { "beforeBlockComment": true, "allowArrayStart": true }], + "max-len": [1, 120, 2], // 2 spaces per tab, max 80 chars per line + "new-cap": 1, + "newline-before-return": "error", + "no-array-constructor": 1, + "no-inner-declarations": [1, "both"], "no-mixed-spaces-and-tabs": 1, + "no-multi-spaces": 2, + "no-new-object": 1, + "no-shadow-restricted-names": 1, + "object-curly-spacing": ["error", "always"], + "padded-blocks": ["error", { "blocks": "never", "switches": "always" }], + "prefer-const": "error", + "prefer-template": "error", + "one-var": 0, + "quote-props": ["error", "always"], + "quotes": [1, "single"], + "radix": 1, + "semi": [1, "always"], "space-before-blocks": [1, "always"], "space-infix-ops": 1, - "eol-last": 1, - "comma-style": [1, "last"], - "no-comma-dangle": 1, - "semi": [1, "always"], - "radix": 1, - "camelcase": 1, - "new-cap": 1, - "consistent-this": [1, "_this"], - "func-names": 1, - "no-multi-spaces": 2, - "brace-style": [2,"1tbs",{}], - - "indent": [2,2], - "comma-spacing": ["error", { "before": false, "after": true }], - "object-curly-spacing": ["error", "always"] + "vars-on-top": 1, + "no-multiple-empty-lines": ["error", { "max": 1, "maxEOF": 1 }], + "spaced-comment": ["error", "always", { "markers": ["/"] }] } } diff --git a/dev_dotfiles/eslintrc.json b/dev_dotfiles/eslintrc.json new file mode 100644 index 0000000..7042266 --- /dev/null +++ b/dev_dotfiles/eslintrc.json @@ -0,0 +1,55 @@ +{ + "parserOptions": { + "ecmaVersion": 6, + "sourceType": "module", + "ecmaFeatures": { + "jsx": false + } + }, + "env": { + "browser": true, + "node": true, + "es6": true + }, + "rules": { + "arrow-spacing": "error", + "block-scoped-var": "error", + "block-spacing": "error", + "brace-style": ["error", "stroustrup", {}], + "camelcase": "error", + "comma-dangle": ["error", "never"], + "comma-spacing": ["error", { "before": false, "after": true }], + "comma-style": [1, "last"], + "consistent-this": [1, "_this"], + "curly": [1, "multi"], + "eol-last": 1, + "eqeqeq": 1, + "func-names": 1, + "indent": ["error", 2, { "SwitchCase": 1 }], + "lines-around-comment": ["error", { "beforeBlockComment": true, "allowArrayStart": true }], + "max-len": [1, 120, 2], // 2 spaces per tab, max 80 chars per line + "new-cap": 1, + "newline-before-return": "error", + "no-array-constructor": 1, + "no-inner-declarations": [1, "both"], + "no-mixed-spaces-and-tabs": 1, + "no-multi-spaces": 2, + "no-new-object": 1, + "no-shadow-restricted-names": 1, + "object-curly-spacing": ["error", "always"], + "padded-blocks": ["error", { "blocks": "never", "switches": "always" }], + "prefer-const": "error", + "prefer-template": "error", + "one-var": 0, + "quote-props": ["error", "always"], + "quotes": [1, "single"], + "radix": 1, + "semi": [1, "always"], + "space-before-blocks": [1, "always"], + "space-infix-ops": 1, + "vars-on-top": 1, + "no-multiple-empty-lines": ["error", { "max": 1, "maxEOF": 1 }], + "spaced-comment": ["error", "always", { "markers": ["/"] }] + } + +} diff --git a/pm2/process.json b/pm2/process.json index eba7228..b147b8e 100644 --- a/pm2/process.json +++ b/pm2/process.json @@ -7,7 +7,7 @@ "name": "SilvrPipes", "script": "pipes-server.js", "cwd": "/home/martind2000/dev/Rinser", - "watch": true, + "watch": false, "ignore_watch": [ "node_modules" , ".git", "dist" ], @@ -40,7 +40,7 @@ { "name": "Lot", - "script": "lot.js", + "script": "app.js", "cwd": "/home/martind2000/dev/lot", "watch": false, "ignore_watch": [ @@ -75,7 +75,7 @@ "name": "Keeper", "script": "keeper-server.js", "cwd": "/home/martind2000/dev/keeper", - "watch": true, + "watch": false, "ignore_watch": [ "node_modules" , ".git" ], @@ -92,7 +92,7 @@ "name": "SilvrAPI", "script": "newapp.js", "cwd": "/home/martind2000/dev/silvrapi", - "watch": true, + "watch": false, "ignore_watch": [ "node_modules" , ".git" ], @@ -109,7 +109,7 @@ "name": "Logger", "script": "logger-server.js", "cwd": "/home/martind2000/dev/logger", - "watch": true, + "watch": false, "ignore_watch": [ "node_modules" , ".git" ], @@ -126,7 +126,7 @@ "name": "Recipe", "script": "recipe-server.js", "cwd": "/home/martind2000/dev/recipes", - "watch": true, + "watch": false, "ignore_watch": [ "node_modules" , ".git" ], @@ -143,7 +143,7 @@ "name": "nURL", "script": "app.js", "cwd": "/home/martind2000/dev/nurl", - "watch": true, + "watch": false, "ignore_watch": [ "node_modules" ],