Skip to content
This repository was archived by the owner on Oct 16, 2024. It is now read-only.
This repository was archived by the owner on Oct 16, 2024. It is now read-only.

Doesn't find deprecation from library property (sequelize) #50

@heidemn-faro

Description

@heidemn-faro

I read the comment before creating the issue, but I have a small hope that somebody can help me :-)

I have the following behavior:

  • VS Code correctly finds deprecations from the "sequelize" library (_attributes)
  • eslint-plugin-deprecation correctly finds deprecations inside our own codebase.
  • eslint-plugin-deprecation does not find the deprecation from "sequelize".
import { DataTypes, Model, ModelAttributeColumnOptions } from 'sequelize';

export class Dummy extends Model<IDummy, Partial<IDummy>> { ... }

// Model._attributes is deprecated.
export const dummyAttributes = (dataTypes: typeof DataTypes): ModelAttributes<Dummy, Dummy['_attributes']> => ({
    ...
});

tsconfig.json:

{
	"compilerOptions": {
		"target": "es2020",
		"module": "commonjs",
		"rootDir": "./",
		"outDir": "./build",
		"esModuleInterop": true,
		"strict": true,
		"allowSyntheticDefaultImports": true,
		"noImplicitAny": false,
		"resolveJsonModule": true,
		"experimentalDecorators": true,
		"emitDecoratorMetadata": true,
		"sourceMap": true
	}
}

The ESLint config is the same as your example in the README.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions