@goodrequest/eslint-config-typescript
v1.3.0
Published
GoodRequest ESLint config for TypeScript projects
Downloads
1,201
Readme
eslint-config-typescript
ESLint config for TypeScript projects.
Usage
- You can install package using this command:
npm install @goodrequest/eslint-config-typescript --save-dev
- Next step is to install all the peer dependencies:
npm install eslint@^8.57.0 eslint-plugin-import@^2.29.1 eslint-plugin-prettier@^5.1.3 @typescript-eslint/eslint-plugin@^7.2.0 prettier@^3.2.5 --save-dev
- Create
.eslintrc.json
file in your project root directory and add following lines:
{
"extends": ["@goodrequest/eslint-config-typescript"]
}
- 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
}
- 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