rnx-kit/packages/eslint-config
React Native SDK Bot ffd0f05db9
RELEASING: Releasing 2 package(s) (#3398)
Releases:
  @rnx-kit/eslint-plugin@0.8.4
  @rnx-kit/eslint-config@0.0.8

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-10-18 11:02:38 +00:00
..
CHANGELOG.md RELEASING: Releasing 2 package(s) (#3398) 2024-10-18 11:02:38 +00:00
README.md chore(security): scope internal scripts package to prevent hijacking (#830) 2021-11-09 20:21:15 +01:00
index.js fix(deps): update eslint (major) (#3394) 2024-10-17 14:41:52 +00:00
package.json RELEASING: Releasing 2 package(s) (#3398) 2024-10-18 11:02:38 +00:00

README.md

@rnx-kit/eslint-config

This is for internal use only.

@rnx-kit/eslint-config is a shareable ESLint config with recommended Prettier and TypeScript rules.

For more details on shareable configs, see https://eslint.org/docs/developer-guide/shareable-configs.

Usage

Add @rnx-kit/eslint-config to your package.json:

diff --git a/~/package.json b/~/package.json
index d9daf8f..9ca1826 100644
--- a/~/package.json
+++ b/~/package.json
@@ -15,7 +15,8 @@
   },
   "scripts": {
     "build": "rnx-kit-scripts build",
     "format": "rnx-kit-scripts format",
+    "lint": "rnx-kit-scripts lint"
   },
   "dependencies": {
     "chalk": "^4.1.0",
@@ -37,6 +39,9 @@
     "@rnx-kit/scripts": "*",
     "typescript": "^4.0.0"
   },
+  "eslintConfig": {
+    "extends": "@rnx-kit/eslint-config"
+  },
   "jest": {
     "roots": [
       "test"