Repository: vuejs/vue
Pull request: Correct the eslint script statement in package.json and correct the f…

…ormat.

<!--
Please make sure to read the Pull Request Guidelines:
https://github.com/vuejs/vue/blob/dev/.github/CONTRIBUTING.md#pull-request-guidelines
-->

<!-- PULL REQUEST TEMPLATE -->
<!-- (Update "[ ]" to "[x]" to check a box) -->

**What kind of change does this PR introduce?** (check at least one)

- [ ] Bugfix
- [ ] Feature
- [x] Code style update
- [ ] Refactor
- [x] Build-related changes
- [ ] Other, please describe:

**Does this PR introduce a breaking change?** (check one)

- [ ] Yes
- [x] No

If yes, please describe the impact and migration path for existing applications:

**The PR fulfills these requirements:**

- [ ] It's submitted to the `dev` branch for v2.x (or to a previous version branch), _not_ the `master` branch
- [ ] When resolving a specific issue, it's referenced in the PR's title (e.g. `fix #xxx[,#xxx]`, where "xxx" is the issue number)
- [ ] All tests are passing: https://github.com/vuejs/vue/blob/dev/.github/CONTRIBUTING.md#development-setup
- [ ] New/updated tests are included

If adding a **new feature**, the PR's description includes:
- [ ] A convincing reason for adding this feature (to avoid wasting your time, it's best to open a suggestion issue first and wait for approval before working on it)

**Other information:**
Only solve eslint error

Changed files:
filename: package.json
patch: @@ -33,7 +33,7 @@
     "test:ssr": "npm run build:ssr && jasmine JASMINE_CONFIG_PATH=test/ssr/jasmine.json",
     "test:sauce": "npm run sauce -- 0 && npm run sauce -- 1 && npm run sauce -- 2",
     "test:types": "tsc -p ./types/test/tsconfig.json",
-    "lint": "eslint src build test",
+    "lint": "eslint src scripts test",
     "flow": "flow check",
     "sauce": "karma start test/unit/karma.sauce.config.js",
     "bench:ssr": "npm run build:ssr && node benchmarks/ssr/renderToString.js && node benchmarks/ssr/renderToStream.js",

filename: test/unit/modules/compiler/compiler-options.spec.js
patch: @@ -9,58 +9,58 @@ describe('compile options', () => {
         <input type="text" v-model="msg" required max="8" v-validate:field1.group1.group2>
       </div>
     `, {
-        directives: {
-          validate (el, dir) {
-            if (dir.name === 'validate' && dir.arg) {
-              el.validate = {
-                field: dir.arg,
-                groups: dir.modifiers ? Object.keys(dir.modifiers) : []
-              }
+      directives: {
+        validate (el, dir) {
+          if (dir.name === 'validate' && dir.arg) {
+            el.validate = {
+              field: dir.arg,
+              groups: dir.modifiers ? Object.keys(dir.modifiers) : []
             }
           }
-        },
-        modules: [{
-          transformNode (el) {
-            el.validators = el.validators || []
-            const validators = ['required', 'min', 'max', 'pattern', 'maxlength', 'minlength']
-            validators.forEach(name => {
-              const rule = getAndRemoveAttr(el, name)
-              if (rule !== undefined) {
-                el.validators.push({ name, rule })
-              }
-            })
-          },
-          genData (el) {
-            let data = ''
-            if (el.validate) {
-              data += `validate:${JSON.stringify(el.validate)},`
-            }
-            if (el.validators) {
-              data += `validators:${JSON.stringify(el.validators)},`
-            }
-            return data
-          },
-          transformCode (el, code) {
-          // check
-            if (!el.validate || !el.validators) {
-              return code
+        }
+      },
+      modules: [{
+        transformNode (el) {
+          el.validators = el.validators || []
+          const validators = ['required', 'min', 'max', 'pattern', 'maxlength', 'minlength']
+          validators.forEach(name => {
+            const rule = getAndRemoveAttr(el, name)
+            if (rule !== undefined) {
+              el.validators.push({ name, rule })
             }
-            // setup validation result props
-            const result = { dirty: false } // define something other prop
-            el.validators.forEach(validator => {
-              result[validator.name] = null
-            })
-            // generate code
-            return `_c('validate',{props:{
-            field:${JSON.stringify(el.validate.field)},
-            groups:${JSON.stringify(el.validate.groups)},
-            validators:${JSON.stringify(el.validators)},
-            result:${JSON.stringify(result)},
-            child:${code}}
-          })`
+          })
+        },
+        genData (el) {
+          let data = ''
+          if (el.validate) {
+            data += `validate:${JSON.stringify(el.validate)},`
           }
-        }]
-      })
+          if (el.validators) {
+            data += `validators:${JSON.stringify(el.validators)},`
+          }
+          return data
+        },
+        transformCode (el, code) {
+        // check
+          if (!el.validate || !el.validators) {
+            return code
+          }
+          // setup validation result props
+          const result = { dirty: false } // define something other prop
+          el.validators.forEach(validator => {
+            result[validator.name] = null
+          })
+          // generate code
+          return `_c('validate',{props:{
+          field:${JSON.stringify(el.validate.field)},
+          groups:${JSON.stringify(el.validate.groups)},
+          validators:${JSON.stringify(el.validators)},
+          result:${JSON.stringify(result)},
+          child:${code}}
+        })`
+        }
+      }]
+    })
     expect(render).not.toBeUndefined()
     expect(staticRenderFns).toEqual([])
     expect(errors).toEqual([])