10 Star 87 Fork 23

Ambit / m-app

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.eslintrc.js 1014 Bytes
一键复制 编辑 原始数据 按行查看 历史
fanwei 提交于 2021-05-14 19:47 . chore: add several eslint rules
module.exports = {
env: {
browser: true,
es2021: true,
},
extends: [
'airbnb-base',
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 12,
sourceType: 'module',
},
plugins: [
'@typescript-eslint',
],
rules: {
indent: ['error', 4],
semi: ['error', 'never'],
'no-use-before-define': ['error', 'nofunc'],
'no-underscore-dangle': 'off',
'no-plusplus': 'off',
'no-continue': 'off',
'func-names': 'off',
'no-param-reassign': 'off',
'prefer-const': ['error', { destructuring: 'all' }],
'arrow-parens': ['error', 'as-needed'],
'no-confusing-arrow': 'off',
'no-return-assign': ['error', 'except-parens'],
'import/prefer-default-export': 'off',
'no-restricted-syntax': 'off',
'import/extensions': ['error', {
'.ts': 'never',
}],
'import/no-unresolved': 'off',
},
}
TypeScript
1
https://gitee.com/ambit/m-app.git
git@gitee.com:ambit/m-app.git
ambit
m-app
m-app
main

搜索帮助

53164aa7 5694891 3bd8fe86 5694891