1 Star 0 Fork 0

Nopost/tencent-scf

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.eslintrc.js 1.59 KB
一键复制 编辑 原始数据 按行查看 历史
yugasun 提交于 2020-06-11 16:03 . feat: refact code and uniform throw error
module.exports = {
root: true,
extends: ['prettier'],
plugins: ['import', 'prettier'],
env: {
es6: true,
jest: true,
node: true
},
parser: 'babel-eslint',
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
ecmaFeatures: {
jsx: true
}
},
globals: {
on: true // for the Socket file
},
rules: {
'array-bracket-spacing': [
'error',
'never',
{
objectsInArrays: false,
arraysInArrays: false
}
],
'arrow-parens': ['error', 'always'],
'arrow-spacing': ['error', { before: true, after: true }],
'comma-dangle': ['error', 'never'],
curly: 'error',
'eol-last': 'error',
'func-names': 'off',
'id-length': [
'error',
{
min: 1,
max: 50,
properties: 'never',
exceptions: ['e', 'i', 'n', 't', 'x', 'y', 'z', '_', '$']
}
],
'no-alert': 'error',
'no-console': 'off',
'no-const-assign': 'error',
'no-else-return': 'error',
'no-empty': 'off',
'no-shadow': 'error',
'no-undef': 'error',
'no-unused-vars': 'error',
'no-use-before-define': 'error',
'no-useless-constructor': 'error',
'object-curly-newline': 'off',
'object-shorthand': 'off',
'prefer-const': 'error',
'prefer-destructuring': ['error', { object: true, array: false }],
quotes: [
'error',
'single',
{
allowTemplateLiterals: true,
avoidEscape: true
}
],
semi: ['error', 'never'],
'spaced-comment': 'error',
strict: ['error', 'global'],
'prettier/prettier': 'error'
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/nopost/tencent-scf.git
git@gitee.com:nopost/tencent-scf.git
nopost
tencent-scf
tencent-scf
master

搜索帮助