Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gabts/eslint-config-react-native-typescript
ESLint config for TypeScript React Native projects.
https://github.com/gabts/eslint-config-react-native-typescript
a11y eslint react-native typescript
Last synced: 4 days ago
JSON representation
ESLint config for TypeScript React Native projects.
- Host: GitHub
- URL: https://github.com/gabts/eslint-config-react-native-typescript
- Owner: gabts
- License: mit
- Created: 2019-06-30T18:08:15.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-04T05:13:20.000Z (almost 2 years ago)
- Last Synced: 2024-12-17T22:12:03.800Z (17 days ago)
- Topics: a11y, eslint, react-native, typescript
- Language: JavaScript
- Homepage: https://npmjs.com/eslint-config-react-native-typescript
- Size: 424 KB
- Stars: 13
- Watchers: 2
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# π΅οΈ eslint-config-react-native-typescript
ESLint configuration for React Native projects written in TypeScript.
## β Features
- Based on [@react-native-community/eslint-config](https://github.com/facebook/react-native/tree/master/packages/eslint-config-react-native-community) but with extended ruleset.
- Leaves formatting to Prettier with [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier).
- Checks for cyclic imports/exports with [eslint-plugin-import](https://github.com/benmosher/eslint-plugin-import).
- Enforces consistent import order with [eslint-plugin-import-order-alphabetical](https://github.com/janpaul123/eslint-plugin-import-order-alphabetical).
- Ensures accessible applications with [eslint-plugin-react-native-a11y](https://github.com/FormidableLabs/eslint-plugin-react-native-a11y).## π© Installation
```sh
yarn add eslint-config-react-native-typescript
```Extend the config in your `.eslintrc` file.
```json
{
"extends": "react-native-typescript"
}
```## πΌπ» Does this work with vanilla JavaScript?
Yes! (Except the TypeScript stuff of course)
## π§ Configuration
Simply override any rule by assigning new rules in your `.eslintrc` file.
```json
{
"extends": "react-native-typescript",
"rules": {
"no-console": 2
}
}
```## π§Ά Dependencies
Your project needs ESLint and TypeScript installed for this config to work correctly.
```sh
yarn add typescript eslint
```## π License
[MIT](./LICENSE)