Socket
Socket
Sign inDemoInstall

eslint-config-productsway

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-productsway

[![Version](https://img.shields.io/npm/v/eslint-config-productsway.svg)](https://www.npmjs.com/package/eslint-config-productsway) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](#) [![Twitter: jellydn](https://img.shields.io/twitter


Version published
Weekly downloads
814
decreased by-1.81%
Maintainers
1
Weekly downloads
 
Created
Source

Welcome to eslint-config-productsway 👋

Version License: MIT Twitter: jellydn

XO's ESLint config with TypeScript and Prettier support

Install

npx install-peerdeps --dev eslint-config-productsway

Usage

Create a .eslintrc.cjs file in the root of your project's directory. If you are working with TypeScript, use the following configuration:

module.exports = {
  extends: ['productsway/typescript'],
};

If you are working with TypeScript and React, use the following configuration:

module.exports = {
  extends: ['productsway/react'],
};

Configure the ESLint TypeScript parser

If your project has a TypeScript configuration, you need to configure the ESLint TypeScript parser. Include the path to your tsconfig.json file(s) in the parserOptions.project array, like so:

module.exports = {
  extends: ['productsway/typescript'], // or 'productsway/react' for TypeScript and React
  parserOptions: {
   project: ['./tsconfig.json', './tsconfig.node.json'], // include all your tsconfig.json files here
  }
};

Run ESLint

Open a terminal to the root of your project, and run the following command:

npx eslint . --ext .js,.jsx,.ts,.tsx

Author

👤 Huynh Duc Dung

Show your support

Give a ⭐️ if this project helped you!

Keywords

FAQs

Package last updated on 25 Jul 2023

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc