6.0.3 • Published 6 months ago

@pavelgric/eslint-config-react-native v6.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

eslint-config-react-native-pgric

ESLint and TypeScript configuration for React Native

Install

yarn add @pavelgric/eslint-config-react-native --dev

Use

v >= 6

in eslint.config.js

const config = require("@pavelgric/eslint-config-react-native/flat");
const { defineConfig } = require("eslint/config");

module.exports = defineConfig([
  config,
  // your other config
]);

v <= 5

in .eslintrc

{
  "extends": "@pavelgric/eslint-config-react-native"
}

matching .prettierrc.js

module.exports = {
  bracketSpacing: true,
  jsxBracketSameLine: false,
  singleQuote: true,
  trailingComma: 'all',
  printWidth: 80,
  semi: true,
};

Additionally to use tsconfig.json

{ "extends": "@pavelgric/eslint-config-react-native/tsconfig.base" }

5.0.2

12 months ago

5.0.1

12 months ago

5.0.0

12 months ago

6.0.1

6 months ago

6.0.0

6 months ago

6.0.3

6 months ago

6.0.2

6 months ago

4.0.0

1 year ago

3.0.2

2 years ago

3.0.1

2 years ago

3.0.0

2 years ago

2.0.2

2 years ago