mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 11:26:15 +01:00
ref
This commit is contained in:
6
libraries/codemirror/addon/lint/eslint.js
vendored
6
libraries/codemirror/addon/lint/eslint.js
vendored
@@ -46,10 +46,11 @@
|
||||
const errors = new eslint().verify(text, {
|
||||
root: true,
|
||||
parserOptions: {
|
||||
ecmaVersion: 2017
|
||||
ecmaVersion: 2019
|
||||
},
|
||||
extends: ['eslint:recommended', 'airbnb-base'],
|
||||
env: {
|
||||
'browser': true,
|
||||
'node': true
|
||||
},
|
||||
rules: {
|
||||
@@ -62,6 +63,9 @@
|
||||
'no-unused-vars': ['warn', { vars: 'local', args: 'after-used' }],
|
||||
'no-nested-ternary': 'off',
|
||||
'no-underscore-dangle': ['error', {'allow': ['_super', '_lookupFactory']}]
|
||||
},
|
||||
globals: {
|
||||
"api": "readonly"
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user