This repo contains the base ESLint configuration for all kata.codes TypeScript projects.
You will need to install this package as a dev dependency. Then you will want to add a linting script to the scripts
property to your package.json
.
Include the following within the devDependencies
object of package.json
. This specifies where to grab the ESLint config from.
"@kata-codes/eslint-config": "github:kata-codes/eslint-config"
Add the following object to package.json
. This specifies the ESLint config file we want to extend.
"eslintConfig": {
"extends": "@kata-codes/eslint-config"
}
Include the following within the scripts
object of package.json
. This creates an npm
script that will run ESLint.
"scripts": {
"code:lint": "eslint ./src/**/*.ts"
}