Styling code for foreman core and plugins.
@theforeman/eslint-plugin-foreamn
- Adds eslint plugin for opinitated stylingtfm-lint
- Run eslint cli for files in /webpack folder
npm install --save-dev @theforeman/eslint-plugin-foreman
"lint": "tfm-lint"
In plugins it is important to add --plugin
flag:
"lint": "tfm-lint --plugin -d /webpack"
{
"plugins": ["@theforeman/foreman"],
"extends": ["plugin:@theforeman/foreman/core"]
}
{
"plugins": ["@theforeman/foreman"],
"extends": [
"plugin:@theforeman/foreman/core",
"plugin:@theforeman/foreman/plugins"
]
}
Run tfm-lint
in order to get a linting report on files under /webpack
and /script
folders
Add -d
flag with a list of files or folders:
tfm-lint -d /example_folder /other_folder some-file.js
Please checkout the contributing.md
, the roadmap.md
and the open issues.