Skip to content

shakurocom/eslint-config-react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@shakuroinc/eslint-config-react

Shakuro eslint (with React and tailwindcss support) and prettier extensible basic config.

Usage

Install package:

yarn add -D @shakuroinc/eslint-config-react

Install package dependencies:

npx install-peerdeps @shakuroinc/eslint-config-react -d -Y

if you using yarn workspaces npx install-peerdeps @shakuroinc/eslint-config-react -d -Y --extra-args "--ignore-workspace-root-check"

Configure eslint:

// .eslintrc.js
module.exports = {
  extends: ['@shakuroinc/eslint-config-react'],
  // extend config if needed
};

Configure prettier:

// .prettierrc.js
module.exports = { ...require('@shakuroinc/eslint-config-react/prettier.config') };