react-native-eslint-prettier-example

How to set up ESLint and Prettier in a React Native app. (by vasilestefirta)

React-native-eslint-prettier-example Alternatives

Similar projects and alternatives to react-native-eslint-prettier-example

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better react-native-eslint-prettier-example alternative or higher similarity.

react-native-eslint-prettier-example reviews and mentions

Posts with mentions or reviews of react-native-eslint-prettier-example. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-12-04.
  • Eslint & Prettier Configuration React Native(Airbnb Style)
    5 projects | dev.to | 4 Dec 2023
    // REF: https://github.com/vasilestefirta/react-native-eslint-prettier-example { "env": { "browser": true, "es2021": true }, "extends": ["plugin:react/recommended", "airbnb", "airbnb/hooks", "prettier"], "plugins": ["react", "react-native"], "parserOptions": { "ecmaVersion": "latest", "sourceType": "module" }, "rules": { "react/function-component-definition": "off", "no-param-reassign": "off", // allow .js files to contain JSX code "react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }], // prevent eslint to complain about the "styles" variable being used before it was defined "no-use-before-define": ["error", { "variables": false }], // ignore errors for the react-navigation package "react/prop-types": ["error", { "ignore": ["navigation", "navigation.navigate"] }], // enforce a maximum of two styles for inline styles "react-native/no-inline-styles": "error", // Add this line // enforce a maximum file length of 500 lines "max-lines": ["error", { "max": 500 }] } }

Stats

Basic react-native-eslint-prettier-example repo stats
1
133
10.0
about 3 years ago

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com