From a51ec5b62fa7d5c584df45419c4580c6867200f1 Mon Sep 17 00:00:00 2001 From: Abraham Williams <4braham@gmail.com> Date: Sat, 21 Sep 2024 16:53:25 -0500 Subject: [PATCH] Add eslint-plugin-deprecation --- package.json | 11 +++++++++-- tsconfig.lint.json | 5 +++++ 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 tsconfig.lint.json diff --git a/package.json b/package.json index 861223d..3057b90 100644 --- a/package.json +++ b/package.json @@ -37,14 +37,15 @@ }, "homepage": "https://github.com/abraham/remotedata#readme", "devDependencies": { - "pkg-ok": "^3.0.0", "@types/jest": "^29.0.0", "@typescript-eslint/eslint-plugin": "^8.0.0", "@typescript-eslint/parser": "^8.0.0", "eslint": "^8.0.0", + "eslint-plugin-deprecation": "^3.0.0", "eslint-plugin-import": "^2.0.0", "eslint-plugin-jest": "^28.0.0", "jest": "^29.0.0", + "pkg-ok": "^3.0.0", "prettier": "3.3.3", "ts-jest": "^29.0.0", "typescript": "^5.0.0" @@ -80,6 +81,11 @@ "eslintConfig": { "root": true, "parser": "@typescript-eslint/parser", + "parserOptions": { + "ecmaVersion": "latest", + "sourceType": "module", + "project": "./tsconfig.lint.json" + }, "plugins": [ "@typescript-eslint", "jest" @@ -90,7 +96,8 @@ "plugin:@typescript-eslint/recommended", "plugin:jest/recommended", "plugin:import/errors", - "plugin:import/typescript" + "plugin:import/typescript", + "plugin:deprecation/recommended" ] }, "prettier": { diff --git a/tsconfig.lint.json b/tsconfig.lint.json new file mode 100644 index 0000000..7a70f2c --- /dev/null +++ b/tsconfig.lint.json @@ -0,0 +1,5 @@ +{ + "extends": "./tsconfig.json", + "include": ["src"], + "exclude": [] +}