README
Airship ESLint TypeScript React Native Config
This is the shared ESLint configuration file for React Native TypeScript projects at Airship.
Installation
yarn add -D typescript @airship/eslint-config-react-native-typescript
Usage
In your ESLint config file, e.g. .eslintrc
:
{
"parserOptions": {
"project": "./tsconfig.json" // Don't forget to set this up :-)
},
"extends": ["@airship/eslint-config-react-native-typescript"]
}
If you need a starter tsconfig.json
you can use this one:
{
"compilerOptions": {
"allowJs": true,
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"isolatedModules": true,
"jsx": "react-native",
"lib": ["es6"],
"module": "esnext",
"moduleResolution": "node",
"noEmit": true,
"strict": true,
"target": "esnext"
},
"exclude": [
"node_modules",
"babel.config.js",
"metro.config.js",
"jest.config.js"
]
}
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/teamairship/tslint-react-config. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Code of Conduct.
License
This package is available as open source under the terms of the MIT License.