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": [] +}