1 Star 5 Fork 2

RHQYZ/skit-storage.js

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.eslintrc.js 1.68 KB
一键复制 编辑 原始数据 按行查看 历史
RHQYZ 提交于 2022-01-26 23:35 +08:00 . build: 使用 pnpm 替代 npm
module.exports = {
env: {
es6: true,
browser: true,
commonjs: true,
amd: true,
webpack: true
},
extends: [
'eslint:recommended',
'plugin:prettier/recommended',
'plugin:mocha/recommended',
'plugin:@typescript-eslint/recommended'
],
globals: {
'wx': true, // 微信小程序宿主环境
'qq': true, // QQ 小程序宿主环境
'my': true, // 支付宝小程序宿主环境
'swan': true, // 百度小程序宿主环境
'tt': true, // 头条小程序宿主环境
'uni': true // uni-app
},
overrides: [
{
files: ['**/__tests__/*.{j,t}s?(x)', '**/tests/unit/**/*.spec.{j,t}s?(x)'],
env: {
mocha: true
}
}
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2020,
parser: '@typescript-eslint/parser',
sourceType: 'module'
},
plugins: ['@typescript-eslint', 'prettier', 'mocha'],
rules: {
'indent': ['error', 4, { SwitchCase: 1 }],
'linebreak-style': ['warn', 'windows'],
'max-len': ['warn', 160],
'no-console': 'off',
'no-extra-boolean-cast': 'off',
'prettier/prettier': ['warn', { trailingComma: 'none' }],
'quotes': ['error', 'single'],
'semi': ['error', 'always'],
'@typescript-eslint/ban-ts-comment': 'warn',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/indent': 'off',
'@typescript-eslint/no-non-null-assertion': 'off'
}
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/fudiwei/skit-storage.js.git
git@gitee.com:fudiwei/skit-storage.js.git
fudiwei
skit-storage.js
skit-storage.js
main

搜索帮助