Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ashhitch/eslint-config-ashhitch
My prefered Eslint and Prettier Setup
https://github.com/ashhitch/eslint-config-ashhitch
Last synced: about 2 months ago
JSON representation
My prefered Eslint and Prettier Setup
- Host: GitHub
- URL: https://github.com/ashhitch/eslint-config-ashhitch
- Owner: ashhitch
- Created: 2019-12-09T08:18:49.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-05T14:59:23.000Z (almost 2 years ago)
- Last Synced: 2024-10-30T12:04:56.513Z (about 2 months ago)
- Language: JavaScript
- Size: 358 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Eslint and Prettier Setup
These are my settings for ESLint and Prettier
Install
```
npx install-peerdeps --dev eslint-config-ashhitch
```Add to `.eslintrc`
```json
{
"extends": ["ashhitch"]
}
```### TypeScript
In your `package.json`:
```json
"eslintConfig": {
"extends": "eslint-config-ashhitch/typescript.js",
"parserOptions": {
"project": "./tsconfig.json"
}
},```
```json
Then make a `tsconfig.json` file:{
"extends": "eslint-config-ashhitch/tsconfig.json",
"include": [
"**/*"
]
}
```## My vs code settings.json config
```json
{
"editor.formatOnSave": true,
"[javascript]": {
"editor.formatOnSave": false
},
"[typescript]": {
"editor.formatOnSave": false
},
"[typescriptreact]": {
"editor.formatOnSave": false
},
"[javascriptreact]": {
"editor.formatOnSave": false
},
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"eslint.enable": true,
"prettier.disableLanguages": ["javascript", "typescript", "typescriptreact", "javascriptreact"],
"npm.packageManager": "yarn",
"typescript.tsdk": "node_modules/typescript/lib"
}
```