3.1.0 • Published 3 years ago

eslint-config-justinneff-ts v3.1.0

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

ESLint and Prettier Presets for Typescript

These are the ESLint and Prettier settings I like to use for Typescript projects.

Installing

  1. Ensure you have package.json file
  2. Install eslint-config-justinneff-ts and it's peer dependencies. (This command works with yarn too)
npx install-peerdeps -D eslint-config-justinneff-ts
  1. Create a .eslintrc file in the root of your project that looks like this:
{
	"extends": ["justinneff-ts"]
}
  1. Create a .prettierrc file in the root of your project. These are the default settings I use:
{
	"arrowParens": "always",
	"bracketSpacing": true,
	"jsxSingleQuote": false,
	"semi": false,
	"singleQuote": true,
	"tabWidth": 2,
	"trailingComma": "all",
	"useTabs": true
}
  1. You can also add these scripts to the package.json file to give you simple commands for linting and fixing files.
"scripts": {
	"lint": "eslint .",
	"lint:fix": "eslint . --fix"
},
3.1.0

3 years ago

3.0.1

4 years ago

3.0.0

4 years ago

2.3.0

4 years ago

2.2.0

4 years ago

2.1.1

4 years ago

2.1.0

4 years ago

2.0.0

4 years ago

1.0.0

4 years ago