Fix: eslint-disable-line -> eslint-disable-next-line

This commit is contained in:
eight 2018-09-02 12:21:55 +08:00
parent 9cfc812fcc
commit 85bddff7a9
5 changed files with 10 additions and 5 deletions

View File

@ -1,6 +1,7 @@
'use strict'; 'use strict';
var editorWorker = (() => { // eslint-disable-line no-var // eslint-disable-next-line no-var
var editorWorker = (() => {
let worker; let worker;
return new Proxy({}, { return new Proxy({}, {
get: (target, prop) => get: (target, prop) =>

View File

@ -1,7 +1,8 @@
/* global linter editorWorker cacheFirstCall */ /* global linter editorWorker cacheFirstCall */
'use strict'; 'use strict';
var csslint = (() => { // eslint-disable-line // eslint-disable-next-line no-var
var csslint = (() => {
const DEFAULT = { const DEFAULT = {
// Default warnings // Default warnings
'display-property-grouping': 1, 'display-property-grouping': 1,

View File

@ -1,7 +1,8 @@
/* global linter editors clipString createLinterHelpDialog makeSectionVisible */ /* global linter editors clipString createLinterHelpDialog makeSectionVisible */
'use strict'; 'use strict';
var linterReport = (() => { // eslint-disable-line no-var // eslint-disable-next-line no-var
var linterReport = (() => {
const cms = new Map(); const cms = new Map();
const helpDialog = createLinterHelpDialog(getIssues); const helpDialog = createLinterHelpDialog(getIssues);

View File

@ -1,7 +1,8 @@
/* global linter editorWorker cacheFirstCall */ /* global linter editorWorker cacheFirstCall */
'use strict'; 'use strict';
var stylelint = (() => { // eslint-disable-line no-var // eslint-disable-next-line no-var
var stylelint = (() => {
const DEFAULT_SEVERITY = {severity: 'warning'}; const DEFAULT_SEVERITY = {severity: 'warning'};
const DEFAULT = { const DEFAULT = {
// 'sugarss' is a indent-based syntax like Sass or Stylus // 'sugarss' is a indent-based syntax like Sass or Stylus

View File

@ -1,6 +1,7 @@
'use strict'; 'use strict';
var linter = (() => { // eslint-disable-line no-var // eslint-disable-next-line no-var
var linter = (() => {
const changeCallbacks = []; const changeCallbacks = [];
const unhookCallbacks = []; const unhookCallbacks = [];
const linters = []; const linters = [];