Skip to content

Commit b51b9ea

Browse files
committed
bump eslint config
1 parent 3fef65c commit b51b9ea

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@
6363
"de-indent": "^1.0.2",
6464
"es6-promise": "^3.2.1",
6565
"eslint": "^3.4.0",
66-
"eslint-config-vue": "^1.1.0",
66+
"eslint-config-vue": "^2.0.0",
6767
"eslint-loader": "^1.3.0",
6868
"eslint-plugin-flowtype": "^2.16.0",
69-
"eslint-plugin-html": "^1.5.2",
69+
"eslint-plugin-vue": "^1.0.0",
7070
"flow-bin": "^0.32.0",
7171
"he": "^1.1.0",
7272
"http-server": "^0.9.0",

src/compiler/codegen/events.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* @flow */
22

3-
const simplePathRE = /^\s*[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['.*?'\]|\[".*?"\]|\[\d+\]|\[[A-Za-z_$][\w$]*\])*\s*$/
3+
const simplePathRE = /^\s*[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['.*?']|\[".*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*\s*$/
44

55
// keyCode aliases
66
const keyCodes = {

src/compiler/parser/html-parser.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { makeMap, no } from 'shared/util'
1313
import { isNonPhrasingTag, canBeLeftOpenTag } from 'web/util/index'
1414

1515
// Regular Expressions for parsing tags and attributes
16-
const singleAttrIdentifier = /([^\s"'<>\/=]+)/
16+
const singleAttrIdentifier = /([^\s"'<>/=]+)/
1717
const singleAttrAssign = /(?:=)/
1818
const singleAttrValues = [
1919
// attr value double quotes
@@ -158,7 +158,7 @@ export function parseHTML (html, options) {
158158
if (stackedTag !== 'script' && stackedTag !== 'style' && stackedTag !== 'noscript') {
159159
text = text
160160
.replace(/<!--([\s\S]*?)-->/g, '$1')
161-
.replace(/<!\[CDATA\[([\s\S]*?)\]\]>/g, '$1')
161+
.replace(/<!\[CDATA\[([\s\S]*?)]]>/g, '$1')
162162
}
163163
if (options.chars) {
164164
options.chars(text)

src/compiler/parser/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export const forIteratorRE = /\(([^,]*),([^,]*)(?:,([^,]*))?\)/
2121
const bindRE = /^:|^v-bind:/
2222
const onRE = /^@|^v-on:/
2323
const argRE = /:(.*)$/
24-
const modifierRE = /\.[^\.]+/g
24+
const modifierRE = /\.[^.]+/g
2525
const specialNewlineRE = /\u2028|\u2029/g
2626

2727
const decodeHTMLCached = cached(decode)

src/compiler/parser/text-parser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { cached } from 'shared/util'
44
import { parseFilters } from './filter-parser'
55

66
const defaultTagRE = /\{\{((?:.|\n)+?)\}\}/g
7-
const regexEscapeRE = /[-.*+?^${}()|[\]\/\\]/g
7+
const regexEscapeRE = /[-.*+?^${}()|[\]/\\]/g
88

99
const buildRegex = cached(delimiters => {
1010
const open = delimiters[0].replace(regexEscapeRE, '\\$&')

src/core/util/lang.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export function def (obj: Object, key: string, val: any, enumerable?: boolean) {
2323
/**
2424
* Parse simple path.
2525
*/
26-
const bailRE = /[^\w\.\$]/
26+
const bailRE = /[^\w.$]/
2727
export function parsePath (path: string): any {
2828
if (bailRE.test(path)) {
2929
return

src/platforms/web/runtime/directives/model.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import { looseEqual, looseIndexOf } from 'shared/util'
77
import { warn, isAndroid, isIE9, isIE, isEdge } from 'core/util/index'
88

9-
const modelableTagRE = /^input|select|textarea|vue-component-[0-9]+(-[0-9a-zA-Z_\-]*)?$/
9+
const modelableTagRE = /^input|select|textarea|vue-component-[0-9]+(-[0-9a-zA-Z_-]*)?$/
1010

1111
/* istanbul ignore if */
1212
if (isIE9) {

0 commit comments

Comments
 (0)