Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-botland

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-botland - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

rules/code-length.js

39

configs/recommended.js

@@ -17,3 +17,39 @@ "use strict";

'WeakMap',
'WeakSet'
'WeakSet',
'console',
'parseInt',
'parseFloat',
'isNaN',
'ArrayBuffer',
'Function',
'AsyncFunction',
'Atomics',
'DataView',
'Date',
'Error',
'Float32Array',
'Float64Array',
'Generator',
'GeneratorFunction',
'Int16Array',
'Int32Array',
'Int8Array',
'Intl',
'JSON',
'Proxy',
'RegExp',
'SharedArrayBuffer',
'SyntaxError',
'TypeError',
'TypedArray',
'Uint16Array',
'Uint32Array',
'Uint8Array',
'Uint8ClampedArray',
'decodeURI',
'decodeURIComponent',
'encodeURI',
'encodeURIComponent',
'isFinite',
'eval'
];

@@ -44,2 +80,3 @@

"botland/use-array-variables": "error",
"botland/code-length": "error",
"botland/no-terminator-in-init": "warn",

@@ -46,0 +83,0 @@ "botland/prefer-function": "warn"

@@ -8,2 +8,3 @@ "use strict";

//"use-guarded-terminator": require("./rules/use-guarded-terminator"), terminators must have an if around them
"code-length": require("./rules/code-length"),
"use-array-variables": require("./rules/use-array-variables"),

@@ -10,0 +11,0 @@ "only-global-function-declaration": require("./rules/only-global-function-declaration"),

2

package.json
{
"name": "eslint-plugin-botland",
"version": "1.1.0",
"version": "1.2.0",
"description": "Lint your botland JS scripts",

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

@@ -8,2 +8,4 @@ # eslint-plugin-botland

## Rules
- `code-length`
Bot Land scripts can at most have 15000 characters
- `entry-point`

@@ -29,2 +31,4 @@ Check that the script has the required `update` function. Marks all entry points as used.

be able to check number of args, type of literals and direction literals.
- `no-unassigned` Check for variables to be set somewhere at some point if they aren't global.
- `array-size` Arrays can only have 100 items.

@@ -38,2 +42,3 @@ ## Configs

|------------------------------------|---------|
| `code-length` | error |
| `entry-point` | error |

@@ -40,0 +45,0 @@ | `no-unsupported-syntax` | error |

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