This repository is a prototype of a Plugin that executes textlint on the contents of a Figma TextNode and posts the result as a comment.
Since it is an experimental plugin, we do not guarantee its working.
figma-textlint-prototype.mov
- textlint server
- Runs in a local environment
- Figma Plugin
$ git clone git@github.com:macneko-ayu/figma-textlint-with-server.git
$ cd figma-textlint-with-server
$ cd textlint-server
$ npm install
For development
$ cd figma-textlint
$ npm install
For Figma application
- open Figma application on macOS
- Select
Plugins > Development > Create Plugin...
from the menu - Click
Click to choose a manifest.json file
- Select manifest.json in figma-textlint directory
- Listen to the textlint server on localhost:3000
$ npm run dev
- Open document in Figma application
- If the TextNode does not exist, create one
- Select
Plugins > Development > figma-textlint
from the menu - Click Token file button
- Select A file containing the Personal Access Token.
- Click here to learn more about Personal Access Token.
- Click Run button
This software is released under the MIT License, see LICENSE.txt.