janl / mustache.js

Minimal templating with {{mustaches}} in JavaScript
https://mustache.github.io
MIT License
16.37k stars 2.4k forks source link

Build fails on master (eslint func-names) #815

Closed dsyer closed 1 year ago

dsyer commented 1 year ago
$ npm run test

> mustache@4.2.0 test
> npm run test-lint && npm run test-unit

> mustache@4.2.0 test-lint
> eslint mustache.js bin/mustache test/*.js test/**/*.js

/workspaces/mustache.js/mustache.js
  1:2   error  Unexpected unnamed function  func-names
  5:10  error  Unexpected unnamed function  func-names

You can fix it by adding /* eslint-disable func-names */ to the top of mustache.js (copied from partial-test.js).

dsyer commented 1 year ago

Seems like this went away when I followed the steps in the README. Did I fix it inadvertently? Maybe I hadn't installed the prerequisites?