Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@strv/eslint-config-react-native

Package Overview
Dependencies
Maintainers
4
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@strv/eslint-config-react-native

STRV's ESLint config for React Native projects

  • 3.3.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
123
increased by2.5%
Maintainers
4
Weekly downloads
 
Created
Source

@strv/eslint-config-react-native

STRV's ESLint config for React-Native projects

Suitable for linting React Native source files. This ruleset extends eslint-config-universe.

Note that this config also includes Typescript rules, as we feel strongly that Typescript should be used in all React Native projects. By including Typescript by default we can create more consistent rule sets.

Also unlike other configs it directly includes react/styles config as we need to control the extend array order.

Configurations

@strv/eslint-config-react-native

Suitable for linting React Native projects.

To use this configuration, add this package as a dev dependency of your project:

yarn add @strv/eslint-conig-react-native -D

Then extend the config in your ESLint configuration:

// .eslintrc.js

'use strict'

module.exports = {
  extends: [
    '@strv/eslint-config-react-native',
  ],
  parserOptions: {
    // The project field is required in order for some TS-syntax-specific rules to function at all
    // @see https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/parser#configuration
    project: './tsconfig.json',
  },
}

License

See the LICENSE file for information.

Keywords

FAQs

Package last updated on 20 Nov 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc