Skip to content

Commit

Permalink
Merge b371849 into 92af5cd
Browse files Browse the repository at this point in the history
  • Loading branch information
georapbox committed Jan 24, 2021
2 parents 92af5cd + b371849 commit d3ff348
Show file tree
Hide file tree
Showing 19 changed files with 7,377 additions and 3,135 deletions.
15 changes: 15 additions & 0 deletions .babelrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
const { NODE_ENV } = process.env;

module.exports = {
presets: [
[
'@babel/preset-env',
{
modules: NODE_ENV === 'test' ? 'auto' : false
}
]
],
plugins: [
'@babel/plugin-proposal-object-rest-spread'
]
};
3 changes: 1 addition & 2 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ engines:
enabled: false
eslint:
enabled: true
channel: "eslint-5"
channel: "eslint-7"
csslint:
enabled: false
duplication:
Expand All @@ -19,4 +19,3 @@ ratings:
exclude_paths:
- dist/**/*
- test/**/*
- examples/
2 changes: 0 additions & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
node_modules/*
dist/**
examples/**
demo/
66 changes: 66 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
module.exports = {
env: {
browser: true,
node: true,
jest: true
},
parserOptions: {
ecmaVersion: 9,
sourceType: 'module',
allowImportExportEverywhere: true
},
extends: [
'eslint:recommended'
],
rules: {
// Possible Errors
'no-empty': ['error', {
'allowEmptyCatch': true
}],
'no-use-before-define': ['error', {
'functions': false
}],
// Stylistic Issues
'indent': ['warn', 2, {
'SwitchCase': 1,
'ignoredNodes': ['TemplateLiteral']
}],
'quotes': ['warn', 'single', {
'allowTemplateLiterals': true
}],
'no-multiple-empty-lines': ['warn', {
'max': 1
}],
'space-infix-ops': ['warn', {
'int32Hint': false
}],
'semi': ['warn', 'always'],
'no-trailing-spaces': ['warn'],
'comma-spacing': ['warn'],
'comma-style': ['warn'],
'operator-linebreak': ['warn', 'before'],
'brace-style': ['warn'],
'keyword-spacing': ['warn'],
'object-curly-spacing': ['warn', 'always'],
'space-before-blocks': ['warn', 'always'],
'spaced-comment': ['warn', 'always'],
'space-before-function-paren': ['warn', {
'anonymous': 'always',
'named': 'never',
'asyncArrow': 'always'
}],
'padded-blocks': ['warn', 'never'],
'comma-dangle': ['warn', 'never'],
// Best Practices
'curly': ['warn'],
'eqeqeq': ['error', 'always', {
'null': 'ignore'
}],
'no-multi-spaces': ['warn', {
'ignoreEOLComments': true,
'exceptions': {
'Property': false
}
}]
}
};

0 comments on commit d3ff348

Please sign in to comment.