Skip to content

Commit

Permalink
Merge pull request #5 from unicef-polymer/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
adi130987 authored Apr 24, 2018
2 parents 75fd33a + dd113c8 commit e1b61c0
Show file tree
Hide file tree
Showing 19 changed files with 2,017 additions and 205 deletions.
32 changes: 20 additions & 12 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,29 @@
"html"
],
"rules": {
"padded-blocks": "off",
"brace-style": "off",
"new-cap": ["error", { "capIsNewExceptions": ["Polymer"] }],
"new-cap": [
"error",
{
"capIsNewExceptions": ["Polymer"],
"capIsNewExceptionPattern": "^Etools.."
}
],
"no-var": "off",
"operator-linebreak": 1,
"no-trailing-spaces": 1,
"valid-jsdoc": 0,
"camelcase": 1,
"guard-for-in": 0,
"comma-dangle": 0,
"prefer-spread": 0,
"linebreak-style": 0,
"require-jsdoc": "off",
"max-len": ["error", 120, 4]
"valid-jsdoc": "off",
"comma-dangle": ["error", "never"],
"max-len": ["error", { "code": 120 }],
"camelcase": ["error", {"properties": "never"}],
"arrow-parens": [2, "as-needed", { "requireForBlockBody": true }]
},
"globals": {
"Polymer": true
"moment": true,
"Promise": true,
"Polymer": true,
"EtoolsLogsLevel": true,
"EtoolsLogsMixin": true,
"_": true
}
}
}
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@
A collection of Polymer behaviors used in etools apps.

## Behaviors list
### EtoolsLogsBehavior
### EtoolsLogsMixin

Can be used to log errors, warnings and other info like this.
```javascript
behaviors: [EtoolsLogsBehavior],

this.logError('some error msg...', null);
this.logWarn('some warning msg...', 'some page section');
Expand All @@ -30,7 +29,6 @@ To configure the logging level in your app config do this:
window.EtoolsLogsLevel = window.EtoolsLogsLevel || 'INFO';
```

TODO: add other behaviors from PMP App

## Install
```bash
Expand Down
Loading

0 comments on commit e1b61c0

Please sign in to comment.