Gathering detailed insights and metrics for @sylphlab/eslint-config-sylph-react
Gathering detailed insights and metrics for @sylphlab/eslint-config-sylph-react
Gathering detailed insights and metrics for @sylphlab/eslint-config-sylph-react
Gathering detailed insights and metrics for @sylphlab/eslint-config-sylph-react
Strict, AI-optimized TypeScript monorepo: ESLint Flat Configs, tsconfig, Prettier, and guidelines for modern TypeScript projects.
npm install @sylphlab/eslint-config-sylph-react
Typescript
Module System
Node Version
NPM Version
32.8
Supply Chain
63.1
Quality
80.6
Maintenance
100
Vulnerability
95.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
1,045
Last Day
3
Last Week
12
Last Month
90
Last Year
1,045
MIT License
1 Stars
217 Commits
1 Watchers
10 Branches
1 Contributors
Updated on May 05, 2025
Minified
Minified + Gzipped
Latest Version
7.0.0
Package Id
@sylphlab/eslint-config-sylph-react@7.0.0
Unpacked Size
20.67 kB
Size
5.49 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%
3
Compared to previous day
Last Week
20%
12
Compared to previous week
Last Month
-90.6%
90
Compared to previous month
Last Year
0%
1,045
Compared to previous year
23
This package provides the ESLint Flat Config rules specifically tailored for SylphLab React and Next.js projects. It extends the foundational @sylphlab/eslint-config-sylph
base configuration with specific rules for React best practices, JSX accessibility (A11y), and React Hooks conventions.
This configuration builds upon the base philosophy with a focus on robust React development:
eslint-plugin-react
to promote common patterns, prevent anti-patterns, and ensure consistency in component definition and JSX usage.eslint-plugin-react-hooks
to enforce the Rules of Hooks (react-hooks/rules-of-hooks
) and check for exhaustive dependencies (react-hooks/exhaustive-deps
), preventing common bugs related to hook usage.eslint-plugin-jsx-a11y
to catch potential accessibility issues directly within your JSX markup, promoting the development of inclusive web applications.Install this package and its peer dependencies. The easiest way is using install-peerdeps
:
1# Using pnpm (recommended) - Installs this package, the base package, and all necessary plugins 2npx install-peerdeps --dev @sylphlab/eslint-config-sylph-react -p pnpm 3 4# --- OR --- 5 6# Manual Installation (if needed): 7# 1. Install this package and the base package 8pnpm add -D @sylphlab/eslint-config-sylph-react @sylphlab/eslint-config-sylph 9# 2. Install all peer dependencies listed in BOTH package.json files (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-unicorn prettier react
(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 configuration automatically.
1// eslint.config.ts 2import sylphReactConfig from '@sylphlab/eslint-config-sylph-react'; 3// Optionally import base config if you need to layer rules specifically 4// import sylphBaseConfig from '@sylphlab/eslint-config-sylph'; 5 6export default [ 7 // Include the combined React config 8 ...sylphReactConfig, 9 10 // Your project-specific rules or overrides 11 { 12 files: ['**/*.ts', '**/*.tsx'], // Target specific files 13 languageOptions: { 14 parserOptions: { 15 project: './tsconfig.json', // Point to your project's tsconfig 16 }, 17 }, 18 rules: { 19 // Example: Allow console logs in specific files or globally 20 'no-console': 'warn', 21 // Example: Relax abbreviation rule for 'props' 22 'unicorn/prevent-abbreviations': ['error', { replacements: { props: false } }], 23 // Example: Next.js specific override (if not using Next.js plugin) 24 // 'react/react-in-jsx-scope': 'off', 25 }, 26 }, 27 { 28 // Example: Ignoring specific files/folders from linting 29 ignores: ['**/dist/**', '**/node_modules/**', '**/.next/**'], 30 }, 31];
See the main monorepo README for more details on the overall philosophy and available configurations.
No vulnerabilities found.
No security vulnerabilities found.