Skip to content
Closed
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"presets": ["es2015-loose", "stage-0"],
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not "just" babel-preset-latest?

"plugins": ["add-module-exports"],
"env": {
"development": {
"sourceMaps": "inline"
},
"test": {
"plugins": ["istanbul"]
}
}
}
86 changes: 86 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
---
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any preset maybe?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not

parser: babel-eslint
plugins:
- babel
- import

root: true
extends: eslint:recommended

#ecmaFeatures:
# modules: true

env:
es6: true
browser: true
node: true

rules:
# babel/object-curly-spacing: [2]
# brace-style: [2, 1tbs, {allowSingleLine: false}]
camelcase: [2]
# comma-dangle: [2, always-multiline]
comma-spacing: [2]
curly: [error, multi-or-nest]
dot-notation: [2]
eol-last: [2]
eqeqeq: [2]
handle-callback-err: [2]
import/export: [2]
import/imports-first: [2]
import/named: [2]
import/namespace: [2, {allowComputed: true}]
import/newline-after-import: [2]
import/no-duplicates: [2]
import/no-mutable-exports: [2]
import/no-named-as-default: [2]
import/no-named-as-default-member: [2]
# import/no-unresolved: [2, {"commonjs": true}]
import/order: [2]
import/prefer-default-export: [2]
indent: [2, 2, { "SwitchCase": 1 }]
keyword-spacing: [2]
new-cap: [2]
new-parens: [2]
no-alert: [2]
no-caller: [2]
no-case-declarations: [0]
no-const-assign: [2]
no-constant-condition: [2]
no-dupe-args: [2]
no-dupe-keys: [2]
no-empty: [2]
no-empty-character-class: [2]
no-eval: [2]
no-irregular-whitespace: [2]
no-labels: [2]
no-lonely-if: [2]
no-multiple-empty-lines: [2]
no-new: [2]
no-octal: [2]
no-proto: [2]
no-redeclare: [2]
no-return-assign: [2]
no-self-assign: [2]
no-self-compare: [2]
no-shadow: [2]
no-shadow-restricted-names: [2]
no-sparse-arrays: [2]
no-undef: [2]
no-unreachable: [2]
no-unused-vars: [2]
no-useless-call: [2]
no-var: [2]
no-void: [2]
no-warning-comments: [2]
no-with: [2]
quote-props: [2, as-needed]
prefer-arrow-callback: [2]
radix: [2]
semi: [2, always]
semi-spacing: [2]
# space-before-function-paren: [2, always]
space-before-blocks: [2, always]
spaced-comment: [2, always]
strict: [2, global]
yoda: [2, never]
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
dist
130 changes: 0 additions & 130 deletions .jscsrc

This file was deleted.

11 changes: 0 additions & 11 deletions .jshintrc

This file was deleted.

Loading