Socket
Socket
Sign inDemoInstall

@theforeman/eslint-plugin-foreman

Package Overview
Dependencies
8
Maintainers
2
Versions
184
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @theforeman/eslint-plugin-foreman

Eslint plugin for the foreman


Version published
Maintainers
2
Created

Changelog

Source

13.1.0 (2024-05-03)

Features

  • vendor-core: add @patternfly/react-core/next (#480) (2a29df2)

Readme

Source

@theforeman/eslint-plugin-foreman

Styling code for foreman core and plugins.

What you get with this project

  • @theforeman/eslint-plugin-foreamn - Adds eslint plugin for opinitated styling
  • tfm-lint - Run eslint cli for files in /webpack folder

Installation

npm install --save-dev @theforeman/eslint-plugin-foreman

Modify package.json

"lint": "tfm-lint"

In plugins it is important to add --plugin flag:

"lint": "tfm-lint --plugin -d /webpack"

Create an eslintrc file

Foreman core
{
  "plugins": ["@theforeman/foreman"],
  "extends": ["plugin:@theforeman/foreman/core"]
}
Plugins
{
  "plugins": ["@theforeman/foreman"],
  "extends": [
    "plugin:@theforeman/foreman/core",
    "plugin:@theforeman/foreman/plugins"
  ]
}

Run linting script

Run tfm-lint in order to get a linting report on files under /webpack and /script folders

Lint other folders or files

Add -d flag with a list of files or folders:

tfm-lint -d /example_folder /other_folder some-file.js

Contributing

Please checkout the contributing.md, the roadmap.md and the open issues.

FAQs

Last updated on 03 May 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc