Security News
NVD Backlog Tops 20,000 CVEs Awaiting Analysis as NIST Prepares System Updates
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
@sketch-hq/sketch-assistant-core-rules
Advanced tools
> 💁♀️ This is a "rules only" Assistant, meaning it contains only rule implementations and no > configuration. Adding this Assistant to Sketch won't do anything because rules need to be > activated in configuration before they will report anything. > > U
💁♀️ This is a "rules only" Assistant, meaning it contains only rule implementations and no configuration. Adding this Assistant to Sketch won't do anything because rules need to be activated in configuration before they will report anything.
Use this Assistant by extending from it in your own Assistant, and adding configuration and/or additional rule implementations. To find out how to do this and more head to the Assistant Developer Documentation.
⚠️ This package is in pre-release mode using the
next
tag.
This Assistant exports the following rules. Click the links to view their documentation, configuration options and implementation.
artboards-grid
artboards-layout
artboards-max-ungrouped-layers
borders-no-disabled
debug-all-options
debug-i18n
debug-throws-error
exported-layers-normal-blend-mode
fills-no-disabled
groups-max-layers
groups-no-empty
groups-no-redundant
groups-no-similar
images-no-outsized
images-no-undersized
inner-shadows-no-disabled
layer-styles-no-dirty
layer-styles-prefer-library
layer-styles-prefer-shared
layers-no-hidden
layers-no-loose
layers-subpixel-positioning
name-pattern-artboards
name-pattern-groups
name-pattern-images
name-pattern-pages
name-pattern-shapes
name-pattern-symbols
name-pattern-text
result-messages-include
shadows-no-disabled
shared-styles-no-unused
symbols-no-unused
symbols-prefer-library
text-styles-no-dirty
text-styles-prefer-library
text-styles-prefer-shared
The following section of the readme only relates to developing the Assistant, not using it in your own projects.
Interact with the tooling in this repository via the following scripts.
Script | Description |
---|---|
yarn build | Builds the Assistant to the dist folder |
yarn format-check | Checks the formatting with prettier |
yarn i18n:extract | Extracts strings from the JS source to PO files |
yarn test | Runs the Jest tests |
yarn type-check | Typecheck the TypeScript |
Try and use the conventional commits convention when writing commit messages.
Use a TDD approach, and the existing rules as a guide.
Rule functions can run in Node against plain Sketch file JSON, so the Mac Sketch app isn't required while actively developing rule logic.
When creating a new rule in this repository:
src/
as a starting point.src/index.ts
..sketch
files to use as test fixtures. At a minimum these
should demonstrate two scenarios - one where you'd expect your rule to report violations, and one
where it shouldn't report anyyarn test --watch
.This repository uses Atlassian Changesets to automate the npm release process. Read the docs for more information, but the top-level summary is:
yarn changeset
. You'll be asked to provide a change type (major, minor or patch) and a message.This Assistant requires internationalization since it's an official Sketch Assistant.
Translating your own Assistants is completely optional however.
Internationalization is handled by LinguiJS, and follows their guides for handling plain JavaScript projects.
The following locales are currently supported in the Sketch Mac app and this project:
en
(American English)zh-Hans
(Chinese Simplified)When ready to perform a round of translation, for example when there are new untranslated strings in the repository, perform the following workflow:
yarn i18n:extract
which will update the .po
files in src/locale/
with the new strings
used throughout the source code.master
.3.1.0-next.3
FAQs
Official core rules Sketch Assistant.
The npm package @sketch-hq/sketch-assistant-core-rules receives a total of 1 weekly downloads. As such, @sketch-hq/sketch-assistant-core-rules popularity was classified as not popular.
We found that @sketch-hq/sketch-assistant-core-rules demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.
Security News
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.