mirror of
https://github.com/marktext/marktext.git
synced 2025-05-02 04:19:46 +08:00

* Fix tests and improve CI * Add xvfb to Linux - still problems with Mocha e2e tests * Disable Webpack Bundle Analyzer for testing * Use preinstalled yarn application on AppVeyor * Fix build failure with latest vue version * Remove "markdown-toc" * Fix application title unit test * Hide electron window during unit tests * Add basic muya unit tests * Dirty markdown-toc replacement * Update dependencies * Update eslint packages and configuration
38 lines
695 B
JavaScript
38 lines
695 B
JavaScript
module.exports = {
|
|
root: true,
|
|
parser: 'babel-eslint',
|
|
parserOptions: {
|
|
ecmaFeatures: {
|
|
impliedStrict: true
|
|
},
|
|
sourceType: 'module'
|
|
},
|
|
env: {
|
|
browser: true,
|
|
es6: true,
|
|
node: true
|
|
},
|
|
extends: [
|
|
'standard',
|
|
'eslint:recommended',
|
|
'plugin:vue/base' // 'plugin:vue/essential'
|
|
],
|
|
globals: {
|
|
__static: true
|
|
},
|
|
plugins: [
|
|
'html',
|
|
'vue'
|
|
],
|
|
rules: {
|
|
// allow paren-less arrow functions
|
|
'arrow-parens': 0,
|
|
// allow async-await
|
|
'generator-star-spacing': 0,
|
|
// allow console
|
|
'no-console': 0,
|
|
// allow debugger during development
|
|
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0
|
|
}
|
|
}
|