ESP32 Platform Documentation

ESLint

This platform integrates ESLint.

ESLint is an open source project that helps you find and fix problems with your JavaScript code.

Configuration

File `eslint.config.mjs` in the root folder contains settings and code convention rules

Inline PHP

A custom plugin is included that removes inline PHP syntax

CI-CD

There is a CI-CD workflow `path/to/my/project/github/workflows/docs.yml` in place containing a step that automaticly scans the codebase. The output report is processed in a auto-generated .rst file which stores in `path/to/my/project/docs/report/` and included in the phpdocs guide when a push or pull request event triggers and is uploaded to the `gh-pages` branch.

Run locally

Follow these steps to run ESLint locally

  1. Make sure npm packages are installed.
  2. If it is missing
    # cd to the root directory of the project folder
    
    # This will install the dependencies set in package.json
    npm install
  3. Open a terminal of choice and change current directory to the root directory.
  4. Run the following command
    npx eslint "app/Views/**/*.php" --format stylish

    This will report directly to the terminal

Search results