ESLint: Added no-tabs rule (#2863)
diff --git a/.eslintrc.js b/.eslintrc.js
index ffa0b27..a9b1b0b 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -7,6 +7,7 @@ module.exports = {
// stylistic rules
'brace-style': ['warn', '1tbs', { allowSingleLine: true }],
+ 'no-tabs': ['warn', { allowIndentationTabs: true }],
'no-var': 'error',
'quotes': ['warn', 'single', { avoidEscape: true, allowTemplateLiterals: true }],
'semi': 'warn',
diff --git a/components/prism-bro.js b/components/prism-bro.js
index 8b6c119..f9779ae 100644
--- a/components/prism-bro.js
+++ b/components/prism-bro.js
@@ -22,7 +22,7 @@ Prism.languages.bro = {
}
},
- 'variable': {
+ 'variable': {
pattern: /(?:global|local) \w+/i,
inside: {
keyword: /(?:global|local)/
diff --git a/components/prism-dataweave.js b/components/prism-dataweave.js
index 0b03834..4c9d46e 100644
--- a/components/prism-dataweave.js
+++ b/components/prism-dataweave.js
@@ -1,5 +1,5 @@
(function (Prism) {
- Prism.languages.dataweave = {
+ Prism.languages.dataweave = {
'url': /\b[A-Za-z]+:\/\/[\w/:.?=&-]+|\burn:[\w:.?=&-]+/,
'property': {
pattern: /(?:\w+#)?(?:"(?:\\.|[^\\"\r\n])*"|\w+)(?=\s*[:@])/,