Eslint fails in Starterkit "lint" script if there are no JS files in components

Created on 12 January 2024, 12 months ago
Updated 21 March 2024, 9 months ago

Problem/Motivation

Eslint fails in Starterkit "lint" script if there are no JS files in components

Steps to reproduce

1. Create a subtheme from the sarterkit without examples (use the flag available in the script)
2. Run `npm run lint`

Observer error:

```
No files matching the pattern "./components/**/*.js" were found.
Please check for typing mistakes in the pattern.
```

Proposed resolution

Add ESLint flag `--no-error-on-unmatched-pattern` to `civictheme_starter_kit/package.json` to suppress the message.

Remaining tasks

User interface changes

None

API changes

None

Data model changes

None

🐛 Bug report
Status

Fixed

Version

1.6

Component

Code

Created by

🇦🇺Australia alex.skrypnyk Melbourne

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024