Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 828 Bytes

README.md

File metadata and controls

34 lines (22 loc) · 828 Bytes

@shakuroinc/eslint-config-base

Shakuro eslint and prettier extensible basic config.

if you need react support use: @shakuroinc/eslint-config-react

Usage

Install package:

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

Install package dependencies:

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

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

Configure eslint:

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

Configure prettier:

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