Skip to content

agentfirstdev/linter

Repository files navigation

Agent First X post

The missing services for agent-first development

House linter

The Agent First linter applies standardized linting to JavaScript, JSX, JSON, CSS, and SQL files.

Usage

To add the linter to a project, follow the steps below:

  1. Go to the project directory where you want to add the linter.

  2. Download the code to your directory:

    git submodule add https://github.com/agentfirstdev/linter
    git submodule update --init --recursive
  3. Extend your project’s package.json file with and a scripts object, if necessary, and members of the object for running the linter:

    // ...
    "scripts": {
      // ...
      "lint": "npx --prefix linter eslint -c linter/eslint.config.js",
      "lint-css": "npx --prefix linter stylelint --config linter/.stylelintrc.json",
      "lint-sql": "npx --prefix linter prettier --config linter/.prettierrc --check"
    },
    // ...
  4. Switch to the linter directory then import its dependencies:

    cd linter
    npm i
  5. Lint any JS, JSX, or JSON file in your project thereafter:

    cd ..
    npm run lint [filename]

    Lint any CSS file:

    npm run lint-css [filename]

    Alternatively, lint any SQL file:

    npm run lint-sql [filename]

Clients

The linter was developed with these projects:

License

Copyright 2025– Agent First Dev, LLC.

This program is free software, excluding the brand features and third-party portions of the program identified in the Exceptions below: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

Exceptions

The Agent First logos, trademarks, domain names, and other brand features used in this program cannot be reused without permission and no license is granted thereto.

About

This repository contains standardized linting configuration.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors