{"library":"prettier-plugin-wgsl","title":"prettier-plugin-wgsl","description":"A Prettier plugin that formats WGSL (WebGPU Shading Language) files. Version 0.1.9 is the latest stable release. It uses Chevrotain for parsing and is inspired by prettier-plugin-glsl. Works with Prettier >=3.0.0 and ships TypeScript types. As WGSL is still evolving, this plugin may lag behind spec changes. It is the primary option for formatting WGSL code in WebGPU projects.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install prettier-plugin-wgsl"],"cli":null},"imports":["npx prettier --write *.wgsl","plugins: ['prettier-plugin-wgsl']","const prettier = require('prettier'); await prettier.format(code, { parser: 'wgsl', plugins: ['prettier-plugin-wgsl'] })"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// Install: npm install --save-dev prettier prettier-plugin-wgsl\n// Add to .prettierrc:\n{\n  \"plugins\": [\"prettier-plugin-wgsl\"],\n  \"semi\": true\n}\n// Format a file:\n// npx prettier --write shader.wgsl","lang":"json","description":"Shows how to install and configure the plugin, then format a WGSL file via CLI.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}