diff --git a/.babelrc b/.babelrc new file mode 100644 index 000000000..ab272ee27 --- /dev/null +++ b/.babelrc @@ -0,0 +1,19 @@ +{ + "loose": ["all"], + "whitelist": [ + "es3.memberExpressionLiterals", + "es3.propertyLiterals", + "es6.arrowFunctions", + "es6.blockScoping", + "es6.classes", + "es6.constants", + "es6.destructuring", + "es6.forOf", + "es6.literals", + "es6.objectSuper", + "es6.properties.computed", + "es6.properties.shorthand", + "es6.tailCall", + "es6.templateLiterals" + ] +} diff --git a/.eslintrc b/.eslintrc index 1a8cec412..b9d63f5a0 100644 --- a/.eslintrc +++ b/.eslintrc @@ -1,3 +1,5 @@ +parser: babel-eslint + extends: 'eslint:recommended' env: @@ -5,21 +7,40 @@ env: commonjs: true rules: + comma-dangle: [2, always-multiline] comma-style: [2, last] curly: 2 dot-notation: 2 eol-last: 2 eqeqeq: 2 guard-for-in: 0 + indent: [2, 2] linebreak-style: [2, unix] no-caller: 2 no-extra-bind: 2 no-self-compare: 2 no-sequences: 2 + no-shadow: 2 no-shadow-restricted-names: 2 no-trailing-spaces: 2 no-unused-expressions: 2 + no-var: 2 + one-var: [2, never] + prefer-const: 2 quotes: [2, single, avoid-escape] semi: [2, always] space-after-keywords: [2, always] space-before-function-paren: [2, always] + strict: [2, never] + +ecma-features: + arrow-functions: true + block-bindings: true + classes: true + for-of: true + destructuring: true + object-literal-computed-properties: true + object-literal-shorthand-methods: true + oobject-literal-shorthand-properties: true + super-in-functions: true + template-strings: true diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000..f06235c46 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +node_modules +dist diff --git a/.jshintrc b/.jshintrc deleted file mode 100644 index 30e75c10e..000000000 --- a/.jshintrc +++ /dev/null @@ -1,14 +0,0 @@ -{ - "strict" : true, - "validthis": true, - "browser" : true, - "jquery" : true, - "curly" : true, - "laxbreak" : true, - "newcap" : true, - "noarg" : true, - "undef" : true, - "unused" : true, - "strict" : true, - "trailing" : true -} diff --git a/.tern-project b/.tern-project new file mode 100644 index 000000000..60f5f9bb7 --- /dev/null +++ b/.tern-project @@ -0,0 +1,11 @@ +{ + "libs": [ + "browser" + ], + "loadEagerly": [ + "./src/**/*.js" + ], + "plugins": { + "node": {} + } +} diff --git a/demo/dropzones.html b/demo/dropzones.html index 6633de794..8666a6e86 100644 --- a/demo/dropzones.html +++ b/demo/dropzones.html @@ -3,7 +3,7 @@