@imforce/prettier-plugin-jssp

0.0.1 • Public • Published

prettier-plugin-jssp

This is a Prettier plugin to format JSSP(JavaScript Server Pages) HTML of intra-mart.

features

  • handle col tags in certain scenarios imuiListTable/cols/col, which would cause prettier errors void elements do not have end tags "col" by default.

        <imart type="imuiListTable"...
            <cols>
                <col name="...">
                    <callFunction name="..." />
                </col> <!-- "void elements do not have end tags" error occurred by default-->
            <cols>
  • handle the attribute of imart tag, these properties will no longer be automatically quoted by default.

        <imart type="imuiTextbox" ... value=$data.value/>
        
        <!-- by default will format to bellow, which is not right for jssp-->
        <imart type="imuiTextbox" ... value="$data.value"/>

Package Sidebar

Install

npm i @imforce/prettier-plugin-jssp

Weekly Downloads

2

Version

0.0.1

License

MIT

Unpacked Size

6.03 kB

Total Files

4

Last publish

Collaborators

  • xibin.zhang