npm.io
2.2.7 • Published 2 years ago

eslint-config-react-native-typescript

Licence
MIT
Version
2.2.7
Deps
7
Size
10 kB
Vulns
0
Weekly
0
Stars
13

eslint-config-react-native-typescript

ESLint configuration for React Native projects written in TypeScript.

Features

Installation

yarn add eslint-config-react-native-typescript

Extend the config in your .eslintrc file.

{
  "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.

{
  "extends": "react-native-typescript",
  "rules": {
    "no-console": 2
  }
}

Dependencies

Your project needs ESLint and TypeScript installed for this config to work correctly.

yarn add typescript eslint

License

MIT