@airship/eslint-config-react-native-typescript
The ESLint configuration for Airship TypeScript React Native projects.
Last updated 7 months ago by sethalexander .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @airship/eslint-config-react-native-typescript 
SYNC missed versions from official npm registry.

Airship ESLint TypeScript React Native Config

npm package

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.

Current Tags

  • 1.0.1                                ...           latest (7 months ago)

2 Versions

  • 1.0.1                                ...           7 months ago
  • 1.0.0                                ...           7 months ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 4
Last Day 0
Last Week 0
Last Month 0
Dev Dependencies (3)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |