Skip to content

Commit eff5fbb

Browse files
committed
basics
1 parent 32a0cab commit eff5fbb

5 files changed

Lines changed: 216 additions & 0 deletions

File tree

.eslintrc

Lines changed: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"es6": true,
5+
"node": true
6+
},
7+
"extends": "eslint:recommended",
8+
"parserOptions": {
9+
"ecmaVersion": 2018,
10+
"sourceType": "module"
11+
},
12+
13+
"rules": {
14+
"strict": [ 2, "global" ],
15+
16+
"for-direction": 2,
17+
"getter-return": 2,
18+
"no-compare-neg-zero": 2,
19+
"no-cond-assign": [ 2, "except-parens" ],
20+
"no-console": 1,
21+
"no-constant-condition": 2,
22+
"no-control-regex": 2,
23+
"no-debugger": 2,
24+
"no-dupe-args": 2,
25+
"no-dupe-keys": 2,
26+
"no-duplicate-case": 2,
27+
"no-empty-character-class": 2,
28+
"no-empty": 2,
29+
"no-ex-assign": 2,
30+
"no-extra-boolean-cast": 2,
31+
"no-extra-parens": [ 1, "all" ],
32+
"no-extra-semi": 2,
33+
"no-func-assign": 2,
34+
"no-inner-declarations": [ 2, "functions" ],
35+
"no-invalid-regexp": 2,
36+
"no-irregular-whitespace": 2,
37+
"no-obj-calls": 2,
38+
"no-prototype-builtins": 2,
39+
"no-regex-spaces": 2,
40+
"no-sparse-arrays": 2,
41+
"no-unexpected-multiline": 2,
42+
"no-unreachable": 2,
43+
"no-unsafe-finally": 1,
44+
"no-unsafe-negation": 2,
45+
"use-isnan": 2,
46+
"valid-jsdoc": 2,
47+
"valid-typeof": 2,
48+
49+
"no-delete-var": 2,
50+
"no-label-var": 2,
51+
"no-shadow": 2,
52+
"no-shadow-restricted-names": 2,
53+
"no-undef": [ 2, { "typeof": true } ],
54+
"no-undef-init": 2,
55+
"no-undefined": 2,
56+
"no-unused-vars": 2,
57+
"no-use-before-define": 2,
58+
59+
"arrow-body-style": [ 2, "always" ],
60+
"arrow-parens": [ 2, "always" ],
61+
"arrow-spacing": [ 2, { "before": true, "after": true } ],
62+
"constructor-super": 2,
63+
"generator-star-spacing": [ 2,{"before":true,"after":true} ],
64+
"no-class-assign": 2,
65+
"no-confusing-arrow": [ 2, {"allowParens": false} ],
66+
"no-const-assign": 2,
67+
"no-dupe-class-members": 2,
68+
"no-duplicate-imports": [ 2, { "includeExports": true } ],
69+
"no-new-symbol": 2,
70+
"no-this-before-super": 2,
71+
"no-useless-computed-key": 2,
72+
"no-useless-constructor": 2,
73+
"no-useless-rename": 2,
74+
"no-var": 1,
75+
"object-shorthand": [ 2, "consistent-as-needed" ],
76+
"prefer-arrow-callback": [ 2, { "allowNamedFunctions": true, "allowUnboundThis": true } ],
77+
"prefer-const": [ 1, { "destructuring": "any", "ignoreReadBeforeAssign": false } ],
78+
"prefer-numeric-literals": 2,
79+
"prefer-rest-params": 1,
80+
"prefer-spread": 1,
81+
"prefer-template": 0,
82+
"require-yield": 2,
83+
"rest-spread-spacing": [ 2, "never" ],
84+
"symbol-description": 1,
85+
"template-curly-spacing": [ 2, "never" ],
86+
"yield-star-spacing": [ "error", { "before": true, "after": true } ],
87+
88+
"array-bracket-newline": [ 2, "consistent" ],
89+
"array-bracket-spacing": [ 2, "always"],
90+
"array-element-newline": [ 2, { "multiline": true, "minItems": 10 } ],
91+
"block-spacing" : 2,
92+
"brace-style": [ 2, "1tbs", { "allowSingleLine": true } ],
93+
"comma-dangle": [ 2, { "arrays": "only-multiline", "objects": "only-multiline", "imports": "never", "exports": "never", "functions": "ignore" } ],
94+
"comma-spacing": [2, { "before": false, "after": true } ],
95+
"computed-property-spacing": [ 2, "always" ],
96+
"consistent-this": [ 1, "_self" ],
97+
"eol-last": [ 2, "always" ],
98+
"func-call-spacing": [ 2, "never" ],
99+
"indent": [ 2, 4 ],
100+
"key-spacing": [ 2, { "beforeColon": true, "afterColon": true, "mode": "strict" } ],
101+
"keyword-spacing": [ 2, { "before": true, "after": true } ],
102+
"linebreak-style": [ 2, "unix" ],
103+
"lines-around-comment": [ 2, { "beforeBlockComment": true, "beforeLineComment": true } ],
104+
"lines-between-class-members": [ 2, "always" ],
105+
"max-len": [ 1, { "code": 140, "ignoreComments": true, "ignoreTrailingComments": true, "ignoreUrls": true, "ignoreStrings": false, "ignoreTemplateLiterals": true, "ignoreRegExpLiterals": true } ],
106+
"new-cap": [ 2, { "newIsCap": true, "capIsNew": false } ],
107+
"new-parens": 2,
108+
"no-lonely-if": 2,
109+
"no-mixed-spaces-and-tabs": 2,
110+
"no-multiple-empty-lines": [ 1, { "max": 1, "maxEOF": 1 } ],
111+
"no-trailing-spaces": 2,
112+
"no-unneeded-ternary": 2,
113+
114+
"object-curly-newline": [ 2, { "ObjectExpression": { "multiline": true, "minProperties": 8 }, "ObjectPattern": { "multiline": true, "minProperties": 8 }, "ImportDeclaration": { "multiline": true, "minProperties": 8 }, "ExportDeclaration": { "multiline": true, "minProperties": 8 } } ],
115+
"object-curly-spacing": [ 2, "always", { "arraysInObjects": true, "objectsInObjects": true } ],
116+
"one-var": [ 2, { "var": "always", "let": "consecutive", "const": "never" } ],
117+
118+
"quotes": [ 2, "single", { "avoidEscape": true } ],
119+
"require-jsdoc": [ 1, { "require": { "FunctionDeclaration": true, "MethodDefinition": true, "ClassDeclaration": true, "ArrowFunctionExpression": true, "FunctionExpression": true } } ],
120+
"semi": 2,
121+
"semi-spacing": 2,
122+
"semi-style": [ 2, "last" ],
123+
"space-before-blocks": [ 2, "always" ],
124+
"space-before-function-paren": [ 2, "never" ],
125+
"space-in-parens": [ 2, "always" ],
126+
"space-infix-ops": [ 2, { "int32Hint": false } ],
127+
"space-unary-ops": [ 2, { "words": true, "nonwords": false } ],
128+
"spaced-comment": [ 2, "always" ],
129+
"switch-colon-spacing": [ 2, { "after": true, "before": true } ],
130+
"template-tag-spacing": [ 2, "always" ]
131+
}
132+
}

.gitignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
### Windows ###
2+
Thumbs.db
3+
Desktop.ini
4+
$RECYCLE.BIN/
5+
6+
### OSX ###
7+
.DS_Store
8+
.AppleDouble
9+
.LSOverride
10+
._*
11+
.Spotlight-V100
12+
.Trashes
13+
14+
### IntelliJ based IDE's like PhpStorm ###
15+
*.iml
16+
*.ipr
17+
*.iws
18+
.idea/
19+
20+
# Much credit to http://gitignore.io
21+
22+
### Internal ###
23+
node_modules/

.npmignore

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
### Windows ###
2+
Thumbs.db
3+
Desktop.ini
4+
$RECYCLE.BIN/
5+
6+
### OSX ###
7+
.DS_Store
8+
.AppleDouble
9+
.LSOverride
10+
._*
11+
.Spotlight-V100
12+
.Trashes
13+
14+
### IntelliJ based IDE's like PhpStorm ###
15+
*.iml
16+
*.ipr
17+
*.iws
18+
.idea/
19+
20+
# Much credit to http://gitignore.io
21+
22+
### Internal ###
23+
24+
### NPM only ###
25+
.github

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Changelog
2+
3+
## 0.5.0
4+
- Core features prototype.

package.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"name": "@squirrel-forge/node-taskrunner",
3+
"version": "0.5.0",
4+
"description": "Task runner and task class for sequential and parallel processing",
5+
"main": "index.js",
6+
"scripts": {
7+
"test": "echo \"Error: no test specified\" && exit 1"
8+
},
9+
"repository": {
10+
"type": "git",
11+
"url": "git+https://github.com/squirrel-forge/node-taskrunner.git"
12+
},
13+
"keywords": [
14+
"node",
15+
"abstract",
16+
"taskrunner",
17+
"task"
18+
],
19+
"author": "Daniel Hartwell <me@siux.info> (http://siux.info)",
20+
"license": "MIT",
21+
"bugs": {
22+
"url": "https://github.com/squirrel-forge/node-taskrunner/issues"
23+
},
24+
"homepage": "https://github.com/squirrel-forge/node-taskrunner#readme",
25+
"engines": {
26+
"node": ">= 10.0.0"
27+
},
28+
"dependencies": {
29+
"@squirrel-forge/node-objection": "^1.0.0",
30+
"@squirrel-forge/node-util": "^0.6.1"
31+
}
32+
}

0 commit comments

Comments
 (0)