Rasulwebs / dev-custom-methods

Methods that help to simplify tasks and save time in the work process. This will help you to complete more tasks with quality

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dev Custom Methods

This repository contains custom methods that help you work with React, TypeScript, and Vite. These techniques will speed up your programming process and make your code easier to understand.

Installation

Run the following command to clone the repository:

git clone https://github.com/Rasulwebs/dev-custom-methods.git

React + TypeScript + Vite

Getting Started

First, run the development server:

npm run dev
# or
yarn dev

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:

  • Configure the top-level parserOptions property like this:
export default {
  // other rules...
  parserOptions: {
    ecmaVersion: 'latest',
    sourceType: 'module',
    project: ['./tsconfig.json', './tsconfig.node.json'],
    tsconfigRootDir: __dirname,
  },
}
  • Replace plugin:@typescript-eslint/recommended to plugin:@typescript-eslint/recommended-type-checked or plugin:@typescript-eslint/strict-type-checked
  • Optionally add plugin:@typescript-eslint/stylistic-type-checked
  • Install eslint-plugin-react and add plugin:react/recommended & plugin:react/jsx-runtime to the extends list

About

Methods that help to simplify tasks and save time in the work process. This will help you to complete more tasks with quality

License:MIT License


Languages

Language:TypeScript 94.9%Language:JavaScript 2.3%Language:HTML 1.6%Language:CSS 1.1%