This repository has been archived by the owner on Mar 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/** | ||
* @fileoverview disallow `process.server/process.client` in `mounted/beforeMount` | ||
* @fileoverview disallow `process.server/process.client` in `Vue Lifecycle Hooks` | ||
* @author Xin Du <[email protected]> | ||
*/ | ||
'use strict' | ||
|
@@ -8,7 +8,7 @@ | |
// Requirements | ||
// ------------------------------------------------------------------------------ | ||
|
||
var rule = require('../no-env-in-mounted') | ||
var rule = require('../no-env-in-hooks') | ||
|
||
var RuleTester = require('eslint').RuleTester | ||
|
||
|
@@ -22,7 +22,7 @@ const parserOptions = { | |
// ------------------------------------------------------------------------------ | ||
|
||
var ruleTester = new RuleTester() | ||
ruleTester.run('no-env-in-mounted', rule, { | ||
ruleTester.run('no-env-in-hooks', rule, { | ||
|
||
valid: [ | ||
{ | ||
|
File renamed without changes.