@cbryant24/eslint-config-typescript

1.0.14 • Public • Published

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
}

Readme

Keywords

none

Package Sidebar

Install

npm i @cbryant24/eslint-config-typescript

Weekly Downloads

1

Version

1.0.14

License

ISC

Unpacked Size

2.26 MB

Total Files

38

Last publish

Collaborators

  • cbryant24