Closed transitive-bullshit closed 4 months ago
New and removed dependencies detected. Learn more about Socket for GitHub ↗︎
Package | New capabilities | Transitives | Size | Publisher |
---|---|---|---|---|
npm/multimatch@7.0.0 | Transitive: environment | +5 |
464 kB | sindresorhus |
🚮 Removed packages: npm/@types/prettier@2.7.3
TODO: fix caching bug with project-based scopes; ex: effective-tsconfig
This PR adds support for custom
ruleDefinitions
in the gptlint config with fullRule
objects. TheseRule
objects may contain custom processing logic which overrides or augments the built-in linting logic:Here is an example of a custom rule which uses
preProcessFile
to extend the default linting process:To use this rule in your project, you would need to change your
gptlint.config.js
to look like the following:This PR also adds support for
Rule.scope
which may befile
(the default, where the rule is applied at the file level),project
(where the rule is applied at the per-project level; e.g., each npm package in a JS/TS monorepo), orrepo
(where the rule is applied at the top-level of the project's git repository). Currentlyrepo
is not implemented.