2 Star 0 Fork 0

trium/rnmjz

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
.eslintrc.js 1.15 KB
一键复制 编辑 原始数据 按行查看 历史
srxboys 提交于 2022-08-31 18:36 +08:00 . [add] react-native-linear-gradient
module.exports = {
root: true,
extends: '@react-native-community',
plugins: [
"react-hooks"
],
rules: {
"react-hooks/rules-of-hooks": "error", // Checks rules of Hooks
"react-hooks/exhaustive-deps": "warn", // Checks effect dependencies
'jsx-quotes': 0, // 单引号、双引号都行
// 强制执行一致的缩进, 关闭此规则
indent: 0,
// 表达式的结尾就应该以分号结尾
semi: 0,
// 方法名和刮号之间需要有一格空格, 关闭此规则
'space-before-function-paren': 0,
// // 此规则在非空文件的末尾强制执行至少一个换行符, 关闭此规则
// 'eol-last': 0,
// 要求或禁止尾随逗号, 关闭此规则 , vue 需要【方法】需要在尾部添加逗号,主要是方便阅读代码
'comma-dangle': 0,
// https://eslint.bootcss.com/docs/rules/camelcase#allow
// 命名变量-使用驼峰式, 关闭此规则 (书写的时候尽量使用 驼峰)
camelcase: ['error', {allow: ['^opt_', '^ol_', '^i_', '^UNSAFE_', '^RxO_']}],
// 简单的选择时可以运行三元运算符为 0, 使用默认规则 1
'no-unneeded-ternary': 0,
},
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/trium/rnmjz.git
git@gitee.com:trium/rnmjz.git
trium
rnmjz
rnmjz
master

搜索帮助