代码拉取完成,页面将自动刷新
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,
},
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。