project-linter

Project Linter

Create conventions for file placement for any kind of JS/TS project. React, Angular, Vue, Svelte, Ember, etc.

Project Linter

Define a schema for enforcing structure within your project. Enforce consistency while trying to figure out what works best for your team.

This works by using Abstract Syntax Trees (ASTs) to identify file types, defined by you, categorize them, and then validation their location against the schema.

Install

npm install project-linter
# or
yarn add project-linter

Usage

// .project-lintrc.js
module.exports = {
  categories: {
    componentJs: require('./...)
    component: ['single-file-component', 'multi-file-component']
    componentFolder: {

    }
  }
}

Top categories

Loading Svelte Themes