Skip to content

Commit

Permalink
Initial commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrstegeman committed Jul 25, 2019
0 parents commit ea38e64
Show file tree
Hide file tree
Showing 10 changed files with 1,961 additions and 0 deletions.
245 changes: 245 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,245 @@
module.exports = {
'env': {
'browser': true,
'commonjs': true,
'es6': true,
'jasmine': true,
'jest': true,
'mocha': true,
'node': true
},
'extends': 'eslint:recommended',
'parser': 'babel-eslint',
'parserOptions': {
'sourceType': 'module'
},
'rules': {
'arrow-parens': [
'error',
'always'
],
'arrow-spacing': 'error',
'block-scoped-var': 'error',
'block-spacing': [
'error',
'always'
],
'brace-style': [
'error',
'1tbs'
],
'comma-dangle': [
'error',
'always-multiline'
],
'comma-spacing': 'error',
'comma-style': [
'error',
'last'
],
'computed-property-spacing': [
'error',
'never'
],
'curly': 'error',
'dot-notation': 'error',
'eol-last': 'error',
'func-call-spacing': [
'error',
'never'
],
'implicit-arrow-linebreak': [
'error',
'beside'
],
'indent': [
'error',
2,
{
'ArrayExpression': 'first',
'CallExpression': {
'arguments': 'first'
},
'FunctionDeclaration': {
'parameters': 'first'
},
'FunctionExpression': {
'parameters': 'first'
},
'ObjectExpression': 'first',
'SwitchCase': 1
}
],
'key-spacing': [
'error',
{
'afterColon': true,
'beforeColon': false,
'mode': 'strict'
}
],
'keyword-spacing': [
'error',
{
'after': true,
'before': true
}
],
'linebreak-style': [
'error',
'unix'
],
'lines-between-class-members': [
'error',
'always'
],
'max-len': [
'error',
80
],
'multiline-ternary': [
'error',
'always-multiline'
],
'no-console': 0,
'no-duplicate-imports': 'error',
'no-eval': 'error',
'no-floating-decimal': 'error',
'no-implicit-globals': 'error',
'no-implied-eval': 'error',
'no-lonely-if': 'error',
'no-multi-spaces': [
'error',
{
'ignoreEOLComments': true
}
],
'no-multiple-empty-lines': 'error',
'no-prototype-builtins': 'off',
'no-return-assign': 'error',
'no-script-url': 'error',
'no-self-compare': 'error',
'no-sequences': 'error',
'no-shadow-restricted-names': 'error',
'no-tabs': 'error',
'no-trailing-spaces': 'error',
'no-undefined': 'error',
'no-unmodified-loop-condition': 'error',
'no-unused-vars': [
'error',
{
'argsIgnorePattern': '^_',
'varsIgnorePattern': '^_'
}
],
'no-useless-computed-key': 'error',
'no-useless-concat': 'error',
'no-useless-constructor': 'error',
'no-useless-return': 'error',
'no-var': 'error',
'no-void': 'error',
'no-whitespace-before-property': 'error',
'object-curly-newline': [
'error',
{
'consistent': true
}
],
'object-curly-spacing': [
'error',
'never'
],
'object-property-newline': [
'error',
{
'allowMultiplePropertiesPerLine': true
}
],
'operator-linebreak': [
'error',
'after'
],
'padded-blocks': [
'error',
{
'blocks': 'never'
}
],
'prefer-const': 'error',
'prefer-template': 'error',
'quote-props': [
'error',
'as-needed'
],
'quotes': [
'error',
'single',
{
'allowTemplateLiterals': true
}
],
'semi': [
'error',
'always'
],
'semi-spacing': [
'error',
{
'after': true,
'before': false
}
],
'semi-style': [
'error',
'last'
],
'space-before-blocks': [
'error',
'always'
],
'space-before-function-paren': [
'error',
{
'anonymous': 'never',
'asyncArrow': 'always',
'named': 'never'
}
],
'space-in-parens': [
'error',
'never'
],
'space-infix-ops': 'error',
'space-unary-ops': [
'error',
{
'nonwords': false,
'words': true
}
],
'spaced-comment': [
'error',
'always',
{
'block': {
'balanced': true,
'exceptions': [
'*'
]
}
}
],
'switch-colon-spacing': [
'error',
{
'after': true,
'before': false
}
],
'template-curly-spacing': [
'error',
'never'
],
'yoda': 'error'
}
};
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*.tgz
.DS_Store
SHA256SUMS
node_modules/
15 changes: 15 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Community Participation Guidelines

This repository is governed by Mozilla's code of conduct and etiquette guidelines.
For more details, please read the
[Mozilla Community Participation Guidelines](https://www.mozilla.org/about/governance/policies/participation/).

## How to Report
For more information on how to report violations of the Community Participation Guidelines, please read our '[How to Report](https://www.mozilla.org/about/governance/policies/participation/reporting/)' page.

<!--
## Project Specific Etiquette
In some cases, there will be additional project etiquette i.e.: (https://bugzilla.mozilla.org/page.cgi?id=etiquette.html).
Please update for your project.
-->
Loading

0 comments on commit ea38e64

Please sign in to comment.