-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: yui comment style chore: update eslint config (#133) refactor: switch to documentation.js and add static type checking fix: Serializer#serializers type annotation refactor: more flow integration and native es6 support deps: update eslint to version 2.11.0 (#135) https://greenkeeper.io/
- Loading branch information
1 parent
ed58e7a
commit 82eab32
Showing
61 changed files
with
1,116 additions
and
635 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,18 @@ | ||
{ | ||
"presets": [ | ||
"es2015", | ||
"stage-1" | ||
], | ||
"plugins": [ | ||
"transform-runtime", | ||
"transform-decorators-legacy" | ||
"syntax-flow", | ||
"transform-es2015-modules-commonjs", | ||
"transform-decorators-legacy", | ||
"transform-flow-strip-types", | ||
"transform-class-properties", | ||
"transform-es2015-classes", | ||
"transform-es2015-destructuring", | ||
"transform-es2015-parameters", | ||
"transform-es2015-spread", | ||
"transform-decorators", | ||
"syntax-trailing-function-commas", | ||
"transform-object-rest-spread", | ||
"transform-async-to-generator", | ||
"transform-exponentiation-operator" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# compiled output | ||
dist/* | ||
|
||
# tests | ||
test/* | ||
|
||
# dependencies | ||
node_modules/* | ||
|
||
# misc | ||
decl/* | ||
examples/* | ||
src/**/decl.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,160 @@ | ||
{ | ||
"ecmaFeatures": { | ||
"modules": true | ||
}, | ||
"env": { | ||
"node": true | ||
}, | ||
"globals": { | ||
"Map": true, | ||
"Set": true, | ||
"Promise": true, | ||
"Symbol": true, | ||
"WeakMap": true, | ||
"before": true, | ||
"after": true, | ||
"describe": true, | ||
"it": true, | ||
"external": true | ||
}, | ||
"parser": "babel-eslint", | ||
"rules": { | ||
"strict": 0, | ||
"quotes": [2, "single"], | ||
"comma-dangle": 0, | ||
"no-cond-assign": 1, | ||
"no-console": 0, | ||
"no-constant-condition": 0, | ||
"no-control-regex": 1, | ||
"no-debugger": 1, | ||
"no-dupe-keys": 1, | ||
"no-empty": 0, | ||
"no-empty-character-class": 1, | ||
"no-ex-assign": 1, | ||
"no-extra-boolean-cast": 1, | ||
"no-extra-parens": 0, | ||
"no-extra-semi": 1, | ||
"no-func-assign": 1, | ||
"no-inner-declarations": 0, | ||
"no-invalid-regexp": 1, | ||
"no-negated-in-lhs": 1, | ||
"no-obj-calls": 1, | ||
"no-regex-spaces": 1, | ||
"no-reserved-keys": 0, | ||
"no-sparse-arrays": 1, | ||
"no-unreachable": 1, | ||
"use-isnan": 1, | ||
"valid-jsdoc": 0, | ||
"valid-typeof": 1, | ||
|
||
"block-scoped-var": 0, | ||
"complexity": 0, | ||
"consistent-return": 0, | ||
"curly": 1, | ||
"default-case": 0, | ||
"dot-notation": 1, | ||
"eqeqeq": 1, | ||
"guard-for-in": 0, | ||
"no-alert": 1, | ||
"no-caller": 1, | ||
"no-div-regex": 1, | ||
"no-else-return": 0, | ||
"no-eq-null": 0, | ||
"no-eval": 1, | ||
"no-extend-native": 1, | ||
"no-extra-bind": 1, | ||
"no-fallthrough": 1, | ||
"no-floating-decimal": 1, | ||
"no-implied-eval": 1, | ||
"no-labels": 1, | ||
"no-iterator": 1, | ||
"no-lone-blocks": 1, | ||
"no-loop-func": 0, | ||
"no-multi-str": 0, | ||
"no-native-reassign": 0, | ||
"no-new": 1, | ||
"no-new-func": 1, | ||
"no-new-wrappers": 1, | ||
"no-octal": 1, | ||
"no-octal-escape": 1, | ||
"no-proto": 1, | ||
"no-redeclare": 0, | ||
"no-return-assign": 1, | ||
"no-script-url": 1, | ||
"no-self-compare": 1, | ||
"no-sequences": 1, | ||
"no-unused-expressions": 0, | ||
"no-void": 1, | ||
"no-warning-comments": 0, | ||
"no-with": 1, | ||
"radix": 1, | ||
"semi-spacing": 1, | ||
"vars-on-top": 0, | ||
"wrap-iife": 0, | ||
"yoda": 1, | ||
|
||
"no-catch-shadow": 1, | ||
"no-delete-var": 1, | ||
"no-label-var": 1, | ||
"no-shadow": 1, | ||
"no-shadow-restricted-names": 1, | ||
"no-undef": 2, | ||
"no-undefined": 0, | ||
"no-undef-init": 1, | ||
"no-unused-vars": [1, { | ||
"vars": "all", | ||
"args": "none" | ||
}], | ||
"no-use-before-define": 0, | ||
|
||
"handle-callback-err": 1, | ||
"no-mixed-requires": 1, | ||
"no-new-require": 1, | ||
"no-path-concat": 1, | ||
"no-process-exit": 0, | ||
"no-restricted-modules": 1, | ||
"no-sync": 0, | ||
|
||
"key-spacing": 0, | ||
"comma-spacing": 0, | ||
"no-multi-spaces": 0, | ||
"brace-style": 0, | ||
"camelcase": 0, | ||
"consistent-this": [0, "self"], | ||
"eol-last": 1, | ||
"func-names": 0, | ||
"func-style": 0, | ||
"new-cap": 0, | ||
"new-parens": 1, | ||
"no-nested-ternary": 0, | ||
"no-array-constructor": 1, | ||
"no-lonely-if": 0, | ||
"no-new-object": 1, | ||
"no-spaced-func": 1, | ||
"no-ternary": 0, | ||
"no-trailing-spaces": 1, | ||
"no-underscore-dangle": 0, | ||
"no-mixed-spaces-and-tabs": 1, | ||
"quote-props": 0, | ||
"semi": 1, | ||
"sort-vars": 0, | ||
"keyword-spacing": 1, | ||
"space-in-brackets": 0, | ||
"space-in-parens": 0, | ||
"space-infix-ops": 1, | ||
"space-unary-ops": [1, { | ||
"words": true, | ||
"nonwords": false | ||
}], | ||
"max-nested-callbacks": 0, | ||
"one-var": 0, | ||
"wrap-regex": 0, | ||
|
||
"max-depth": 0, | ||
"max-len": [1, 80, 4], | ||
"max-params": 0, | ||
"max-statements": 0, | ||
"no-bitwise": 1, | ||
"no-plusplus": 0 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[libs] | ||
interfaces | ||
|
||
[ignore] | ||
.*/\(node_modules\|dist\|examples\|test\|docs\)/.* | ||
|
||
[options] | ||
esproposal.class_instance_fields=enable | ||
esproposal.class_static_fields=enable | ||
esproposal.decorators=ignore | ||
esproposal.export_star_as=enable | ||
|
||
unsafe.enable_getters_and_setters=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
|
||
# compiled output | ||
/dist | ||
/docs | ||
|
||
# dependencies | ||
node_modules/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.