Skip to content
This repository was archived by the owner on Dec 20, 2023. It is now read-only.

Commit dc75690

Browse files
authored
Merge pull request #17 from C2FO/v1.0.0-rc
v1.0.0
2 parents c4fbf2e + cb99453 commit dc75690

40 files changed

+3662
-11304
lines changed

.eslintrc.js

Lines changed: 17 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,39 @@
11
module.exports = {
2-
"extends": "airbnb-base",
3-
"parserOptions": {
4-
"sourceType": "script"
2+
env: {
3+
commonjs: true,
4+
es6: true,
5+
mocha: true
56
},
6-
"env":{
7-
"mocha": true
7+
extends: 'airbnb-base',
8+
globals: {
9+
Atomics: 'readonly',
10+
SharedArrayBuffer: 'readonly',
811
},
9-
"rules": {
10-
"no-buffer-constructor": 0,
11-
"no-use-before-define": [
12-
"error", {
13-
"functions": false
14-
}
15-
],
12+
parserOptions: {
13+
ecmaVersion: 2018,
14+
},
15+
rules: {
1616
"indent": [
1717
"error",
1818
4
1919
],
20-
"func-names": ["error", "always"],
21-
"object-curly-spacing": [ "error", "always" ],
22-
"array-bracket-spacing": [ "error", "always" ],
2320
"comma-dangle": ["error", {
2421
"arrays": "always-multiline",
2522
"objects": "always-multiline",
2623
"imports": "always-multiline",
2724
"exports": "always-multiline",
2825
"functions": "never"
2926
}],
30-
"class-methods-use-this": 0,
31-
"prefer-destructuring": 0,
32-
"prefer-rest-params": 0,
33-
"prefer-spread": 0,
34-
"no-unused-vars": ["error", { "vars": "all", "args": "after-used", "ignoreRestSiblings": false }],
35-
"arrow-body-style": 0,
36-
"strict": [
37-
"error",
38-
"global"
39-
],
27+
"no-restricted-syntax": ["error", "ForInStatement", "LabeledStatement", "WithStatement"],
28+
"object-curly-spacing": ["error", "always"],
29+
"array-bracket-spacing": ["error", "always"],
4030
"no-underscore-dangle": 0,
41-
"no-plusplus": [
42-
"error",
43-
{
44-
"allowForLoopAfterthoughts": true
45-
}
46-
],
47-
"no-param-reassign": [
48-
"error",
49-
{
50-
"props": false
51-
}
52-
],
53-
"no-shadow": ["error", {"allow": ["it"]}],
54-
// overriding default length from 100 to 120; all other existing options must also be specified in the override
55-
// base: https://github.com/airbnb/javascript/blob/eslint-config-airbnb-v13.0.0/packages/eslint-config-airbnb-base/rules/style.js#L128
5631
"max-len": ["error", 120, 2, {
57-
ignoreUrls: true,
5832
ignoreComments: false,
5933
ignoreUrls: true,
6034
ignoreRegExpLiterals: true,
6135
ignoreStrings: true,
6236
ignoreTemplateLiterals: true,
6337
}]
64-
}
65-
};
38+
},
39+
};

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
node_modules
22
*.iml
33
.idea
4+
.nyc_output

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v5.12.0
1+
v8.16.0

.travis.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
language: node_js
22
node_js:
3-
- "stable"
3+
- "node"
4+
- "10"
45
- "8"
5-
- "6"
6-
- "5"
6+
7+
after_success: npm run coverage

HISTORY.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# v1.0.0
22

33
* Add env variable support
4+
* Added test coverage
5+
* Updated to support > node 8
6+
* Updated README
47

58
# v0.2.1
69

0 commit comments

Comments
 (0)