mark-nicepants / figma2flutter

Converts design token json files to flutter
Apache License 2.0
17 stars 16 forks source link

[FEATURE REQUEST] Generated code 'part of' should be consistent and linting #16

Closed freemansoft closed 3 months ago

freemansoft commented 6 months ago

:speech_balloon: Description

tokens.g.dart and tokens_extra.g.dart declare the part of differently and the 3.0 linter complains about one of them. The lint rules say that they should be the same style. https://pub.dev/packages/flutter_lints

// passes lint
part 'tokens_extra.g.dart';
// generates lint warning
part of tokens;

:question: Link to specification or documentation (if available)

Do you want them to be the same? If so, I can generate a PR.

That is the only warning I have for the example with the 3.0 linter