A Gulp plugin (v1.0.1) that lints file paths and names in a vinyl stream. It enforces naming conventions, allowed extensions, and directory index presence through customizable rules. Built-in rules include directory-index, directory-name, file-extension, and file-name – all disabled by default. The plugin supports custom rules and custom reporters. Last updated in 2015, it requires Node >=0.10 and has no recent maintenance. Unlike generic linters, it focuses solely on path conventions and integrates with Gulp pipelines.
npm install gulp-lint-filepathNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic Gulp task setup for linting file paths with rules for extensions, file names, and directory names.
Pass a config object with rule keys and arrays/regexes.
Consider alternatives like eslint-plugin-filenames or custom Gulp tasks with glob patterns.
Ensure your regex for file-name only matches the name without extension.
Provide directory paths or patterns in the ignore property for directory-index.
Use default import: import lintFilepath from 'gulp-lint-filepath'
Make 'file-extension' an array of strings/regex, e.g., ['.js']
Ensure lintFilepath is required/imported first: const lintFilepath = require('gulp-lint-filepath')