rn-project
Version:
#### 项目介绍 类似一个脚手架的工具 此项目致力于构建一套基础,简单,可维护的 适配我司的react-native项目。可在此基础上搭建项目,封装了基础架构,基础组件,以及各种交互等;可快速进行项目搭建,开发。 # 涉及主要技术 - 1. 项目主要架构 * react native * react-navigation * redux
57 lines (55 loc) • 1.38 kB
JavaScript
module.exports = {
"env": {
"react-native/react-native": true,
"es6": true,
"node": true
},
"extends": ["eslint:recommended", "plugin:prettier/recommended", 'plugin:react/recommended', "plugin:react-native/all"],
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"plugins": [
"prettier",
"react",
"react-native"
],
"rules": {
"prettier/prettier": ["error", {
"singleQuote": true,
"trailingComma": "all",
"bracketSpacing": true,
"jsxBracketSameLine": true,
"parser": "flow"
}],
"react/jsx-uses-vars": 1,
"react/react-in-jsx-scope": 0,
"no-unused-vars": ["error", { "argsIgnorePattern": "React" }],
// "indent": [
// "error",
// 2,
// { "SwitchCase": 1 }
// ],
// "linebreak-style": [
// "error",
// "unix"
// ],
// "quotes": [
// "error",
// "single"
// ],
// "semi": [
// "error",
// "always"
// ],
"no-extra-boolean-cast": "off",
"react-native/no-unused-styles": 2,
"react-native/split-platform-components": 2,
"react-native/no-inline-styles": 2,
"react-native/no-color-literals": 1, // warning Color literal: { backgroundColor: '#f00' } react-native/no-color-literals
}
};