ESLint: Added no-tabs rule (#2863)

This commit is contained in:
Michael Schmidt 2021-05-01 14:37:02 +02:00 committed by GitHub
parent fbceba1f1a
commit b971ea2499
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View File

@ -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',

View File

@ -22,7 +22,7 @@ Prism.languages.bro = {
}
},
'variable': {
'variable': {
pattern: /(?:global|local) \w+/i,
inside: {
keyword: /(?:global|local)/