ESLint: Added no-tabs rule (#2863)
This commit is contained in:
parent
fbceba1f1a
commit
b971ea2499
|
@ -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',
|
||||
|
|
|
@ -22,7 +22,7 @@ Prism.languages.bro = {
|
|||
}
|
||||
},
|
||||
|
||||
'variable': {
|
||||
'variable': {
|
||||
pattern: /(?:global|local) \w+/i,
|
||||
inside: {
|
||||
keyword: /(?:global|local)/
|
||||
|
|
|
@ -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*[:@])/,
|
||||
|
|
Loading…
Reference in New Issue