2 Star 1 Fork 0

xuejianxinokok/marktext_orgin

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.eslintrc.js 1.48 KB
一键复制 编辑 原始数据 按行查看 历史
Felix Häusler 提交于 2022-03-20 12:43 . Upgrade Electron to v17 (#3138)
module.exports = {
root: true,
parserOptions: {
parser: '@babel/eslint-parser',
ecmaVersion: 11,
ecmaFeatures: {
impliedStrict: true
},
sourceType: 'module'
},
env: {
browser: true,
es6: true,
node: true
},
extends: [
'standard',
'eslint:recommended',
'plugin:vue/base',
'plugin:import/errors',
'plugin:import/warnings'
],
globals: {
__static: true
},
plugins: ['html', 'vue'],
rules: {
// Two spaces but disallow semicolons
indent: ['error', 2, { 'SwitchCase': 1, 'ignoreComments': true }],
semi: [2, 'never'],
'no-return-await': 'error',
'no-return-assign': 'error',
'no-new': 'error',
// allow paren-less arrow functions
'arrow-parens': 'off',
// allow console
'no-console': 'off',
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'require-atomic-updates': 'off',
// TODO: fix these errors someday
'prefer-const': 'off',
'no-mixed-operators': 'off',
'no-prototype-builtins': 'off'
},
settings: {
'import/resolver': {
alias: {
map: [
['common', './src/common'],
// Normally only valid for renderer/
['@', './src/renderer'],
['muya', './src/muya']
],
extensions: ['.js', '.vue', '.json', '.css', '.node']
}
}
},
ignorePatterns: [
'node_modules',
'src/muya/dist/**/*',
'src/muya/webpack.config.js'
]
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/xuejianxinokok/marktext_orgin.git
git@gitee.com:xuejianxinokok/marktext_orgin.git
xuejianxinokok
marktext_orgin
marktext_orgin
develop

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385