@goodrequest/eslint-config-typescript-react

1.4.0 • Public • Published

eslint-config-typescript-react

npm version

ESLint config for React + TypeScript projects

Usage

  1. You can install package using this command:
npm install @goodrequest/eslint-config-typescript-react --save-dev
  1. Next step is to install all the peer dependencies:
npm install eslint@^8.50.0 eslint-plugin-import@^2.28.1 eslint-plugin-jsx-a11y@^6.7.1 eslint-plugin-prettier@^5.0.0 eslint-plugin-react@^7.33.2 eslint-plugin-react-hooks@^4.6.0 @typescript-eslint/eslint-plugin@^6.7.4 prettier@^3.0.3 --save-dev
  1. Create .eslintrc.json file in your project root directory and add following lines:
{
  "extends": ["@goodrequest/eslint-config-typescript-react"]
}
  1. Create .prettierrc.json file in your project root directory and add following lines:
{
  "useTabs": true,
  "semi": false,
  "singleQuote": true,
  "jsxSingleQuote": true,
  "trailingComma": "none",
  "printWidth": 160,
  "tabWidth": 4
}
  1. Create .editorconfig file in your project root directory and add following lines:
[*]
indent_style = tab
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.4.0
    106
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.4.0
    106
  • 1.2.0
    21
  • 1.1.1
    6
  • 1.1.0
    1
  • 1.0.0
    1

Package Sidebar

Install

npm i @goodrequest/eslint-config-typescript-react

Weekly Downloads

135

Version

1.4.0

License

ISC

Unpacked Size

4.28 kB

Total Files

3

Last publish

Collaborators

  • logingoodrequest
  • lubomirigonda