Socket
Book a DemoInstallSign in
Socket

@hamidfzm/eslint-config

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hamidfzm/eslint-config

ESLint configuration used by Hamid FzM.

0.10.0
latest
Source
npmnpm
Version published
Weekly downloads
275
88.36%
Maintainers
1
Weekly downloads
 
Created
Source

eslint-config

This is a configuration for ESLint created by Hamid FzM, and it is intended to be used for React or NextJS projects that utilize TypeScript.

If you are working on a NextJS project, then please use the @hamidfzm/eslint-config/next configuration.

Install

You can install this configuration using either npm or yarn. Here are the commands:

npm

npm install --save-dev @hamidfzm/eslint-config

yarn

yarn add -D @hamidfzm/eslint-config

Usage

To use this configuration, you need to add an extends property in your .eslintrc.js file with the value of @hamidfzm. Here's an example:

Typical React Project with TypeScript

module.exports = {
  extends: '@hamidfzm',
};

React Project with NextJS

module.exports = {
  extends: '@hamidfzm/next',
};

React Native Project

module.exports = {
  extends: '@hamidfzm/react-native',
};

Additionally, if you want to use Prettier, you can add a .prettierrc.js file with your desired settings. Here's an example:

module.exports = {
  singleQuote: true,
  tabWidth: 2,
  trailingComma: 'all',
  useTabs: false,
};

Keywords

lint

FAQs

Package last updated on 04 Jun 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.