I’m seeing a significant difference in default linting configuration, and the way it supposed to work.
The default configuration installs the eslint-config-discourse package as a dev devendency:
However, when I look for the source code at https://github.com/discourse/eslint-config-discourse the repository redirected to @discourse/lint-configs; which is also a package under eslint-config-discourse monorepo. With the included tests eslint-config-discourse supposed to be a wrapper I think, but it is not working as it supposed to be, at least not in my experience:
Default Linting Config
Create a new theme using discourse_theme new command.
Review generated linting configuration:
a. .eslintrc
Thanks, this was it. Now I can get a version (previously I didn’t get version):
discourse_theme --version
2.1.2
…and an updated commands list:
discourse_theme --help
Usage: discourse_theme COMMAND [DIR] [OPTIONS]
Commands:
new DIR - Creates a new theme in the specified directory.
download DIR - Downloads a theme from the server and stores it in the specified directory.
upload DIR - Uploads the theme from the specified directory to Discourse.
watch DIR - Watches the theme in the specified directory and synchronizes any changes with Discourse.
rspec DIR [OPTIONS] - Runs the RSpec tests in the specified directory. The tests can be run using a local Discourse repository or a Docker container.
--headful - Runs the RSpec system type tests in headful mode. Applies to both modes.
If specified directory has been configured to run in a Docker container, the additional options are supported.
--rebuild - Forces a rebuilds of Docker container.
--verbose - Runs the command to prepare the Docker container in verbose mode.
Global Options:
--reset - Resets the configuration for the specified directory.