-
Notifications
You must be signed in to change notification settings - Fork 5
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
1 parent
e2118ef
commit 69d537a
Showing
4 changed files
with
100 additions
and
75 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,65 +1,69 @@ | ||
{ | ||
// Parser | ||
"parser": "babel-eslint", | ||
"env": { | ||
"node": true, | ||
"browser": true | ||
}, | ||
// Parser | ||
"parser": "babel-eslint", | ||
"parserOptions": { | ||
// ECMA Features | ||
"ecmaFeatures": { | ||
"arrowFunctions": true, | ||
"blockBindings": true, | ||
"classes": true, | ||
"defaultParams": true, | ||
"destructuring": true, | ||
"modules": true, | ||
"objectLiteralComputedProperties": true, | ||
"templateStrings": true, | ||
"jsx": true | ||
}, | ||
"plugins": [ | ||
"react" | ||
], | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:react/recommended" | ||
], | ||
"rules": { | ||
// Possible Errors | ||
"no-dupe-args": 2, | ||
"no-dupe-keys": 2, | ||
"no-empty": 2, | ||
"no-func-assign": 2, | ||
"no-inner-declarations": 2, | ||
"no-unreachable": 2, | ||
"no-unexpected-multiline": 2, | ||
// Best practices | ||
"consistent-return": 0, | ||
"curly": [2, "multi-line"], | ||
"eqeqeq": 2, | ||
"no-else-return": 2, | ||
"no-multi-spaces": 0, | ||
// Strict mode | ||
"strict": 0, | ||
// Variables | ||
"no-shadow": 0, | ||
"no-unused-vars": 2, | ||
"no-use-before-define": 0, | ||
// Style | ||
"brace-style": [2, "1tbs"], | ||
"comma-spacing": [2, {"before": false, "after": true}], | ||
"comma-style": [2, "last"], | ||
"consistent-this": [2, "that"], | ||
"lines-around-comment": [2, {"allowBlockStart": true}], | ||
"key-spacing": 0, | ||
"new-parens": 0, | ||
"quotes": [2, "single", "avoid-escape"], | ||
"no-underscore-dangle": 0, | ||
"no-unneeded-ternary": 2, | ||
"semi": 2, | ||
// ES6 | ||
"no-var": 2, | ||
"no-this-before-super": 2, | ||
"object-shorthand": 2, | ||
}, | ||
"env": { | ||
"node": true, | ||
"browser": true | ||
"arrowFunctions": true, | ||
"blockBindings": true, | ||
"classes": true, | ||
"defaultParams": true, | ||
"destructuring": true, | ||
"modules": true, | ||
"objectLiteralComputedProperties": true, | ||
"templateStrings": true, | ||
"jsx": true | ||
} | ||
}, | ||
"plugins": [ | ||
"react" | ||
], | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:react/recommended", | ||
"plugin:import/errors", | ||
"plugin:import/warnings" | ||
], | ||
"rules": { | ||
// Possible Errors | ||
"no-dupe-args": 2, | ||
"no-dupe-keys": 2, | ||
"no-empty": 2, | ||
"no-func-assign": 2, | ||
"no-inner-declarations": 2, | ||
"no-unreachable": 2, | ||
"no-unexpected-multiline": 2, | ||
// Best practices | ||
"consistent-return": 0, | ||
"curly": [2, "multi-line"], | ||
"eqeqeq": 2, | ||
"no-else-return": 2, | ||
"no-multi-spaces": 0, | ||
// Strict mode | ||
"strict": 0, | ||
// Variables | ||
"no-shadow": 0, | ||
"no-unused-vars": [2, { "args": "none" }], | ||
"no-use-before-define": 0, | ||
// Style | ||
"brace-style": [2, "1tbs"], | ||
"comma-spacing": [2, {"before": false, "after": true}], | ||
"comma-style": [2, "last"], | ||
"consistent-this": [2, "that"], | ||
"lines-around-comment": [2, {"allowBlockStart": true}], | ||
"key-spacing": 0, | ||
"new-parens": 0, | ||
"quotes": [2, "single", "avoid-escape"], | ||
"no-underscore-dangle": 0, | ||
"no-unneeded-ternary": 2, | ||
"semi": 2, | ||
// ES6 | ||
"no-var": 2, | ||
"no-this-before-super": 2, | ||
"object-shorthand": 2 | ||
} | ||
} |
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 |
---|---|---|
|
@@ -6,4 +6,3 @@ dist | |
docs/dist | ||
node_modules | ||
npm-debug.log | ||
!/src/modules/BaseLink.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 |
---|---|---|
@@ -1,11 +1,24 @@ | ||
sudo: false | ||
language: node_js | ||
cache: | ||
directories: | ||
- node_modules | ||
branches: | ||
only: | ||
- master | ||
notifications: | ||
email: false | ||
node_js: | ||
- '7' | ||
- '6' | ||
- '5' | ||
- '4' | ||
before_script: | ||
- npm prune | ||
script: | ||
- npm run lint | ||
- npm run test:cover | ||
- npm run build | ||
after_success: | ||
- npm run coveralls | ||
- npm run semantic-release | ||
|
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