bem / bem/themekit

Impl command or flag for fix invalid tokens

Open
#93 0 comments 0 reactions 0 assignees View on GitHub
RFC
Dominant language
TypeScript
Stars
75
Forks
11
PR merge metrics
No merged PRs in 30d

Description

## Proposal

Implement command or flag for fix invalid tokens, and remove duplicate tokens.

## Use case

### Broken path

We have override tokens with broken path:

**base**

```yml
color:
base:
value: "#fff"
```

**override**

```yml
color-base:
value: "#fff"
```

In result we have warning for different tokens with same result.

### Duplicate tokens

**base**

```yml
color:
base:
value: "#fff"
```

**override**

```yml
color:
base:
value: "#fff"
```

### Command

```sh
themekit build --fix
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.