0.1.8 • Published 3 years ago

eslint-config-ashhitch v0.1.8

Weekly downloads
7
License
MIT
Repository
github
Last release
3 years ago

Eslint and Prettier Setup

These are my settings for ESLint and Prettier

Install

npx install-peerdeps --dev eslint-config-ashhitch

Add to .eslintrc

{
    "extends": ["ashhitch"]
}

TypeScript

In your package.json:

  "eslintConfig": {
    "extends": "eslint-config-ashhitch/typescript.js",
    "parserOptions": {
      "project": "./tsconfig.json"
    }
  },
Then make a `tsconfig.json` file:

{
  "extends": "eslint-config-ashhitch/tsconfig.json",
  "include": [
    "**/*"
  ]
}

My vs code settings.json config

{
    "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"
}
0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.0

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago