Skip to content

Commit 88cd187

Browse files
committed
upgrades, fixes, js standard code style
1 parent 7d600f9 commit 88cd187

File tree

4 files changed

+18
-208
lines changed

4 files changed

+18
-208
lines changed

.beverage

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
}
66
},
77
"test": {},
8-
"buildWatch": ["index.js"],
9-
"sourcegate": [{"recipe": "eslint", "preset": "airbnb"}]
8+
"causality": {"build": ["index.js"]},
9+
"sourcegate": [{"recipe": "eslint", "sources": {"extends": ["standard"]}}]
1010
}

.eslintrc

+7-193
Original file line numberDiff line numberDiff line change
@@ -1,206 +1,20 @@
11
{
2-
"parser": "babel-eslint",
2+
"extends": [
3+
"standard"
4+
],
35
"env": {
4-
"browser": true,
56
"node": true
67
},
7-
"ecmaFeatures": {
8-
"arrowFunctions": true,
9-
"blockBindings": true,
10-
"classes": true,
11-
"defaultParams": true,
12-
"destructuring": true,
13-
"forOf": true,
14-
"generators": false,
15-
"modules": true,
16-
"objectLiteralComputedProperties": true,
17-
"objectLiteralDuplicateProperties": false,
18-
"objectLiteralShorthandMethods": true,
19-
"objectLiteralShorthandProperties": true,
20-
"spread": true,
21-
"superInFunctions": true,
22-
"templateStrings": true,
23-
"jsx": true
24-
},
8+
"parser": "babel-eslint",
259
"rules": {
26-
"strict": [
27-
2,
28-
"never"
29-
],
30-
"no-var": 2,
31-
"no-shadow": 2,
32-
"no-shadow-restricted-names": 2,
33-
"no-unused-vars": [
34-
2,
35-
{
36-
"vars": "local",
37-
"args": "after-used"
38-
}
39-
],
40-
"no-use-before-define": 2,
41-
"comma-dangle": [
42-
2,
10+
"semi": [
11+
1,
4312
"never"
4413
],
45-
"no-cond-assign": [
46-
2,
47-
"always"
48-
],
49-
"no-console": 1,
50-
"no-debugger": 1,
51-
"no-alert": 1,
52-
"no-constant-condition": 1,
53-
"no-dupe-keys": 2,
54-
"no-duplicate-case": 2,
55-
"no-empty": 2,
56-
"no-ex-assign": 2,
57-
"no-extra-boolean-cast": 0,
58-
"no-extra-semi": 2,
59-
"no-func-assign": 2,
60-
"no-inner-declarations": 2,
61-
"no-invalid-regexp": 2,
62-
"no-irregular-whitespace": 2,
63-
"no-obj-calls": 2,
64-
"no-reserved-keys": 2,
65-
"no-sparse-arrays": 2,
66-
"no-unreachable": 2,
67-
"use-isnan": 2,
68-
"block-scoped-var": 2,
69-
"consistent-return": 2,
70-
"curly": [
71-
2,
72-
"multi-line"
73-
],
74-
"default-case": 2,
75-
"dot-notation": [
76-
2,
77-
{
78-
"allowKeywords": true
79-
}
80-
],
81-
"eqeqeq": 2,
82-
"guard-for-in": 2,
83-
"no-caller": 2,
84-
"no-else-return": 2,
85-
"no-eq-null": 2,
86-
"no-eval": 2,
87-
"no-extend-native": 2,
88-
"no-extra-bind": 2,
89-
"no-fallthrough": 2,
90-
"no-floating-decimal": 2,
91-
"no-implied-eval": 2,
92-
"no-lone-blocks": 2,
93-
"no-loop-func": 2,
94-
"no-multi-str": 2,
95-
"no-native-reassign": 2,
96-
"no-new": 2,
97-
"no-new-func": 2,
98-
"no-new-wrappers": 2,
99-
"no-octal": 2,
100-
"no-octal-escape": 2,
101-
"no-param-reassign": 2,
102-
"no-proto": 2,
103-
"no-redeclare": 2,
104-
"no-return-assign": 2,
105-
"no-script-url": 2,
106-
"no-self-compare": 2,
107-
"no-sequences": 2,
108-
"no-throw-literal": 2,
109-
"no-with": 2,
110-
"radix": 2,
111-
"vars-on-top": 2,
112-
"wrap-iife": [
113-
2,
114-
"any"
115-
],
116-
"yoda": 2,
117-
"indent": [
118-
2,
119-
2
120-
],
121-
"brace-style": [
122-
2,
123-
"1tbs",
124-
{
125-
"allowSingleLine": true
126-
}
127-
],
12814
"quotes": [
12915
1,
13016
"single",
13117
"avoid-escape"
132-
],
133-
"camelcase": [
134-
2,
135-
{
136-
"properties": "never"
137-
}
138-
],
139-
"comma-spacing": [
140-
2,
141-
{
142-
"before": false,
143-
"after": true
144-
}
145-
],
146-
"comma-style": [
147-
2,
148-
"last"
149-
],
150-
"eol-last": 2,
151-
"func-names": 1,
152-
"key-spacing": [
153-
2,
154-
{
155-
"beforeColon": false,
156-
"afterColon": true
157-
}
158-
],
159-
"new-cap": [
160-
2,
161-
{
162-
"newIsCap": true
163-
}
164-
],
165-
"no-multiple-empty-lines": [
166-
2,
167-
{
168-
"max": 2
169-
}
170-
],
171-
"no-nested-ternary": 2,
172-
"no-new-object": 2,
173-
"no-spaced-func": 2,
174-
"no-trailing-spaces": 2,
175-
"no-wrap-func": 2,
176-
"no-underscore-dangle": 0,
177-
"one-var": [
178-
2,
179-
"never"
180-
],
181-
"padded-blocks": [
182-
2,
183-
"never"
184-
],
185-
"semi": [
186-
1,
187-
"never"
188-
],
189-
"semi-spacing": [
190-
2,
191-
{
192-
"before": false,
193-
"after": true
194-
}
195-
],
196-
"space-after-keywords": 2,
197-
"space-before-blocks": 2,
198-
"space-before-function-paren": [
199-
2,
200-
"never"
201-
],
202-
"space-infix-ops": 2,
203-
"space-return-throw-case": 2,
204-
"spaced-line-comment": 2
18+
]
20519
}
20620
}

index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import harp from 'harp'
44
import sync from 'browser-sync'
55
let reload = sync.reload
66

7-
function pollinate(o) {
7+
function pollinate (o) {
88
if (!o.harp) return {}
99
// infer what pollen is wanted
1010
let anthers = ['harp']
@@ -14,7 +14,7 @@ function pollinate(o) {
1414
return pollen(anthers, path.normalize('./index.json'))
1515
}
1616

17-
export default function(gulp, opts) {
17+
export default function (gulp, opts) {
1818
let ho = pollinate(opts).harp
1919

2020
gulp.task(ho.name, ho.help, () => {

package.json

+7-11
Original file line numberDiff line numberDiff line change
@@ -17,29 +17,25 @@
1717
"author": "Orlin M Bozhinov <[email protected]>",
1818
"main": "index.es5.js",
1919
"dependencies": {
20-
"browser-sync": "^2.7.10",
20+
"browser-sync": "^2.7.12",
2121
"harp": "^0.17.0",
22-
"ramda": "^0.14.0",
22+
"ramda": "^0.15.0",
2323
"source-map-support": "^0.3.1",
2424
"sourcegate": "^0.1.3",
25-
"stamina": "0.0.2"
25+
"stamina": "0.0.3"
2626
},
2727
"devDependencies": {
2828
"babel": "^5.5.8",
29-
"babel-eslint": "^3.1.15",
29+
"babel-eslint": "^3.1.17",
3030
"beverage": "0.0.3",
31-
"eslint": "^0.22.1",
31+
"eslint": "^0.23.0",
32+
"eslint-config-standard": "^3.3.0",
3233
"gulp": "^3.9.0"
3334
},
3435
"scripts": {
3536
"build": "node_modules/.bin/babel index.js -o index.es5.js --source-maps inline --loose es6.modules",
3637
"build:watch": "npm run build -- -w",
3738
"test": "node_modules/.bin/beverage -h -o"
3839
},
39-
"licenses": [
40-
{
41-
"type": "MIT",
42-
"url": "http://orlin.mit-license.org"
43-
}
44-
]
40+
"license": "MIT"
4541
}

0 commit comments

Comments
 (0)