1.0.14 • Published 3 years ago

@cbryant24/eslint-config-typescript v1.0.14

Weekly downloads
144
License
ISC
Repository
-
Last release
3 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

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.11

3 years ago

1.0.9

3 years ago

1.0.10

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago