加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.eslintrc.js 1.78 KB
一键复制 编辑 原始数据 按行查看 历史
xdan 提交于 2020-06-26 00:52 . Replace tslint to eslint
/*!
* Jodit Editor (https://xdsoft.net/jodit/)
* Released under MIT see LICENSE.txt in the project root for license information.
* Copyright (c) 2013-2020 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
*/
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'header'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'prettier/@typescript-eslint'
],
env: {
browser: true,
node: true
},
rules: {
"header/header": [2, "src/header.js"],
'no-mixed-spaces-and-tabs': 'off',
'no-empty': 'off',
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-this-alias': 'off',
'@typescript-eslint/no-inferrable-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'no-fallthrough': 'off'
},
globals: {
"createPoint": true,
"afterEach": true,
"SynchronousPromise": true,
"mocha": true,
"chai": true,
"Promise": true,
"defaultPermissions": true,
"getOpenedPopup": true,
"getOpenedDialog": true,
"getBox": true,
"offset": true,
"i18nkeys": true,
"appendTestDiv": true,
"getButton": true,
"clickTrigger": true,
"clickButton": true,
"sortAttributes": true,
"onLoadImage": true,
"sortStyles": true,
"simulateEvent": true,
"simulatePaste": true,
"beforeEach": true,
"describe": true,
"it": true,
"getJodit": true,
"Jodit": true,
"expect": true,
"unmockPromise": true,
"appendTestArea": true,
"mockPromise": true,
"fillBoxBr": true,
"selectCells": true,
"before": true,
"after": true,
"FileImage": true,
"FileXLS": true,
}
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化