New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@withfig/eslint-plugin-fig-linter

Package Overview
Dependencies
Maintainers
7
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@withfig/eslint-plugin-fig-linter - npm Package Compare versions

Comparing version 1.3.1 to 1.4.0

rules/no-arg-in-option-name.js

33

index.js

@@ -14,4 +14,5 @@ module.exports = {

"no-default-value-props": require("./rules/no-default-value-props"),
"no-missing-get-version-export": require('./rules/no-missing-get-version-export'),
"no-missing-versions-export": require('./rules/no-missing-versions-export'),
"no-missing-get-version-export": require("./rules/no-missing-get-version-export"),
"no-missing-versions-export": require("./rules/no-missing-versions-export"),
"no-arg-in-option-name": require("./rules/no-arg-in-option-name"),
},

@@ -26,3 +27,3 @@ configs: {

{
// IMPORTANT!: when enabling a new rule that may conflict with how diff-versioned-specs work
// IMPORTANT!: when enabling a new rule that may conflict with how diff-versioned-specs work
// be sure to exclude it from diff-versioned-specs (see below)

@@ -34,10 +35,13 @@ files: "src/**/*.ts",

"@withfig/fig-linter/no-name-equals": "error",
"@withfig/fig-linter/no-default-value-props": ["error", [
{path: "options.[*].isRequired", defaultValue: false},
{path: "args.[*]?.isOptional", defaultValue: false},
{path: "args.[*]?.isDangerous", defaultValue: false},
{path: "options.[*].isDangerous", defaultValue: false},
{path: "subcommands.[*].isDangerous", defaultValue: false},
{path: "args.[*]?.isVariadic", defaultValue: false},
]],
"@withfig/fig-linter/no-default-value-props": [
"error",
[
{ path: "options.[*].isRequired", defaultValue: false },
{ path: "args.[*]?.isOptional", defaultValue: false },
{ path: "args.[*]?.isDangerous", defaultValue: false },
{ path: "options.[*].isDangerous", defaultValue: false },
{ path: "subcommands.[*].isDangerous", defaultValue: false },
{ path: "args.[*]?.isVariadic", defaultValue: false },
],
],
// TODO: Re-Enable Rule if we got a proper flag for that

@@ -50,2 +54,3 @@ "@withfig/fig-linter/no-invalid-option": "off",

"@withfig/fig-linter/conventional-descriptions": "error",
"@withfig/fig-linter/no-arg-in-option-name": "error",
},

@@ -58,3 +63,3 @@ },

"@withfig/fig-linter/no-missing-get-version-export": "warn",
}
},
},

@@ -66,4 +71,4 @@ {

"@withfig/fig-linter/no-missing-versions-export": "error",
"@withfig/fig-linter/no-default-value-props": "off" // disable this since diff-versioned specs may change isOptional to a default value
}
"@withfig/fig-linter/no-default-value-props": "off", // disable this since diff-versioned specs may change isOptional to a default value
},
},

@@ -70,0 +75,0 @@ ],

{
"name": "@withfig/eslint-plugin-fig-linter",
"version": "1.3.1",
"version": "1.4.0",
"description": "This is a eslint plugin which is tailored for fig specs",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc