Skip to content

Commit

Permalink
Basic setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Lakitna committed Feb 18, 2020
1 parent f100973 commit e767d88
Show file tree
Hide file tree
Showing 9 changed files with 4,124 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .eslintrc.js
@@ -0,0 +1,32 @@
module.exports = {
extends: 'google',
env: {
node: true,
mocha: true,
},
globals: {
expect: 'readonly',
},
plugins: [
'sonarjs',
'chai-expect',
'mocha',
'unicorn',
],
extends: [
'eslint:recommended',
'plugin:unicorn/recommended',
'plugin:sonarjs/recommended',
'plugin:mocha/recommended',
'plugin:chai-expect/recommended',
],
rules: {},
overrides: [
{
files: ['test/**/*.js'],
rules: {
'sonarjs/no-duplicate-string': 'off',
},
},
],
};
7 changes: 7 additions & 0 deletions .gitignore
@@ -0,0 +1,7 @@
node_modules
.nyc_output
.rpt2_cache
reports
coverage
dist
docs
17 changes: 17 additions & 0 deletions .mocharc.js
@@ -0,0 +1,17 @@
module.exports = {
diff: true,
extension: ['js'],
package: './package.json',
reporter: 'spec',
slow: 75,
timeout: 2000,
ui: 'bdd',
recursive: true,
file: [
'test/setup.js',
],
require: [
'choma',
'chai/register-expect',
],
};
17 changes: 17 additions & 0 deletions .nycrc.json
@@ -0,0 +1,17 @@
{
"lines": 80,
"statements": 80,
"functions": 80,
"branches": 80,
"include": [
"src/**/*.js"
],
"reporter": [
"html",
"text-summary"
],
"report-dir": "./reports/coverage",
"extension": [
".js"
]
}
21 changes: 21 additions & 0 deletions LICENSE
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2020 Sander van Beek

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

0 comments on commit e767d88

Please sign in to comment.