From fb0cbbbb05963df9fcf0e2c868221e17f4039040 Mon Sep 17 00:00:00 2001 From: Nuria Date: Mon, 12 Dec 2022 14:02:04 +0100 Subject: [PATCH] docs: update typescript instructions in readme --- README.md | 15 ++++++++++----- package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 305772e..2409d31 100644 --- a/README.md +++ b/README.md @@ -37,11 +37,16 @@ ```js { extends: [ "eslint-config-codely/typescript" ], - parserOptions: { - project: ["./tsconfig.json"], - }, - } - ``` + overrides: [ + { + files: ["*.ts", "*.tsx"], + parserOptions: { + project: ["./tsconfig.json"], + }, + }, + ] + } + ``` ℹ️ Please note that some of the rules enabled by default require that you have `strict: true` in your `tsconfig.json`. diff --git a/package-lock.json b/package-lock.json index bf72480..4b4f80b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "eslint-config-codely", - "version": "2.1.2", + "version": "2.1.3", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "eslint-config-codely", - "version": "2.1.2", + "version": "2.1.3", "license": "SEE LICENSE IN LICENSE", "dependencies": { "@babel/core": "^7.16.0", diff --git a/package.json b/package.json index 66a950a..043fbd4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "eslint-config-codely", - "version": "2.1.2", + "version": "2.1.3", "description": "Codely's ESLint and Prettier Config", "main": "index.js", "scripts": {