Skip to content

Latest commit

 

History

History
24 lines (15 loc) · 493 Bytes

no-legacy-imports.md

File metadata and controls

24 lines (15 loc) · 493 Bytes

Detects usages of legacy lit imports (no-legacy-imports)

Legacy lit imports should not be used in newer versions and have been replaced.

Rule Details

This rule disallows use of legacy lit imports.

The following patterns are considered warnings:

import {internalProperty} from 'lit-element';

The following patterns are not warnings:

import {state} from 'lit/decorators';

When Not To Use It

If you still rely on older lit, you may want to disable this rule.