Skip to content

xsjohn0306/eslint-plugin-markup-replace

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eslint-plugin-markup-replace

安装

npm install --save-dev eslint-plugin-markup-replace

使用

  • 添加插件 markup-replace.eslintrc 文件的 plugins
  • 添加配置 php/php-custom-markup-regex
{
  "plugins": [
    "html",
    "markup-replace"
  ],
  "settings": {
    "html/html-extensions": [".html", ".tpl"],
    "php/php-extensions": [".tpl"],
    "php/php-custom-markup-regex": "(<\\?[\\s\\S]*?\\?>|{[$#].*?})"
  }
}

License

MIT

About

一个处理后端模板表达式的eslint插件

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%