1.0.0 • Published 12 months ago
@goodrequest/eslint-config-typescript-react-native v1.0.0
eslint-config-typescript-react-native
ESLint config for React Native + TypeScript projects
Usage
- You can install package using this command:
npm install @goodrequest/eslint-config-typescript-react-native --save-dev- Next step is to install all the peer dependencies:
npm install eslint@^8.57.0 prettier@^3.2.5 typescript@^5.4.4 --save-dev- Create
.eslintrc.jsonfile in your project root directory and add following lines:
{
"extends": ["@goodrequest/eslint-config-typescript-react-native"]
}- Create
.prettierrc.jsonfile in your project root directory and add following lines:
{
"useTabs": true,
"semi": false,
"singleQuote": true,
"jsxSingleQuote": true,
"trailingComma": "none",
"printWidth": 160,
"tabWidth": 4
}- Create
.editorconfigfile in your project root directory and add following lines:
[*]
indent_style = tab
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true