Skip to content

Commit

Permalink
integrate rollup
Browse files Browse the repository at this point in the history
  • Loading branch information
jamuhl committed Mar 9, 2016
1 parent 5039906 commit d9912de
Show file tree
Hide file tree
Showing 13 changed files with 54 additions and 644 deletions.
9 changes: 8 additions & 1 deletion .babelrc
@@ -1,3 +1,10 @@
{
"stage": 0
"env": {
"development": {
"presets": [ "es2015", "stage-0" ]
},
"es": {
"presets": [ "es2015-rollup", "stage-0" ]
}
}
}
119 changes: 15 additions & 104 deletions .eslintrc
@@ -1,108 +1,19 @@
---
parser: babel-eslint

ecmaFeatures:
arrowFunctions: true
blockBindings: true
classes: true
defaultParams: true
destructuring: true
forOf: true
generators: false
modules: true
objectLiteralComputedProperties: true
objectLiteralDuplicateProperties: false
objectLiteralShorthandMethods: true
objectLiteralShorthandProperties: true
spread: true
superInFunctions: true
templateStrings: true

env:
browser: true
node: true
es6: true

globals:
__resourceQuery: false
bootstrap: false
describe: false
describeSaga: false
describeEvent: false
describeCommand: false
describeScene: false
before: false
it: false
xit: false
window : false
beforeEach : false
afterEach : false
after : false
before : false
beforeEachChapter: false
describeScenario: false
describeChapter: false
describeStep: false
document : false
window: false
File : false
FormData: false
QCodeDecoder: false
$: false
L: false
btoa: false
escape: false
angular: false
jQuery: false
ga: false

settings:
jsx: true

ecmaFeatures:
jsx: true
extends: airbnb

rules:
max-len: [0, 100]
no-constant-condition: 0
arrow-body-style: [1, "as-needed"]
comma-dangle: [2, "never"]
padded-blocks: [0, "never"]
no-unused-vars: [2, {vars: all, args: none}]
react/prop-types:
- 0
- ignore: #coming from hoc
- location
- fields
- handleSubmit

# ERRORS
curly: [2, "multi-line"]

# WARNINGS
no-unused-vars: [1, {vars: all, args: none}]
semi-spacing: 1
no-empty: 1
handle-callback-err: 1
eqeqeq: 1
quotes: [1, 'single']
no-unused-expressions: 1
no-throw-literal: 1
semi: 1
block-scoped-var: 1
no-alert: 1
no-console: 1
new-cap: 1
space-unary-ops: 1

# DISABLED
space-after-keywords: 0
dot-notation: 0
consistent-return: 0
brace-style: 0
no-multi-spaces: 0
no-underscore-dangle: 0
key-spacing: 0
comma-spacing: 0
no-shadow: 0
no-mixed-requires: 0
space-infix-ops: 0
strict: 0
camelcase: 0
no-wrap-func: 0
comma-dangle: 0
no-extra-semi: 0
no-use-before-define: [0, "nofunc"]

# AUTOMATED BY EDITORCONFIG
eol-last: 0
no-trailing-spaces: 0
indent: 0
globals:
expect: false
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -16,3 +16,4 @@ npm-debug.log.*
node_modules
node_modules/**/*
coverage/**/*
dist/**/*
5 changes: 2 additions & 3 deletions bower.json
@@ -1,11 +1,10 @@
{
"name": "i18next-browser-languagedetector",
"version": "0.1.0",
"main": "./bin/index.js",
"main": "./i18nextBrowserLanguageDetector.js",
"dependencies": {},
"ignore": [
"test/",
"lib/",
"dist/",
"src/",
"coverage/",
".babelrc",
Expand Down
176 changes: 0 additions & 176 deletions gulpfile.js

This file was deleted.

2 changes: 1 addition & 1 deletion i18nextBrowserLanguageDetector.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

54 changes: 0 additions & 54 deletions lib/browserLookups/cookie.js

This file was deleted.

0 comments on commit d9912de

Please sign in to comment.