Gathering detailed insights and metrics for @sylphlab/eslint-config-sylph-rn
Gathering detailed insights and metrics for @sylphlab/eslint-config-sylph-rn
Gathering detailed insights and metrics for @sylphlab/eslint-config-sylph-rn
Gathering detailed insights and metrics for @sylphlab/eslint-config-sylph-rn
Strict, AI-optimized TypeScript monorepo: ESLint Flat Configs, tsconfig, Prettier, and guidelines for modern TypeScript projects.
npm install @sylphlab/eslint-config-sylph-rn
Typescript
Module System
Node Version
NPM Version
22.1
Supply Chain
41.5
Quality
75.8
Maintenance
50
Vulnerability
91.3
License
@sylphlab/biome-config@0.2.0
Updated on Apr 21, 2025
@sylphlab/prettier-config@0.3.3
Updated on Apr 20, 2025
@sylphlab/eslint-config-sylph-react@7.0.0
Updated on Apr 18, 2025
@sylphlab/eslint-config-sylph-vue@7.0.0
Updated on Apr 18, 2025
@sylphlab/eslint-config-sylph-strict@0.2.0
Updated on Apr 18, 2025
@sylphlab/eslint-config-sylph-rn@7.0.0
Updated on Apr 18, 2025
TypeScript (77.21%)
JavaScript (20.18%)
MDX (2.6%)
Total Downloads
976
Last Day
2
Last Week
12
Last Month
85
Last Year
976
MIT License
1 Stars
217 Commits
1 Watchers
10 Branches
1 Contributors
Updated on May 05, 2025
Latest Version
7.0.0
Package Id
@sylphlab/eslint-config-sylph-rn@7.0.0
Unpacked Size
13.84 kB
Size
4.29 kB
File Count
8
NPM Version
10.9.2
Node Version
22.14.0
Published on
Apr 18, 2025
Cumulative downloads
Total Downloads
Last Day
0%
2
Compared to previous day
Last Week
50%
12
Compared to previous week
Last Month
-90.5%
85
Compared to previous month
Last Year
0%
976
Compared to previous year
25
5
This package provides the ESLint Flat Config rules specifically tailored for SylphLab React Native projects. It extends the @sylphlab/eslint-config-sylph-react
configuration (which itself extends the base config) with specific rules recommended for React Native development via eslint-plugin-react-native
.
This configuration builds upon the React config philosophy with a focus on robust React Native development:
eslint-plugin-react-native
to promote common patterns specific to the React Native environment, such as avoiding inline styles (react-native/no-inline-styles
), using platform-specific file extensions correctly (react-native/split-platform-components
), and managing StyleSheet usage (react-native/no-unused-styles
).Install this package and its peer dependencies. The easiest way is using install-peerdeps
:
1# Using pnpm (recommended) - Installs this package, react, base, and all necessary plugins 2npx install-peerdeps --dev @sylphlab/eslint-config-sylph-rn -p pnpm 3 4# --- OR --- 5 6# Manual Installation (if needed): 7# 1. Install this package, react, and base packages 8pnpm add -D @sylphlab/eslint-config-sylph-rn @sylphlab/eslint-config-sylph-react @sylphlab/eslint-config-sylph 9# 2. Install all peer dependencies listed in ALL THREE package.json files (rn's, react's, and base's) 10pnpm add -D eslint typescript @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint-config-prettier eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-prettier eslint-plugin-react eslint-plugin-react-hooks eslint-plugin-react-native eslint-plugin-unicorn prettier react react-native
(Ensure you have eslint
and typescript
installed in your project as well.)
Import and include the configuration array in your eslint.config.js
or eslint.config.ts
. This package exports a combined array that includes the base and React configurations automatically.
1// eslint.config.ts 2import sylphRNConfig from '@sylphlab/eslint-config-sylph-rn'; 3// Optionally import base/react configs if you need to layer rules specifically 4 5export default [ 6 // Include the combined React Native config 7 ...sylphRNConfig, 8 9 // Your project-specific rules or overrides 10 { 11 files: ['**/*.ts', '**/*.tsx'], // Target specific files 12 languageOptions: { 13 parserOptions: { 14 project: './tsconfig.json', // Point to your project's tsconfig 15 }, 16 }, 17 rules: { 18 // Example: Allow console logs 19 'no-console': 'warn', 20 // Example: Relax abbreviation rule for 'props' 21 'unicorn/prevent-abbreviations': ['error', { replacements: { props: false } }], 22 // Example: Override a React Native rule 23 'react-native/no-inline-styles': 'off', // Not recommended, but possible 24 }, 25 }, 26 { 27 // Example: Ignoring specific files/folders from linting 28 ignores: ['**/dist/**', '**/node_modules/**', '**/ios/**', '**/android/**'], 29 }, 30];
See the main monorepo README for more details on the overall philosophy and available configurations.
No vulnerabilities found.
No security vulnerabilities found.