1.0.14 • Published 4 years ago

@cbryant24/eslint-config-typescript v1.0.14

Weekly downloads
144
License
ISC
Repository
-
Last release
4 years ago

Eslint, Typescript, and Prettier Setup

Run the following command to install and install peerDependencies as devDependencies for the current project

npx install-peerdeps --dev @cbryant24/eslint-config-typescript

Create the tsconfig.json file in the projects root directory by running the following command

tsc --init

Add the follow extends option to include base tsconfig.json

{
  "extends": "@cbryant24/tsconfig.json",
  "compilerOptions": {
    ...
  }
}

Create a .eslintrc file in the root of your project's directory (it should live where package.json does). Your .eslintrc file should look like this:

{
  "extends": [
    "@cbryant24/eslint-config-typescript"
  ]
}

Run the following command to create a prettier config file

touch .prettierrc.json

Add the follow configuration to the .prettierrc.json file

{
  "tabWidth": 2,
  "semi": true,
  "singleQuote": true
}
1.0.14

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.11

4 years ago

1.0.9

4 years ago

1.0.10

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago