Skip to content

Latest commit

 

History

History

eslint-plugin-figma

This package is an ESLint plugin that can process JSON representations of Figma files and run rules against them, allowing you to build your own linting logic for your design team's output.

Figma files are identified by their file keys and fetched with the Figma REST API. The fetched files are stored in a local cache as JSON data, and can be augmented with additional facets like variables, comments, dev resources, as well as special metadata provided by the (upcoming) accompanying Figma Plugin. File content is then exposed as a JSON AST, with modified types so that rules can target Figma-specific concepts like components, frames, canvases, variables and so on.

This project is currently at the Proof-of-Concept stage, attempting to run a few basic rules to demonstrate the feasibility of the approach. Documentation for the rules API will be provided once that stage is completed.

TODO add section -> Suggest rules

TODO -> Please open an issue. I am very interested in hearing what rules you want to enforce and why.

eslint-plugin-figma

An ESLint plugin that can parse Figmarine cuttings and run rules against them.

Status: Experimental commit activity last commit open issues CodeQL status CI status code coverage contributors code of conduct: contributor covenant 2.1 license forks stars sponsor this project


📔 Table of Contents

🌟 Package Details

TODO

👀 Usage

Install the package with the following command:

 pnpm i eslint-plugin-figma

Then, TODO:

TODO

🏃 Run Locally

Clone the project

  git clone https://github.com/Sidnioulz/figmarine.git

Go to the project directory

  cd packages/eslint-plugin-figma

Install dependencies

  pnpm install

TODO -> this one will be harder

🎯 Roadmap

TODO move roadmap here

👋 Contributing

See how to contribute.

⚠️ License

Distributed under the MIT License.

🆘 Support

Please open a conversation in the discussion space to ask a question.

Please open an issue for bug reports or code suggestions.

💛 Acknowledgments

  • TODO