Skip to content

Commit

Permalink
Merge pull request #71 from jesusoterogomez/rel/0.5.1
Browse files Browse the repository at this point in the history
Rel/0.5.1
  • Loading branch information
jesusoterogomez committed Oct 24, 2019
2 parents 649aa3b + a0fe4d8 commit e6b154e
Show file tree
Hide file tree
Showing 8 changed files with 3,528 additions and 3,126 deletions.
8 changes: 7 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
{
"presets" : ["react", "es2015", "stage-0"]
"presets": [
"@babel/preset-env",
"@babel/preset-react"
],
"plugins": [
"@babel/plugin-proposal-class-properties"
]
}
72 changes: 42 additions & 30 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -8,29 +8,45 @@

"plugins": ["react"],

"ecmaFeatures": {
"arrowFunctions": true,
"binaryLiterals": true,
"blockBindings": true,
"classes": true,
"defaultParams": true,
"destructuring": true,
"forOf": true,
"generators": true,
"modules": true,
"objectLiteralComputedProperties": true,
"objectLiteralDuplicateProperties": true,
"objectLiteralShorthandMethods": true,
"objectLiteralShorthandProperties": true,
"octalLiterals": true,
"regexUFlag": true,
"regexYFlag": true,
"spread": true,
"superInFunctions": true,
"templateStrings": true,
"unicodeCodePointEscapes": true,
"globalReturn": true,
"jsx": true
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],

"settings": {
"react": {
"pragma": "React",
"version": "16.0.0",
"flowVersion": "0.53"
}
},

"parserOptions": {
"sourceType": "module",
"ecmaFeatures": {
"arrowFunctions": true,
"binaryLiterals": true,
"blockBindings": true,
"classes": true,
"defaultParams": true,
"destructuring": true,
"forOf": true,
"generators": true,
"modules": true,
"objectLiteralComputedProperties": true,
"objectLiteralDuplicateProperties": true,
"objectLiteralShorthandMethods": true,
"objectLiteralShorthandProperties": true,
"octalLiterals": true,
"regexUFlag": true,
"regexYFlag": true,
"spread": true,
"superInFunctions": true,
"templateStrings": true,
"unicodeCodePointEscapes": true,
"globalReturn": true,
"jsx": true
}
},

"rules": {
Expand Down Expand Up @@ -87,7 +103,6 @@
"no-caller": 2, // disallow use of arguments.caller or arguments.callee
"no-div-regex": 2, // disallow division operators explicitly at beginning of regular expression (off by default)
"no-else-return": 2, // disallow else after a return in an if (off by default)
"no-empty-label": 2, // disallow use of labels for anything other then loops and switches
"no-eq-null": 2, // disallow comparisons to null without a type-checking operator (off by default)
"no-eval": 2, // disallow use of eval()
"no-extend-native": 2, // disallow adding to native types
Expand Down Expand Up @@ -164,7 +179,7 @@
"func-style": 0, // enforces use of function declarations or expressions (off by default)
"key-spacing": [1, {"beforeColon": false, "afterColon": true}], // enforces spacing between keys and values in object literal properties
"max-nested-callbacks": [1, 3], // specify the maximum depth callbacks can be nested (off by default)
"new-cap": [1, {newIsCap: true, capIsNew: false}], // require a capital letter for constructors
"new-cap": [1, {"newIsCap": true, "capIsNew": false}], // require a capital letter for constructors
"new-parens": 1, // disallow the omission of parentheses when invoking a constructor with no arguments
"newline-after-var": 0, // allow/disallow an empty newline after var statement (off by default)
"no-array-constructor": 1, // disallow use of the Array constructor
Expand All @@ -178,16 +193,14 @@
"no-ternary": 0, // disallow the use of ternary operators (off by default)
"no-trailing-spaces": 1, // disallow trailing whitespace at the end of lines
"no-underscore-dangle": 0, // disallow dangling underscores in identifiers
"no-extra-parens": [1, "functions"], // disallow wrapping of non-IIFE statements in parens
"one-var": [1, "never"], // allow just one var statement per function (off by default)
"operator-assignment": [1, "always"], // require assignment operator shorthand where possible or prohibit it entirely (off by default)
"padded-blocks": [1, "never"], // enforce padding within blocks (off by default)
"quote-props": [1, "as-needed"], // require quotes around object literal property names (off by default)
"quotes": [0, "double"], // specify whether double or single quotes should be used
"semi": [2, "always"], // require or disallow use of semicolons instead of ASI
"semi-spacing": [1, {"before": false, "after": true}], // enforce spacing before and after semicolons
"sort-vars": 0, // sort variables within the same declaration block (off by default)
"space-after-keywords": [1, "always"], // require a space after certain keywords (off by default)
"keyword-spacing": [1, {"before": true, "after": true}], // require a space after certain keywords (off by default)
"space-before-blocks": [1, "always"], // require or disallow space before blocks (off by default)
"space-before-function-paren": [1, {"anonymous": "never", "named": "never"}], // require or disallow space before function opening parenthesis (off by default)
"object-curly-spacing": [1, "never"], // require or disallow spaces inside brackets (off by default)
Expand Down Expand Up @@ -237,7 +250,6 @@
"react/no-unknown-property": 2, // Prevent usage of unknown DOM property
"react/prop-types": 2, // Prevent missing props validation in a React component definition
"react/react-in-jsx-scope": 2, // Prevent missing React when using JSX
"react/self-closing-comp": 2, // Prevent extra closing tags for components without children
"react/wrap-multilines": 2, // Prevent missing parentheses around multilines JSX
"react/self-closing-comp": 2 // Prevent extra closing tags for components without children
}
}
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
10.16.0
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
language: node_js
node_js:
- '4.1'
- '10.16.0'
install:
- npm install
before_script:
Expand All @@ -19,7 +19,7 @@ deploy:
condition: "$TAG_FOUND == false"
branch: master
after_deploy:
if ([ "$TRAVIS_BRANCH" == "master" ] || [ ! -z "$PACKAGE_VERSION" ]) &&
if ([ "$TRAVIS_BRANCH" == "master" ] || [ ! -z "$PACKAGE_VERSION" ]) &&
[ "$TRAVIS_PULL_REQUEST" == "false" ]; then
git config --global user.email "[email protected]";
git config --global user.name "Travis CI";
Expand Down
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ This project adheres to [Semantic Versioning](http://semver.org/).

### Fixed

## [0.5.1] - 2019-10-24
### Fixed
- [\#68] Removed deprecated `componentWillMount`

## [0.5.0] - 2018-05-26
### Added
- [\#58] Support for setting vertical offset by specifying `top` as a default option.
Expand Down Expand Up @@ -43,7 +47,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
### Added
- [\#34] Support for dismissing toasts
- [\#36] Support for overriding default options through `<Notification/>` component, details in "Overriding Defaults" section of README.

### Changed
- Temporarily disables support for custom colors, this will be added as part of options parameter.

Expand Down
Loading

0 comments on commit e6b154e

Please sign in to comment.