-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
7,416 additions
and
1,409 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"presets": ["es2015"] | ||
} |
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,62 @@ | ||
{ | ||
// http://eslint.org/docs/rules/ | ||
|
||
"ecmaFeatures": { | ||
"binaryLiterals": false, // enable binary literals | ||
"blockBindings": true, // enable let and const (aka block bindings) | ||
"defaultParams": false, // enable default function parameters | ||
"forOf": true, // enable for-of loops | ||
"generators": false, // enable generators | ||
"objectLiteralComputedProperties": false, // enable computed object literal property names | ||
"objectLiteralDuplicateProperties": false, // enable duplicate object literal properties in strict mode | ||
"objectLiteralShorthandMethods": false, // enable object literal shorthand methods | ||
"objectLiteralShorthandProperties": false, // enable object literal shorthand properties | ||
"octalLiterals": false, // enable octal literals | ||
"regexUFlag": false, // enable the regular expression u flag | ||
"regexYFlag": false, // enable the regular expression y flag | ||
"templateStrings": true , // enable template strings | ||
"unicodeCodePointEscapes": false, // enable code point escapes | ||
"jsx": false, // enable JSX | ||
"modules": true | ||
}, | ||
|
||
"env": { | ||
"browser": true, // browser global variables. | ||
"node": true, // Node.js global variables and Node.js-specific rules. | ||
"amd": true, // defines require() and define() as global variables as per the amd spec. | ||
"es6": true // EcmaScript 6 | ||
}, | ||
|
||
"globals": { | ||
// e.g. "angular": true | ||
}, | ||
|
||
"plugins": [ | ||
// e.g. "react" (must run `npm install eslint-plugin-react` first) | ||
], | ||
|
||
"rules": { | ||
////////// Possible Errors ////////// | ||
|
||
"valid-typeof": 2, // Ensure that the results of typeof are compared against a valid string | ||
|
||
|
||
////////// Best Practices ////////// | ||
|
||
"eqeqeq": 2, // require the use of === and !== | ||
"no-alert": 2, // disallow the use of alert, confirm, and prompt | ||
|
||
////////// Stylistic Issues ////////// | ||
|
||
"eol-last": 2, // enforce newline at the end of file, with no multiple empty lines | ||
"no-lonely-if": 2, // disallow if as the only statement in an else block (off by default) | ||
"no-mixed-spaces-and-tabs": 2, // disallow mixed spaces and tabs for indentation | ||
"no-multiple-empty-lines": 2, // disallow multiple empty lines (off by default) | ||
"no-trailing-spaces": 2, // disallow trailing whitespace at the end of lines | ||
|
||
"quotes": [ | ||
2, | ||
"double" | ||
] | ||
} | ||
} |
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,3 +1,7 @@ | ||
node_modules | ||
npm-debug.log | ||
RELEASE_MESSAGE* | ||
test* | ||
test/codebirdm.js | ||
test/codebirdt.js | ||
test*.html | ||
*.jpg |
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,27 @@ | ||
# The Travis setup: | ||
# - run lint for every JS version | ||
# - run testsuite for every JS version | ||
|
||
language: node_js | ||
|
||
node_js: | ||
- "0.10" | ||
- "0.12" | ||
- iojs | ||
- "8" | ||
- "9" | ||
- "10" | ||
|
||
sudo: false | ||
|
||
script: | ||
- ./node_modules/eslint/bin/eslint.js codebird.js | ||
- npm test | ||
|
||
matrix: | ||
fast_finish: true | ||
|
||
# trigger Buildtime Trend Service to parse Travis CI log | ||
notifications: | ||
webhooks: | ||
- https://buildtimetrend.herokuapp.com/travis |
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.