Skip to content

Instantly share code, notes, and snippets.

View vikas-parmar's full-sized avatar
🎯
Focusing

Vikas Parmar vikas-parmar

🎯
Focusing
View GitHub Profile
@vikas-parmar
vikas-parmar / .prettierignore
Created February 15, 2025 13:27
This Prettier configuration is optimized for React, Next.js, and TypeScript projects.
# Ignore node modules and dependencies
node_modules
package-lock.json
pnpm-lock.yaml
yarn.lock
# Ignore build and output directories
.next
out
dist
@vikas-parmar
vikas-parmar / .eslintrc.json
Created February 15, 2025 12:57
This ESLint configuration is optimized for Next.js, TypeScript, and Prettier. It enforces best practices, improves code readability, and maintains consistency across the project.
{
// Extending recommended ESLint rules for Next.js, TypeScript, and Prettier
"extends": [
"plugin:@tanstack/query/recommended", // Enforces best practices for React Query
"next/typescript", // Includes Next.js and TypeScript-specific rules
"prettier", // Disables conflicting Prettier rules for better formatting
"next/core-web-vitals", // Ensures performance optimizations for Next.js apps
"next" // Next.js standard ESLint rules (must be extended last)
],
@vikas-parmar
vikas-parmar / .editorconfig
Last active June 16, 2025 23:47
This .editorconfig file is designed to ensure consistent coding standards across different editors and IDEs. It helps maintain uniform indentation, line endings, and encoding, preventing unnecessary formatting changes when working in a team.
# This is the root .editorconfig file, meaning all settings here take precedence.
root = true
# Global settings for all file types
[*]
# Use UTF-8 encoding for better character support
charset = utf-8
# Enforce LF (Line Feed) as the default line ending for cross-platform compatibility
end_of_line = lf