Skip to content

Commit

Permalink
✨ Es6 + Rollup + Npm scripts + minor perf improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
ianmcgregor committed Jan 27, 2017
1 parent 99c6bf8 commit 517e980
Show file tree
Hide file tree
Showing 16 changed files with 905 additions and 969 deletions.
114 changes: 114 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
{
"parser": "babel-eslint",
"env": {
"browser": true,
"es6": true,
"mocha": true,
"node": true
},
"globals": {
"expect": true,
"it": true
},
"plugins": [],
"parserOptions": {
"ecmaVersion": 6,
"jsx": true,
"sourceType": "module"
},
"rules": {
"array-bracket-spacing": [2, "never"],
"block-scoped-var": 0,
"block-spacing": 2,
"brace-style": [2, "1tbs"],
"callback-return": [2, ["cb", "callback", "next"]],
"camelcase": [2, {"properties": "never"}],
"comma-dangle": [2, "never"],
"comma-spacing": 2,
"comma-style": [2, "last"],
"consistent-return": 2,
"curly": [2, "all"],
"default-case": 2,
"dot-location": [2, "property"],
"dot-notation": [2, {"allowKeywords": true}],
"eol-last": 2,
"eqeqeq": 2,
"func-style": [2, "declaration"],
"guard-for-in": 2,
"indent": [2, 4, {"SwitchCase": 1}],
"key-spacing": [2, {"beforeColon": false, "afterColon": true}],
"keyword-spacing": 2,
"max-len": [1, 120],
"new-cap": 0,
"new-parens": 2,
"no-alert": 2,
"no-array-constructor": 2,
"no-caller": 2,
"no-confusing-arrow": 2,
"no-console": 0,
"no-const-assign": 2,
"no-constant-condition": 2,
"no-delete-var": 2,
"no-empty": 2,
"no-eval": 2,
"no-extend-native": 2,
"no-extra-bind": 2,
"no-extra-semi": 2,
"no-fallthrough": 2,
"no-floating-decimal": 2,
"no-implied-eval": 2,
"no-invalid-this": 2,
"no-iterator": 2,
"no-label-var": 2,
"no-labels": [2, {"allowLoop": true, "allowSwitch": true}],
"no-lone-blocks": 2,
"no-loop-func": 2,
"no-mixed-spaces-and-tabs": [2, false],
"no-multi-spaces": 2,
"no-multi-str": 2,
"no-native-reassign": 2,
"no-nested-ternary": 2,
"no-new-func": 2,
"no-new-object": 2,
"no-new-wrappers": 2,
"no-new": 2,
"no-octal-escape": 2,
"no-octal": 2,
"no-process-exit": 2,
"no-proto": 2,
"no-redeclare": 2,
"no-return-assign": 2,
"no-script-url": 2,
"no-sequences": 2,
"no-shadow-restricted-names": 2,
"no-shadow": 2,
"no-spaced-func": 2,
"no-trailing-spaces": 2,
"no-undef-init": 2,
"no-undef": 2,
"no-undefined": 2,
"no-underscore-dangle": 2,
"no-unused-expressions": 0,
"no-unused-vars": [2, {"vars": "all", "args": "after-used"}],
"no-use-before-define": 2,
"no-useless-concat": 2,
"no-var": 2,
"no-with": 2,
"object-curly-spacing": [2, "never"],
"prefer-const": 2,
"quotes": [2, "single"],
"radix": 2,
"require-jsdoc": 0,
"semi-spacing": [2, {"before": false, "after": true}],
"semi": 2,
"space-before-blocks": 2,
"space-before-function-paren": [0, "never"],
"space-infix-ops": 2,
"space-unary-ops": [2, {"words": true, "nonwords": false}],
"spaced-comment": [0, "always", {"exceptions": ["-"]}],
"strict": [1, "global"],
"valid-jsdoc": [0, {"prefer": { "return": "returns"}}],
"wrap-iife": 2,
"yoda": [2, "never"]
}
}
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
!/.gitattributes
!/.gitignore
!/.gitinclude
!/.jshintrc
!/.eslintrc
!/.travis.yml

ehthumbs.db
Thumbs.db
Desktop.ini
user.properties

npm-debug.log
bower_components/
node_modules/
temp/
89 changes: 0 additions & 89 deletions .jshintrc

This file was deleted.

2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
language: node_js
node_js:
- 0.12
- 6
before_install:
- 'npm install -g karma-cli'
22 changes: 0 additions & 22 deletions bower.json

This file was deleted.

Loading

0 comments on commit 517e980

Please sign in to comment.