Skip to content

Commit 681677f

Browse files
author
Olha Virolainen
authored
Revitalize component (#24)
* * Revitalize component * Use this.logger functionality instead of console.log * Update libs to latest versions * Update sailor to 2.6.14 version #22 #23 #21
1 parent 1ab891c commit 681677f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+6737
-2287
lines changed

.circleci/config.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
version: 2
2+
jobs:
3+
test:
4+
docker:
5+
- image: circleci/node:14-stretch
6+
steps:
7+
- checkout
8+
- restore_cache:
9+
key: dependency-cache-{{ checksum "package.json" }}
10+
- run:
11+
name: Installing Dependencies
12+
command: npm install
13+
- save_cache:
14+
key: dependency-cache-{{ checksum "package.json" }}
15+
paths:
16+
- node_modules
17+
- run:
18+
name: Running Mocha Unit
19+
command: npm test
20+
workflows:
21+
version: 2
22+
build_and_test:
23+
jobs:
24+
- test

.eslintrc.js

Lines changed: 26 additions & 154 deletions
Original file line numberDiff line numberDiff line change
@@ -1,157 +1,29 @@
1-
'use strict';
2-
3-
const ERROR = 'error';
4-
const WARN = 'warn';
5-
const ALWAYS = 'always';
6-
const NEVER = 'never';
7-
81
module.exports = {
9-
"parserOptions": {
10-
"ecmaVersion": 8
2+
extends: 'airbnb-base',
3+
rules: {
4+
},
5+
env: {
6+
node: true,
7+
mocha: true,
8+
},
9+
overrides: [
10+
{
11+
files: [
12+
'*.test.js',
13+
'*.spec*',
14+
],
15+
rules: {
16+
'no-unused-expressions': 'off',
17+
},
1118
},
12-
'env': {
13-
es6: true,
14-
node: true
19+
{
20+
files: [
21+
'*',
22+
],
23+
rules: {
24+
'max-len': ['error', { code: 180 }],
25+
26+
},
1527
},
16-
'extends': 'eslint:recommended',
17-
'rules': {
18-
'indent': [
19-
ERROR,
20-
4,
21-
{
22-
SwitchCase: 1
23-
}
24-
],
25-
'linebreak-style': ERROR,
26-
'quotes': [
27-
WARN,
28-
'single'
29-
],
30-
'semi': [
31-
ERROR,
32-
ALWAYS
33-
],
34-
'func-names': ERROR,
35-
'no-empty': ERROR,
36-
'no-empty-function': ERROR,
37-
'brace-style': [
38-
ERROR,
39-
'1tbs',
40-
{ allowSingleLine: true }
41-
],
42-
'no-multiple-empty-lines': ERROR,
43-
'no-multi-spaces': ERROR,
44-
'one-var': [
45-
ERROR,
46-
NEVER
47-
],
48-
'quote-props': [
49-
WARN,
50-
'consistent-as-needed'
51-
],
52-
'key-spacing': ERROR,
53-
'space-unary-ops': [
54-
ERROR,
55-
{
56-
words: true,
57-
nonwords: false
58-
}
59-
],
60-
'no-spaced-func': ERROR,
61-
'space-before-function-paren': [
62-
ERROR,
63-
{
64-
anonymous: ALWAYS,
65-
named: NEVER
66-
}
67-
],
68-
'arrow-body-style': [
69-
WARN,
70-
'as-needed'
71-
],
72-
'array-bracket-spacing': ERROR,
73-
'space-in-parens': ERROR,
74-
'comma-dangle': ERROR,
75-
'no-trailing-spaces': ERROR,
76-
'yoda': ERROR,
77-
'max-len': [
78-
ERROR,
79-
120
80-
],
81-
'camelcase': [
82-
ERROR,
83-
{
84-
properties: 'never'
85-
}
86-
],
87-
'new-cap': [
88-
WARN,
89-
{
90-
capIsNewExceptions: ['Q']
91-
}
92-
],
93-
'comma-style': ERROR,
94-
'curly': ERROR,
95-
'object-curly-spacing': [
96-
WARN,
97-
ALWAYS
98-
],
99-
'object-curly-newline': [
100-
ERROR,
101-
{
102-
ObjectExpression: {
103-
minProperties: 1
104-
},
105-
ObjectPattern: {
106-
minProperties: 5
107-
}
108-
}
109-
],
110-
'object-property-newline': ERROR,
111-
'template-curly-spacing': ERROR,
112-
'dot-notation': ERROR,
113-
'dot-location': [
114-
ERROR,
115-
'property'
116-
],
117-
'func-style': [
118-
ERROR,
119-
'declaration',
120-
{
121-
allowArrowFunctions: true
122-
}
123-
],
124-
'eol-last': ERROR,
125-
'space-infix-ops': ERROR,
126-
'keyword-spacing': ERROR,
127-
'space-before-blocks': ERROR,
128-
'no-invalid-this': WARN,
129-
'consistent-this': WARN,
130-
'no-this-before-super': ERROR,
131-
'no-unreachable': ERROR,
132-
'no-sparse-arrays': ERROR,
133-
'array-callback-return': ERROR,
134-
'strict': [
135-
WARN,
136-
'global'
137-
],
138-
'eqeqeq': ERROR,
139-
'no-use-before-define': WARN,
140-
'no-undef': ERROR,
141-
'no-unused-vars': WARN,
142-
'no-mixed-spaces-and-tabs': ERROR,
143-
'operator-linebreak': [
144-
ERROR,
145-
'before'
146-
],
147-
'no-console': [
148-
WARN,
149-
{
150-
'allow': [
151-
'warn',
152-
'error'
153-
]
154-
}
155-
]
156-
}
157-
};
28+
],
29+
};

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
node_modules
22
coverage
33
.idea
4-
.vscode
4+
.vscode
5+
.env

.travis.yml

Lines changed: 0 additions & 4 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# 1.0.0 (July 29, 2020)
2+
3+
* Use this.logger functionality instead of console.log
4+
* Update libs to latest versions
5+
* Update sailor to 2.6.14 version
6+
* Add `Poll for New Mail` trigger
7+
* Add `Move Mail` action
8+
9+
# 0.0.3 (July 6, 2017)
10+
11+
* Initial release

0 commit comments

Comments
 (0)