Skip to content

Commit 2d4a1fd

Browse files
committed
update deps
1 parent 6608fcf commit 2d4a1fd

File tree

4 files changed

+17
-182
lines changed

4 files changed

+17
-182
lines changed

β€Ž.eslintrc

+2-173
Original file line numberDiff line numberDiff line change
@@ -1,177 +1,6 @@
11
{
2-
"env": {
3-
"browser": true,
4-
"node": true
5-
},
6-
7-
"ecmaFeatures": {
8-
"arrowFunctions": true,
9-
"destructuring": true,
10-
"classes": true,
11-
"defaultParams": true,
12-
"blockBindings": true,
13-
"modules": true,
14-
"objectLiteralComputedProperties": true,
15-
"objectLiteralShorthandMethods": true,
16-
"objectLiteralShorthandProperties": true,
17-
"restParams": true,
18-
"spread": true,
19-
"templateStrings": true
20-
},
21-
2+
"extends": "standard",
223
"rules": {
23-
"accessor-pairs": 2,
24-
"array-bracket-spacing": 0,
25-
"block-scoped-var": 0,
26-
"brace-style": [2, "1tbs", { "allowSingleLine": true }],
27-
"camelcase": 0,
28-
"comma-dangle": [2, "never"],
29-
"comma-spacing": [2, { "before": false, "after": true }],
30-
"comma-style": [2, "last"],
31-
"complexity": 0,
32-
"computed-property-spacing": 0,
33-
"consistent-return": 0,
34-
"consistent-this": 0,
35-
"constructor-super": 2,
36-
"curly": [2, "multi-line"],
37-
"default-case": 0,
38-
"dot-location": [2, "property"],
39-
"dot-notation": 0,
40-
"eol-last": 2,
41-
"eqeqeq": [2, "allow-null"],
42-
"func-names": 0,
43-
"func-style": 0,
44-
"generator-star-spacing": [2, { "before": true, "after": true }],
45-
"guard-for-in": 0,
46-
"handle-callback-err": [2, "^(err|error)$" ],
47-
"indent": [2, 2, { "SwitchCase": 1 }],
48-
"key-spacing": [2, { "beforeColon": false, "afterColon": true }],
49-
"linebreak-style": 0,
50-
"lines-around-comment": 0,
51-
"max-nested-callbacks": 0,
52-
"new-cap": [2, { "newIsCap": true, "capIsNew": false }],
53-
"new-parens": 2,
54-
"newline-after-var": 0,
55-
"no-alert": 0,
56-
"no-array-constructor": 2,
57-
"no-caller": 2,
58-
"no-catch-shadow": 0,
59-
"no-cond-assign": 2,
60-
"no-console": 0,
61-
"no-constant-condition": 0,
62-
"no-continue": 0,
63-
"no-control-regex": 2,
64-
"no-debugger": 2,
65-
"no-delete-var": 2,
66-
"no-div-regex": 0,
67-
"no-dupe-args": 2,
68-
"no-dupe-keys": 2,
69-
"no-duplicate-case": 2,
70-
"no-else-return": 0,
71-
"no-empty": 0,
72-
"no-empty-character-class": 2,
73-
"no-empty-label": 2,
74-
"no-eq-null": 0,
75-
"no-eval": 2,
76-
"no-ex-assign": 2,
77-
"no-extend-native": 2,
78-
"no-extra-bind": 2,
79-
"no-extra-boolean-cast": 2,
80-
"no-extra-parens": 0,
81-
"no-extra-semi": 0,
82-
"no-fallthrough": 2,
83-
"no-floating-decimal": 2,
84-
"no-func-assign": 2,
85-
"no-implied-eval": 2,
86-
"no-inline-comments": 0,
87-
"no-inner-declarations": [2, "functions"],
88-
"no-invalid-regexp": 2,
89-
"no-irregular-whitespace": 2,
90-
"no-iterator": 2,
91-
"no-label-var": 2,
92-
"no-labels": 2,
93-
"no-lone-blocks": 2,
94-
"no-lonely-if": 0,
95-
"no-loop-func": 0,
96-
"no-mixed-requires": 0,
97-
"no-mixed-spaces-and-tabs": 2,
98-
"no-multi-spaces": 2,
99-
"no-multi-str": 2,
100-
"no-multiple-empty-lines": [2, { "max": 1 }],
101-
"no-native-reassign": 2,
102-
"no-negated-in-lhs": 2,
103-
"no-nested-ternary": 0,
104-
"no-new": 0,
105-
"no-new-func": 0,
106-
"no-new-object": 2,
107-
"no-new-require": 2,
108-
"no-new-wrappers": 2,
109-
"no-obj-calls": 2,
110-
"no-octal": 2,
111-
"no-octal-escape": 2,
112-
"no-param-reassign": 0,
113-
"no-path-concat": 0,
114-
"no-process-env": 0,
115-
"no-process-exit": 0,
116-
"no-proto": 0,
117-
"no-redeclare": 2,
118-
"no-regex-spaces": 2,
119-
"no-restricted-modules": 0,
120-
"no-return-assign": 2,
121-
"no-script-url": 0,
122-
"no-self-compare": 2,
123-
"no-sequences": 2,
124-
"no-shadow": 0,
125-
"no-shadow-restricted-names": 2,
126-
"no-spaced-func": 2,
127-
"no-sparse-arrays": 2,
128-
"no-sync": 0,
129-
"no-ternary": 0,
130-
"no-this-before-super": 2,
131-
"no-throw-literal": 2,
132-
"no-trailing-spaces": 2,
133-
"no-undef": 2,
134-
"no-undef-init": 2,
135-
"no-undefined": 0,
136-
"no-underscore-dangle": 0,
137-
"no-unexpected-multiline": 2,
138-
"no-unneeded-ternary": 2,
139-
"no-unreachable": 2,
140-
"no-unused-expressions": 0,
141-
"no-unused-vars": [2, { "vars": "all", "args": "none" }],
142-
"no-use-before-define": 0,
143-
"no-var": 0,
144-
"no-void": 0,
145-
"no-warning-comments": 0,
146-
"no-with": 2,
147-
"object-curly-spacing": 0,
148-
"object-shorthand": 0,
149-
"one-var": [2, { "initialized": "never" }],
150-
"operator-assignment": 0,
151-
"operator-linebreak": [2, "after", { "overrides": { "?": "before", ":": "before" } }],
152-
"padded-blocks": 0,
153-
"prefer-const": 0,
154-
"quote-props": 0,
155-
"quotes": [2, "single", "avoid-escape"],
156-
"radix": 2,
157-
"semi": [2, "never"],
158-
"semi-spacing": 0,
159-
"sort-vars": 0,
160-
"space-after-keywords": [2, "always"],
161-
"space-before-blocks": [2, "always"],
162-
"space-before-function-paren": [2, "always"],
163-
"space-in-parens": [2, "never"],
164-
"space-infix-ops": 2,
165-
"space-return-throw-case": 2,
166-
"space-unary-ops": [2, { "words": true, "nonwords": false }],
167-
"spaced-comment": [2, "always", { "markers": ["global", "globals", "eslint", "eslint-disable", "*package", "!"] }],
168-
"strict": 0,
169-
"use-isnan": 2,
170-
"valid-jsdoc": 0,
171-
"valid-typeof": 2,
172-
"vars-on-top": 0,
173-
"wrap-iife": [2, "any"],
174-
"wrap-regex": 0,
175-
"yoda": [2, "never"]
4+
"arrow-parens": [2, "as-needed"]
1765
}
1776
}

β€Žpackage.json

+7-3
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
},
3030
"homepage": "https://github.com/vuejs/vuex#readme",
3131
"devDependencies": {
32+
"babel-cli": "^6.6.0",
3233
"babel-core": "^6.2.1",
3334
"babel-loader": "^6.2.0",
3435
"babel-plugin-add-module-exports": "^0.1.1",
@@ -38,15 +39,18 @@
3839
"babel-preset-stage-2": "^6.1.18",
3940
"babel-runtime": "^5.8.0",
4041
"chai": "^3.4.1",
41-
"css-loader": "^0.21.0",
42-
"eslint": "^1.10.2",
42+
"css-loader": "^0.23.1",
43+
"eslint": "^2.2.0",
44+
"eslint-config-standard": "^5.1.0",
45+
"eslint-plugin-promise": "^1.0.8",
46+
"eslint-plugin-standard": "^1.3.2",
4347
"mocha": "^2.3.4",
4448
"style-loader": "^0.13.0",
4549
"todomvc-app-css": "^2.0.3",
4650
"vue": "^1.0.8",
4751
"vue-hot-reload-api": "^1.2.1",
4852
"vue-html-loader": "^1.0.0",
49-
"vue-loader": "^7.2.0",
53+
"vue-loader": "^8.2.0",
5054
"webpack": "^1.12.8",
5155
"webpack-dev-server": "^1.12.1"
5256
}

β€Žsrc/index.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export class Store {
9494
}
9595
})
9696
} else {
97-
console.warn(`[vuex] Unknown mutation: ${ type }`)
97+
console.warn(`[vuex] Unknown mutation: ${type}`)
9898
}
9999
}
100100

@@ -185,13 +185,15 @@ export class Store {
185185
const unwatch = this._vm.$watch('__vuex__', a => a)
186186
const Watcher = this._vm._watchers[0].constructor
187187
unwatch()
188+
/* eslint-disable no-new */
188189
new Watcher(this._vm, '$data', () => {
189190
if (!this._dispatching) {
190191
throw new Error(
191192
'[vuex] Do not mutate vuex store state outside mutation handlers.'
192193
)
193194
}
194195
}, { deep: true, sync: true })
196+
/* eslint-enable no-new */
195197
}
196198

197199
/**

β€Žsrc/middlewares/logger.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ export default function createLogger ({
2626
console.log(message)
2727
}
2828

29-
console.log(`%c prev state`, `color: #9E9E9E; font-weight: bold`, prevState)
30-
console.log(`%c mutation`, `color: #03A9F4; font-weight: bold`, formattedMutation)
31-
console.log(`%c next state`, `color: #4CAF50; font-weight: bold`, nextState)
29+
console.log('%c prev state', 'color: #9E9E9E; font-weight: bold', prevState)
30+
console.log('%c mutation', 'color: #03A9F4; font-weight: bold', formattedMutation)
31+
console.log('%c next state', 'color: #4CAF50; font-weight: bold', nextState)
3232

3333
try {
3434
console.groupEnd()
3535
} catch (e) {
36-
console.log(`β€”β€” log end β€”β€”`)
36+
console.log('β€”β€” log end β€”β€”')
3737
}
3838
}
3939
}
@@ -44,5 +44,5 @@ function repeat (str, times) {
4444
}
4545

4646
function pad (num, maxLength) {
47-
return repeat(`0`, maxLength - num.toString().length) + num
47+
return repeat('0', maxLength - num.toString().length) + num
4848
}

0 commit comments

Comments
Β (0)