Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules/
dist/

Choose a reason for hiding this comment

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

Should newline eof char be added?

130 changes: 130 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
{
"env": {
"es6": true,
"browser": true,
"node": true,
"mocha": true
},
"extends": [
"google"
],
"rules": {
"no-with": 2,
"no-tabs": 0,
"camelcase": 0,
"max-len": 0,
"valid-jsdoc": 0,
"require-jsdoc": 0,
"no-invalid-this": 0,
"prefer-rest-params": 0,
"prefer-spread": 0,
"new-cap": 0,
"no-mixed-spaces-and-tabs": 2,
"no-multi-str": 2,
"no-multi-spaces": 2,
"one-var": [
2,
"never"
],
"key-spacing": [
2,
{
"beforeColon": false,
"afterColon": true
}
],
"space-unary-ops": [
2,
{
"words": false,
"nonwords": false
}
],
"comma-spacing": [
2,
{
"before": false
}
],
"semi-spacing": [
2,
{
"before": false,
"after": true
}
],
"space-before-function-paren": [
2,
{
"anonymous": "ignore",
"named": "never"
}
],
"space-in-parens": [
2,
"never"
],
"comma-dangle": [
2,
"never"
],
"no-trailing-spaces": 2,
"yoda": [
2,
"never"
],
"comma-style": [
2,
"last"
],
"curly": [
2,
"all"
],
"brace-style": [
2,
"stroustrup",
{
"allowSingleLine": true
}
],
"eol-last": 2,
"wrap-iife": 2,
"semi": [
2,
"always"
],
"space-infix-ops": 2,
"keyword-spacing": [
2,
{}
],
"spaced-comment": [
2,
"always"
],
"space-before-blocks": [
2,
"always"
],
"array-bracket-spacing": [
2,
"always"
],
"consistent-this": [
2,
"self"
],
"indent": [
2,
"tab",
{
"SwitchCase": 1
}
],
"linebreak-style": [
2,
"unix"
]
}
}
137 changes: 0 additions & 137 deletions .jscsrc

This file was deleted.

Loading