Skip to content

Commit db856a0

Browse files
committed
update eslint config
1 parent c32a92d commit db856a0

File tree

4 files changed

+14
-107
lines changed

4 files changed

+14
-107
lines changed

.eslintrc

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
{
22
"root": true,
3-
"extends": "vue",
43
"plugins": [
5-
"html"
4+
"vue-libs"
5+
],
6+
"extends": [
7+
"plugin:vue-libs/recommended"
68
],
79
"globals": {
810
"bridge": true,
911
"chrome": true,
1012
"localStorage": true
11-
},
12-
"rules": {
13-
"object-curly-spacing": 0
1413
}
1514
}

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@
3333
"cross-env": "^3.1.3",
3434
"css-loader": "^0.26.1",
3535
"eslint": "^3.9.1",
36-
"eslint-config-vue": "^2.0.0",
37-
"eslint-plugin-vue": "^1.0.0",
36+
"eslint-plugin-vue-libs": "^1.0.0",
3837
"file-loader": "^0.9.0",
3938
"friendly-errors-webpack-plugin": "^1.1.2",
4039
"nightwatch": "^0.9.4",

src/devtools/views/components/module.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ const mutations = {
3131
}
3232

3333
const actions = {
34-
toggleInstance ({commit, dispatch}, {instance, expanded, recursive}) {
35-
commit('TOGGLE_INSTANCE', {id: instance.id, expanded})
34+
toggleInstance ({ commit, dispatch }, { instance, expanded, recursive }) {
35+
commit('TOGGLE_INSTANCE', { id: instance.id, expanded })
3636

3737
if (recursive) {
3838
instance.children.forEach((child) => {

yarn.lock

Lines changed: 7 additions & 98 deletions
Original file line numberDiff line numberDiff line change
@@ -155,13 +155,6 @@ array-unique@^0.2.1:
155155
version "0.2.1"
156156
resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.2.1.tgz#a1d97ccafcbc2625cc70fadceb36a50c58b01a53"
157157

158-
array.prototype.find@^2.0.1:
159-
version "2.0.4"
160-
resolved "https://registry.yarnpkg.com/array.prototype.find/-/array.prototype.find-2.0.4.tgz#556a5c5362c08648323ddaeb9de9d14bc1864c90"
161-
dependencies:
162-
define-properties "^1.1.2"
163-
es-abstract "^1.7.0"
164-
165158
arrify@^1.0.0:
166159
version "1.0.1"
167160
resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d"
@@ -945,13 +938,6 @@ deep-is@~0.1.3:
945938
version "0.1.3"
946939
resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.3.tgz#b369d6fb5dbc13eecf524f91b070feedc357cf34"
947940

948-
define-properties@^1.1.2:
949-
version "1.1.2"
950-
resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.1.2.tgz#83a73f2fea569898fb737193c8f873caf6d45c94"
951-
dependencies:
952-
foreach "^2.0.5"
953-
object-keys "^1.0.8"
954-
955941
defined@^1.0.0:
956942
version "1.0.0"
957943
resolved "https://registry.yarnpkg.com/defined/-/defined-1.0.0.tgz#c98d9bcef75674188e110969151199e39b1fa693"
@@ -1037,13 +1023,6 @@ diffie-hellman@^5.0.0:
10371023
miller-rabin "^4.0.0"
10381024
randombytes "^2.0.0"
10391025

1040-
doctrine@^1.2.2:
1041-
version "1.5.0"
1042-
resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-1.5.0.tgz#379dce730f6166f76cefa4e6707a159b02c5a6fa"
1043-
dependencies:
1044-
esutils "^2.0.2"
1045-
isarray "^1.0.0"
1046-
10471026
doctrine@^2.0.0:
10481027
version "2.0.0"
10491028
resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-2.0.0.tgz#c73d8d2909d22291e1a007a395804da8b665fe63"
@@ -1161,23 +1140,6 @@ error-stack-parser@^2.0.0:
11611140
dependencies:
11621141
stackframe "^1.0.3"
11631142

1164-
es-abstract@^1.7.0:
1165-
version "1.7.0"
1166-
resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.7.0.tgz#dfade774e01bfcd97f96180298c449c8623fb94c"
1167-
dependencies:
1168-
es-to-primitive "^1.1.1"
1169-
function-bind "^1.1.0"
1170-
is-callable "^1.1.3"
1171-
is-regex "^1.0.3"
1172-
1173-
es-to-primitive@^1.1.1:
1174-
version "1.1.1"
1175-
resolved "https://registry.yarnpkg.com/es-to-primitive/-/es-to-primitive-1.1.1.tgz#45355248a88979034b6792e19bb81f2b7975dd0d"
1176-
dependencies:
1177-
is-callable "^1.1.1"
1178-
is-date-object "^1.0.1"
1179-
is-symbol "^1.0.1"
1180-
11811143
es5-ext@^0.10.14, es5-ext@^0.10.9, es5-ext@~0.10.14:
11821144
version "0.10.21"
11831145
resolved "https://registry.yarnpkg.com/es5-ext/-/es5-ext-0.10.21.tgz#19a725f9e51d0300bbc1e8e821109fd9daf55925"
@@ -1258,32 +1220,17 @@ escope@^3.6.0:
12581220
esrecurse "^4.1.0"
12591221
estraverse "^4.1.1"
12601222

1261-
eslint-config-vue@^2.0.0:
1262-
version "2.0.2"
1263-
resolved "https://registry.yarnpkg.com/eslint-config-vue/-/eslint-config-vue-2.0.2.tgz#a3ab1004899e49327a94c63e24d47a396b2f4848"
1264-
1265-
eslint-plugin-html@^1.5.2:
1266-
version "1.7.0"
1267-
resolved "https://registry.yarnpkg.com/eslint-plugin-html/-/eslint-plugin-html-1.7.0.tgz#2a5b03884d8d56adf9ad9864e9c036480fb629c9"
1223+
eslint-plugin-html@^2.0.0:
1224+
version "2.0.3"
1225+
resolved "https://registry.yarnpkg.com/eslint-plugin-html/-/eslint-plugin-html-2.0.3.tgz#7c89883ab0c85fa5d28b666a14a4e906aa90b897"
12681226
dependencies:
12691227
htmlparser2 "^3.8.2"
12701228

1271-
eslint-plugin-react@^6.2.0:
1272-
version "6.10.3"
1273-
resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-6.10.3.tgz#c5435beb06774e12c7db2f6abaddcbf900cd3f78"
1274-
dependencies:
1275-
array.prototype.find "^2.0.1"
1276-
doctrine "^1.2.2"
1277-
has "^1.0.1"
1278-
jsx-ast-utils "^1.3.4"
1279-
object.assign "^4.0.4"
1280-
1281-
eslint-plugin-vue@^1.0.0:
1229+
eslint-plugin-vue-libs@^1.0.0:
12821230
version "1.0.0"
1283-
resolved "https://registry.yarnpkg.com/eslint-plugin-vue/-/eslint-plugin-vue-1.0.0.tgz#01b133cef42c40d807f535011715d3fd18795337"
1231+
resolved "https://registry.yarnpkg.com/eslint-plugin-vue-libs/-/eslint-plugin-vue-libs-1.0.0.tgz#05e6f8ba777b4a9093879ef68c57749b6d2c21b6"
12841232
dependencies:
1285-
eslint-plugin-html "^1.5.2"
1286-
eslint-plugin-react "^6.2.0"
1233+
eslint-plugin-html "^2.0.0"
12871234

12881235
eslint@^3.9.1:
12891236
version "3.19.0"
@@ -1567,10 +1514,6 @@ for-own@^0.1.4:
15671514
dependencies:
15681515
for-in "^1.0.1"
15691516

1570-
foreach@^2.0.5:
1571-
version "2.0.5"
1572-
resolved "https://registry.yarnpkg.com/foreach/-/foreach-2.0.5.tgz#0bee005018aeb260d0a3af3ae658dd0136ec1b99"
1573-
15741517
forever-agent@~0.6.1:
15751518
version "0.6.1"
15761519
resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91"
@@ -1634,7 +1577,7 @@ ftp@~0.3.5:
16341577
readable-stream "1.1.x"
16351578
xregexp "2.0.0"
16361579

1637-
function-bind@^1.0.2, function-bind@^1.1.0:
1580+
function-bind@^1.0.2:
16381581
version "1.1.0"
16391582
resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.0.tgz#16176714c801798e4e8f2cf7f7529467bb4a5771"
16401583

@@ -2024,14 +1967,6 @@ is-builtin-module@^1.0.0:
20241967
dependencies:
20251968
builtin-modules "^1.0.0"
20261969

2027-
is-callable@^1.1.1, is-callable@^1.1.3:
2028-
version "1.1.3"
2029-
resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.1.3.tgz#86eb75392805ddc33af71c92a0eedf74ee7604b2"
2030-
2031-
is-date-object@^1.0.1:
2032-
version "1.0.1"
2033-
resolved "https://registry.yarnpkg.com/is-date-object/-/is-date-object-1.0.1.tgz#9aa20eb6aeebbff77fbd33e74ca01b33581d3a16"
2034-
20351970
is-directory@^0.3.1:
20361971
version "0.3.1"
20371972
resolved "https://registry.yarnpkg.com/is-directory/-/is-directory-0.3.1.tgz#61339b6f2475fc772fd9c9d83f5c8575dc154ae1"
@@ -2127,12 +2062,6 @@ is-property@^1.0.0:
21272062
version "1.0.2"
21282063
resolved "https://registry.yarnpkg.com/is-property/-/is-property-1.0.2.tgz#57fe1c4e48474edd65b09911f26b1cd4095dda84"
21292064

2130-
is-regex@^1.0.3:
2131-
version "1.0.4"
2132-
resolved "https://registry.yarnpkg.com/is-regex/-/is-regex-1.0.4.tgz#5517489b547091b0930e095654ced25ee97e9491"
2133-
dependencies:
2134-
has "^1.0.1"
2135-
21362065
is-resolvable@^1.0.0:
21372066
version "1.0.0"
21382067
resolved "https://registry.yarnpkg.com/is-resolvable/-/is-resolvable-1.0.0.tgz#8df57c61ea2e3c501408d100fb013cf8d6e0cc62"
@@ -2145,10 +2074,6 @@ is-svg@^2.0.0:
21452074
dependencies:
21462075
html-comment-regex "^1.1.0"
21472076

2148-
is-symbol@^1.0.1:
2149-
version "1.0.1"
2150-
resolved "https://registry.yarnpkg.com/is-symbol/-/is-symbol-1.0.1.tgz#3cc59f00025194b6ab2e38dbae6689256b660572"
2151-
21522077
is-typedarray@~1.0.0:
21532078
version "1.0.0"
21542079
resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a"
@@ -2271,10 +2196,6 @@ jsprim@^1.2.2:
22712196
json-schema "0.2.3"
22722197
verror "1.3.6"
22732198

2274-
jsx-ast-utils@^1.3.4:
2275-
version "1.4.1"
2276-
resolved "https://registry.yarnpkg.com/jsx-ast-utils/-/jsx-ast-utils-1.4.1.tgz#3867213e8dd79bf1e8f2300c0cfc1efb182c0df1"
2277-
22782199
kew@^0.7.0:
22792200
version "0.7.0"
22802201
resolved "https://registry.yarnpkg.com/kew/-/kew-0.7.0.tgz#79d93d2d33363d6fdd2970b335d9141ad591d79b"
@@ -2782,18 +2703,6 @@ object-assign@^4.0.1, object-assign@^4.1.0:
27822703
version "4.1.1"
27832704
resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863"
27842705

2785-
object-keys@^1.0.10, object-keys@^1.0.8:
2786-
version "1.0.11"
2787-
resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.0.11.tgz#c54601778ad560f1142ce0e01bcca8b56d13426d"
2788-
2789-
object.assign@^4.0.4:
2790-
version "4.0.4"
2791-
resolved "https://registry.yarnpkg.com/object.assign/-/object.assign-4.0.4.tgz#b1c9cc044ef1b9fe63606fc141abbb32e14730cc"
2792-
dependencies:
2793-
define-properties "^1.1.2"
2794-
function-bind "^1.1.0"
2795-
object-keys "^1.0.10"
2796-
27972706
object.omit@^2.0.0:
27982707
version "2.0.1"
27992708
resolved "https://registry.yarnpkg.com/object.omit/-/object.omit-2.0.1.tgz#1a9c744829f39dbb858c76ca3579ae2a54ebd1fa"

0 commit comments

Comments
 (0)