1.0.0 • Published 4 years ago
structure-lint v1.0.0
Structure Lint 📁
A linter to check the directory/file structure of your projects.
Install CLI
Install globally with npm
npm install -g structure-lintOr with Yarn
yarn global add structure-lintInstall as a package
npm install structure-lintOr with Yarn
yarn add structure-lintThen add the following command to your package.json file:
{
"scripts": {
"structure-lint": "structure-lint"
}
}Usage
Create a .structlintrc file in the root of your project. See the example config file below:
{
"root": "src",
"rules": [
"utils/*.ts",
"hooks/*.ts",
"interfaces/I*.ts",
"components/**/*.tsx",
"deeply/**/nested/**/folder/*.{tsx,ts,js}"
]
}1.0.0
4 years ago