Skip to content

Commit ef656cb

Browse files
committed
Added NullDev project template
1 parent 65713cd commit ef656cb

17 files changed

+3621
-0
lines changed

nulldev-template/.editorconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
root = true
2+
3+
[*]
4+
end_of_line = lf
5+
insert_final_newline = true
6+
charset = utf-8
7+
indent_style = space
8+
indent_size = 4
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
trim_trailing_whitespace = false

nulldev-template/.eslintrc

Lines changed: 197 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,197 @@
1+
{ // NullDev-Style ESLint Config: https://github.com/NullDevCo/JavaScript-Styleguide
2+
"plugins": [], // Additional ESLint Plugins
3+
"env": { // http://eslint.org/docs/user-guide/configuring.html#specifying-environments
4+
"browser": true, // browser global variables
5+
"node": true, // Node.js global variables and Node.js-specific rules
6+
"commonjs": true, // CommonJS global variables and CommonJS scoping
7+
"es2021": true, // ESNext support
8+
"es6": true // enable all ECMAScript 6 features except for modules
9+
},
10+
"parser": "@babel/eslint-parser", // npm install @babel/eslint-parser @babel/core eslint --save-dev
11+
"parserOptions": {
12+
"ecmaVersion": 12, // set highest possible version
13+
"sourceType": "script", // don't treat scripts as modules (keeps enforcing "use strict")
14+
"requireConfigFile": false, // make babel not look for config
15+
"babelOptions": {
16+
"plugins": [ // additional plugins for new ES-proposals such as "@babel/plugin-proposal-class-properties"
17+
]
18+
}
19+
},
20+
"ignorePatterns": [ // Ignore dist folders and dependencies
21+
"dist",
22+
"node_modules"
23+
],
24+
"rules": {
25+
/**
26+
* Strict mode
27+
*/
28+
"strict": [2, "global"], // http://eslint.org/docs/rules/strict
29+
/**
30+
* ES6
31+
*/
32+
"no-var": 2, // http://eslint.org/docs/rules/no-var
33+
"prefer-const": 0, // http://eslint.org/docs/rules/prefer-const
34+
"prefer-destructuring": [2, { // http://eslint.org/docs/rules/prefer-destructuring
35+
"array": false,
36+
"object": true
37+
}, {
38+
"enforceForRenamedProperties": false
39+
}],
40+
/**
41+
* Variables
42+
*/
43+
"no-shadow": 2, // http://eslint.org/docs/rules/no-shadow
44+
"no-shadow-restricted-names": 2, // http://eslint.org/docs/rules/no-shadow-restricted-names
45+
"no-unused-vars": [2, { // http://eslint.org/docs/rules/no-unused-vars
46+
"vars": "local",
47+
"args": "after-used"
48+
}],
49+
"no-use-before-define": 2, // http://eslint.org/docs/rules/no-use-before-define
50+
/**
51+
* Possible errors
52+
*/
53+
"comma-dangle": [2, "never"], // http://eslint.org/docs/rules/comma-dangle
54+
"no-cond-assign": [2, "always"], // http://eslint.org/docs/rules/no-cond-assign
55+
"no-console": 0, // http://eslint.org/docs/rules/no-console
56+
"no-debugger": 1, // http://eslint.org/docs/rules/no-debugger
57+
"no-alert": 1, // http://eslint.org/docs/rules/no-alert
58+
"no-constant-condition": 1, // http://eslint.org/docs/rules/no-constant-condition
59+
"no-const-assign": 2, // http://eslint.org/docs/rules/no-const-assign
60+
"no-dupe-keys": 2, // http://eslint.org/docs/rules/no-dupe-keys
61+
"no-duplicate-case": 2, // http://eslint.org/docs/rules/no-duplicate-case
62+
"no-empty": 2, // http://eslint.org/docs/rules/no-empty
63+
"no-ex-assign": 2, // http://eslint.org/docs/rules/no-ex-assign
64+
"no-extra-boolean-cast": 0, // http://eslint.org/docs/rules/no-extra-boolean-cast
65+
"no-extra-semi": 2, // http://eslint.org/docs/rules/no-extra-semi
66+
"no-func-assign": 2, // http://eslint.org/docs/rules/no-func-assign
67+
"no-inner-declarations": 2, // http://eslint.org/docs/rules/no-inner-declarations
68+
"no-invalid-regexp": 2, // http://eslint.org/docs/rules/no-invalid-regexp
69+
"no-irregular-whitespace": 2, // http://eslint.org/docs/rules/no-irregular-whitespace
70+
"no-obj-calls": 2, // http://eslint.org/docs/rules/no-obj-calls
71+
"no-sparse-arrays": 2, // http://eslint.org/docs/rules/no-sparse-arrays
72+
"no-unreachable": 2, // http://eslint.org/docs/rules/no-unreachable
73+
"use-isnan": 2, // http://eslint.org/docs/rules/use-isnan
74+
"block-scoped-var": 2, // http://eslint.org/docs/rules/block-scoped-var
75+
"valid-typeof": 2, // http://eslint.org/docs/rules/valid-typeof
76+
/**
77+
* Best practices
78+
*/
79+
"array-callback-return": [2, { // http://eslint.org/docs/rules/array-callback-return
80+
"allowImplicit": true
81+
}],
82+
"consistent-return": 1, // http://eslint.org/docs/rules/consistent-return
83+
"curly": [2, "multi-line"], // http://eslint.org/docs/rules/curly
84+
"default-case": 2, // http://eslint.org/docs/rules/default-case
85+
"dot-notation": [2, { // http://eslint.org/docs/rules/dot-notation
86+
"allowKeywords": true
87+
}],
88+
"linebreak-style": [2, "unix"], // http://eslint.org/docs/rules/linebreak-style
89+
"eqeqeq": 2, // http://eslint.org/docs/rules/eqeqeq
90+
"guard-for-in": 0, // http://eslint.org/docs/rules/guard-for-in
91+
"no-array-constructor": 2, // http://eslint.org/docs/rules/no-array-constructor
92+
"no-caller": 2, // http://eslint.org/docs/rules/no-caller
93+
"no-else-return": 2, // http://eslint.org/docs/rules/no-else-return
94+
"no-eq-null": 2, // http://eslint.org/docs/rules/no-eq-null
95+
"no-eval": 2, // http://eslint.org/docs/rules/no-eval
96+
"no-extend-native": 2, // http://eslint.org/docs/rules/no-extend-native
97+
"no-extra-bind": 2, // http://eslint.org/docs/rules/no-extra-bind
98+
"no-fallthrough": 2, // http://eslint.org/docs/rules/no-fallthrough
99+
"no-floating-decimal": 2, // http://eslint.org/docs/rules/no-floating-decimal
100+
"no-implied-eval": 2, // http://eslint.org/docs/rules/no-implied-eval
101+
"no-lone-blocks": 2, // http://eslint.org/docs/rules/no-lone-blocks
102+
"no-loop-func": 2, // http://eslint.org/docs/rules/no-loop-func
103+
"no-multi-str": 2, // http://eslint.org/docs/rules/no-multi-str
104+
"no-native-reassign": 2, // http://eslint.org/docs/rules/no-native-reassign
105+
"no-new": 2, // http://eslint.org/docs/rules/no-new
106+
"no-new-func": 2, // http://eslint.org/docs/rules/no-new-func
107+
"no-new-wrappers": 2, // http://eslint.org/docs/rules/no-new-wrappers
108+
"no-octal": 2, // http://eslint.org/docs/rules/no-octal
109+
"no-octal-escape": 2, // http://eslint.org/docs/rules/no-octal-escape
110+
"no-param-reassign": 2, // http://eslint.org/docs/rules/no-param-reassign
111+
"no-proto": 2, // http://eslint.org/docs/rules/no-proto
112+
"no-prototype-builtins": 1, // http://eslint.org/docs/rules/no-prototype-builtins
113+
"no-redeclare": 2, // http://eslint.org/docs/rules/no-redeclare
114+
"no-return-assign": 2, // http://eslint.org/docs/rules/no-return-assign
115+
"no-script-url": 2, // http://eslint.org/docs/rules/no-script-url
116+
"no-self-compare": 2, // http://eslint.org/docs/rules/no-self-compare
117+
"no-sequences": 2, // http://eslint.org/docs/rules/no-sequences
118+
"no-throw-literal": 2, // http://eslint.org/docs/rules/no-throw-literal
119+
"no-with": 2, // http://eslint.org/docs/rules/no-with
120+
"radix": 2, // http://eslint.org/docs/rules/radix
121+
"vars-on-top": 2, // http://eslint.org/docs/rules/vars-on-top
122+
"wrap-iife": [2, "any"], // http://eslint.org/docs/rules/wrap-iife
123+
"object-shorthand": [2, "always", { // http://eslint.org/docs/rules/object-shorthand
124+
"ignoreConstructors": true,
125+
"avoidQuotes": true
126+
}],
127+
"quote-props": [2, "as-needed", { // http://eslint.org/docs/rules/quote-props
128+
"keywords": true
129+
}],
130+
"yoda": 2, // http://eslint.org/docs/rules/yoda
131+
/**
132+
* Style
133+
*/
134+
"indent": [2, 4, { // http://eslint.org/docs/rules/indent
135+
"SwitchCase": 1
136+
}],
137+
"brace-style": [2, // http://eslint.org/docs/rules/brace-style
138+
"stroustrup", {
139+
"allowSingleLine": true
140+
}
141+
],
142+
"quotes": [
143+
2, "double", "avoid-escape" // http://eslint.org/docs/rules/quotes
144+
],
145+
"camelcase": [2, { // http://eslint.org/docs/rules/camelcase
146+
"properties": "never"
147+
}],
148+
"comma-spacing": [2, { // http://eslint.org/docs/rules/comma-spacing
149+
"before": false,
150+
"after": true
151+
}],
152+
"comma-style": [2, "last"], // http://eslint.org/docs/rules/comma-style
153+
"eol-last": 2, // http://eslint.org/docs/rules/eol-last
154+
"func-names": 0, // http://eslint.org/docs/rules/func-names
155+
"key-spacing": [2, { // http://eslint.org/docs/rules/key-spacing
156+
"beforeColon": false,
157+
"afterColon": true
158+
}],
159+
"new-cap": [2, { // http://eslint.org/docs/rules/new-cap
160+
"newIsCap": true
161+
}],
162+
"no-multiple-empty-lines": [2, { // http://eslint.org/docs/rules/no-multiple-empty-lines
163+
"max": 2
164+
}],
165+
"no-nested-ternary": 2, // http://eslint.org/docs/rules/no-nested-ternary
166+
"no-new-object": 2, // http://eslint.org/docs/rules/no-new-object
167+
"no-spaced-func": 2, // http://eslint.org/docs/rules/no-spaced-func
168+
"no-trailing-spaces": 2, // http://eslint.org/docs/rules/no-trailing-spaces
169+
"no-extra-parens": [2,
170+
"functions" // http://eslint.org/docs/rules/no-extra-parens
171+
],
172+
"no-underscore-dangle": 0, // http://eslint.org/docs/rules/no-underscore-dangle
173+
"one-var": [2, "never"], // http://eslint.org/docs/rules/one-var
174+
"padded-blocks": [2, "never"], // http://eslint.org/docs/rules/padded-blocks
175+
"semi": [2, "always"], // http://eslint.org/docs/rules/semi
176+
"semi-spacing": [2, { // http://eslint.org/docs/rules/semi-spacing
177+
"before": false,
178+
"after": true
179+
}],
180+
"space-after-keywords": 0, // http://eslint.org/docs/rules/space-after-keywords
181+
"space-before-blocks": [2, { // http://eslint.org/docs/rules/space-before-blocks
182+
"functions": "never",
183+
"keywords": "never",
184+
"classes": "always"
185+
}],
186+
"keyword-spacing": [0, { // http://eslint.org/docs/rules/keyword-spacing
187+
"before": false,
188+
"after": true
189+
}],
190+
"space-before-function-paren": [2,
191+
"never" // http://eslint.org/docs/rules/space-before-function-paren
192+
],
193+
"space-infix-ops": 2, // http://eslint.org/docs/rules/space-infix-ops
194+
"space-return-throw-case": 0, // http://eslint.org/docs/rules/space-return-throw-case
195+
"spaced-comment": 2 // http://eslint.org/docs/rules/spaced-comment
196+
}
197+
}

nulldev-template/.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto eol=lf
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
name: Bug Report
3+
about: Describe a bug you encountered
4+
5+
---
6+
7+
## Bug Report
8+
9+
**Description of the bug:** <br>
10+
A detailed description of the bug...
11+
12+
**Steps to reproduce:** <br>
13+
How can the bug be reproduced?
14+
15+
1. Go to '...'
16+
2. Write '....'
17+
3. Click on '....'
18+
4. See stacktrace
19+
20+
**Expected result:** <br>
21+
What was supposed to happen?
22+
23+
**Screenshots:** <br>
24+
If available, include screenshots of the error here
25+
26+
**Environment:** <br>
27+
- Operating system: [e.g. Ubuntu 16.04]
28+
- NodeJS Version: [e.g. v15.14.0] $ node -v
29+
- NPM Version: [e.g. 7.7.6] $ npm -v
30+
31+
**Additional context** <br>
32+
Any additional info goes here
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
name: Feature Request
3+
about: What feature do you want implemented?
4+
5+
---
6+
7+
## Feature Request
8+
9+
**Functionality:** <br>
10+
What feature do you want implemented and what is it supposed to do? <br>
11+
Please explain in detail.

nulldev-template/.gitignore

Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
lerna-debug.log*
8+
9+
# Config
10+
config.json
11+
12+
# Diagnostic reports (https://nodejs.org/api/report.html)
13+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
14+
15+
# Runtime data
16+
pids
17+
*.pid
18+
*.seed
19+
*.pid.lock
20+
21+
# Directory for instrumented libs generated by jscoverage/JSCover
22+
lib-cov
23+
24+
# Coverage directory used by tools like istanbul
25+
coverage
26+
*.lcov
27+
28+
# nyc test coverage
29+
.nyc_output
30+
31+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
32+
.grunt
33+
34+
# Bower dependency directory (https://bower.io/)
35+
bower_components
36+
37+
# node-waf configuration
38+
.lock-wscript
39+
40+
# Compiled binary addons (https://nodejs.org/api/addons.html)
41+
build/Release
42+
43+
# Dependency directories
44+
node_modules/
45+
jspm_packages/
46+
47+
# TypeScript v1 declaration files
48+
typings/
49+
50+
# TypeScript cache
51+
*.tsbuildinfo
52+
53+
# Optional npm cache directory
54+
.npm
55+
56+
# Optional eslint cache
57+
.eslintcache
58+
59+
# Microbundle cache
60+
.rpt2_cache/
61+
.rts2_cache_cjs/
62+
.rts2_cache_es/
63+
.rts2_cache_umd/
64+
65+
# Optional REPL history
66+
.node_repl_history
67+
68+
# Output of 'npm pack'
69+
*.tgz
70+
71+
# Yarn Integrity file
72+
.yarn-integrity
73+
74+
# dotenv environment variables file
75+
.env
76+
.env.test
77+
78+
# parcel-bundler cache (https://parceljs.org/)
79+
.cache
80+
81+
# Next.js build output
82+
.next
83+
84+
# Nuxt.js build / generate output
85+
.nuxt
86+
dist
87+
88+
# Gatsby files
89+
.cache/
90+
# Comment in the public line in if your project uses Gatsby and *not* Next.js
91+
# https://nextjs.org/blog/next-9-1#public-directory-support
92+
# public
93+
94+
# vuepress build output
95+
.vuepress/dist
96+
97+
# Serverless directories
98+
.serverless/
99+
100+
# FuseBox cache
101+
.fusebox/
102+
103+
# DynamoDB Local files
104+
.dynamodb/
105+
106+
# TernJS port file
107+
.tern-port

nulldev-template/.npmignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Packages
2+
node_modules/
3+
yarn.lock
4+
5+
# Log files
6+
logs/
7+
*.log
8+
9+
# Miscellaneous
10+
.tmp/
11+
.vscode/
12+
docs/
13+
14+
# NPM ignore
15+
.eslintrc
16+
.gitattributes
17+
.gitignore
18+
.travis.yml
19+
.jenkins.yml
20+
.github/
21+
test/
22+
tsconfig.json
23+
tslint.json

0 commit comments

Comments
 (0)