Question: I want to know how to get the value of the button data-title (prbModalExt2.html) in jquery and insert it into a variable URL. 

At this time the variable URL is created with the value `prbModalExt1.html`.

```
<div class="container ">
    <div class="jumbotron"><a class="btn btn-primary" data-toggle="modal" href="#myModal" id="modellink" data-title="prbModalExt2.html">Show Modal</a></div>
    <div class="modal-container"></div>
</div>

<script type="text/javascript">
    $(document).ready(function () {
        var url = 'prbModalExt1.html';
        jQuery('#modellink').click(function (e) {
            $('.modal-container').load(url, function (result) {
                $('#myModal').modal({ show: true });
            });
        });
    });
</script>

```

Answer: 
This works pretty fine for your use-case.

`nodemon src/app.js --exec "npm run lint && node"`

or you can write nodemon.json file in your root directory

```
{
  "watch": ["src"],
  "ignore": ["**/*.test.js", "**/*.spec.js", ".git", "node_modules"],
  "exec": "npm run lint && node src/app.js"
}

```
I've been using a custom script for a while now which I finally published to npm.
Check it out here: <https://github.com/theoephraim/lint-fix-nodemon>

This helps avoid double restarts when eslint fixes your files as well as not failing on the initial run if eslint has fatal errors.

Hope it helps!