mirror of
https://github.com/fluent/fluentd-ui.git
synced 2026-05-10 05:16:10 +02:00
Merge pull request #274 from fluent/fix-eslint-errors
Fix eslint errors
This commit is contained in:
commit
c5cc06486b
@ -14,7 +14,8 @@ module.exports = {
|
||||
"globals": {
|
||||
"$": true,
|
||||
"Rails": true,
|
||||
"Vue": true
|
||||
"Vue": true,
|
||||
"relativeUrlRoot": true
|
||||
},
|
||||
"rules": {
|
||||
"indent": [
|
||||
|
||||
@ -43,7 +43,7 @@ CodeMirror.defineMode("fluentd", function() {
|
||||
stream.eatWhile(/[^ \t#]/);
|
||||
state.context = "inner-definition-keyword-appeared";
|
||||
return "variable";
|
||||
case "inner-definition-keyword-appeared":
|
||||
case "inner-definition-keyword-appeared": {
|
||||
let eatBuiltin = function(stream, state) {
|
||||
stream.eatWhile(/[^#]/);
|
||||
if (stream.current().match(/\\$/)) {
|
||||
@ -55,6 +55,7 @@ CodeMirror.defineMode("fluentd", function() {
|
||||
eatBuiltin(stream, state);
|
||||
state.context = "inner-definition";
|
||||
return "builtin";
|
||||
}
|
||||
default:
|
||||
stream.eat(/[^<>#]+/);
|
||||
return "string";
|
||||
|
||||
@ -16,7 +16,7 @@ const GrepContainer = {
|
||||
return {
|
||||
grepType: "regexp",
|
||||
patterns: [true],
|
||||
}
|
||||
};
|
||||
},
|
||||
filters: {
|
||||
humanize: function(value) {
|
||||
|
||||
@ -14,7 +14,7 @@ const GrepPattern = {
|
||||
return {
|
||||
key: null,
|
||||
pattern: null,
|
||||
}
|
||||
};
|
||||
},
|
||||
|
||||
filters: {
|
||||
|
||||
@ -141,7 +141,7 @@ window.addEventListener("load", () => {
|
||||
if (_.isEmpty(data[label])) {
|
||||
this.$delete(this.sections, label);
|
||||
}
|
||||
})
|
||||
});
|
||||
if (_.isEmpty(data["ROOT"])) {
|
||||
this.$set(this.sections, "ROOT", []);
|
||||
}
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
/* global process:true */
|
||||
import Vue from "vue/dist/vue.esm";
|
||||
import Vuex from "vuex/dist/vuex.esm";
|
||||
import { createNamespaceHelpers } from "vuex/dist/vuex.esm";
|
||||
@ -5,7 +6,7 @@ import createLogger from "vuex/dist/logger";
|
||||
|
||||
Vue.use(Vuex);
|
||||
|
||||
const debug = process.env.NODE_ENV !== 'production';
|
||||
const debug = process.env.NODE_ENV !== "production";
|
||||
|
||||
import parserParams from "./modules/parser_params";
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user