Skip to content

Tracking Issue: restricted paths eslint allowlist #33631

@caroqliu

Description

@caroqliu

#33016 introduced eslint rules that disallows certain cross directory file imports. Given these are now blocking lint checks, there is also an allowlist for this rule:

amphtml/src/.eslintrc.js

Lines 49 to 64 in b286342

// Exclusions where imports are necessary or have not yet been migrated;
// Do not add to this list
'overrides': [
{
'files': [
'./preact/base-element.js',
'./preact/slot.js',
'./core/contextprops.js',
'./context/subscriber.js',
'./context/node.js',
'./context/prop.js',
'./context/scheduler.js',
'./context/values.js',
],
'rules': {'import/no-restricted-paths': isCiBuild() ? 0 : 1},
},

This is a tracking issue to centralize efforts to move files used in restricted and allowlisted ways so that they can be used correctly. Temporary additions to the allowlist should also refer to this issue so this work can stay up to date.

Metadata

Metadata

Assignees

Labels

StaleInactive for one year or more

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions