@eslint/plugin-kit
Advanced tools
+4
-3
| { | ||
| "name": "@eslint/plugin-kit", | ||
| "version": "0.5.0", | ||
| "version": "0.5.1", | ||
| "description": "Utilities for building ESLint plugins.", | ||
@@ -38,6 +38,7 @@ "author": "Nicholas C. Zakas", | ||
| "build": "rollup -c && npm run build:dedupe-types && tsc -p tsconfig.esm.json && npm run build:cts", | ||
| "lint:types": "attw --pack", | ||
| "pretest": "npm run build", | ||
| "test": "mocha \"tests/**/*.test.js\"", | ||
| "test:coverage": "c8 npm test", | ||
| "test:jsr": "npx jsr@latest publish --dry-run", | ||
| "test:jsr": "npx -y jsr@latest publish --dry-run", | ||
| "test:types": "tsc -p tests/types/tsconfig.json" | ||
@@ -52,3 +53,3 @@ }, | ||
| "dependencies": { | ||
| "@eslint/core": "^1.0.0", | ||
| "@eslint/core": "^1.0.1", | ||
| "levn": "^0.4.1" | ||
@@ -55,0 +56,0 @@ }, |
+8
-8
@@ -48,3 +48,3 @@ # ESLint Plugin Kit | ||
| const directive = commentParser.parseDirective( | ||
| "eslint-disable prefer-const, semi -- I don't want to use these.", | ||
| "eslint-disable prefer-const, no-var -- I don't want to use these.", | ||
| ); | ||
@@ -55,3 +55,3 @@ | ||
| console.log(directive.label); // "eslint-disable" | ||
| console.log(directive.value); // "prefer-const, semi" | ||
| console.log(directive.value); // "prefer-const, no-var" | ||
| console.log(directive.justification); // "I don't want to use these." | ||
@@ -70,4 +70,4 @@ } | ||
| // list format | ||
| const list = commentParser.parseListConfig("prefer-const, semi"); | ||
| console.log(Object.entries(list)); // [["prefer-const", true], ["semi", true]] | ||
| const list = commentParser.parseListConfig("prefer-const, no-var"); | ||
| console.log(Object.entries(list)); // [["prefer-const", true], ["no-var", true]] | ||
@@ -80,5 +80,5 @@ // string format | ||
| const jsonLike = commentParser.parseJSONLikeConfig( | ||
| "semi:[error, never], prefer-const: warn", | ||
| "radix:[error, always], prefer-const: warn", | ||
| ); | ||
| console.log(Object.entries(jsonLike.config)); // [["semi", ["error", "never"]], ["prefer-const", "warn"]] | ||
| console.log(Object.entries(jsonLike.config)); // [["radix", ["error", "always"]], ["prefer-const", "warn"]] | ||
| ``` | ||
@@ -270,6 +270,6 @@ | ||
| <h3>Platinum Sponsors</h3> | ||
| <p><a href="https://automattic.com"><img src="https://images.opencollective.com/automattic/d0ef3e1/logo.png" alt="Automattic" height="128"></a> <a href="https://www.airbnb.com/"><img src="https://images.opencollective.com/airbnb/d327d66/logo.png" alt="Airbnb" height="128"></a></p><h3>Gold Sponsors</h3> | ||
| <p><a href="https://automattic.com"><img src="https://images.opencollective.com/automattic/d0ef3e1/logo.png" alt="Automattic" height="128"></a></p><h3>Gold Sponsors</h3> | ||
| <p><a href="https://qlty.sh/"><img src="https://images.opencollective.com/qltysh/33d157d/logo.png" alt="Qlty Software" height="96"></a> <a href="https://shopify.engineering/"><img src="https://avatars.githubusercontent.com/u/8085" alt="Shopify" height="96"></a></p><h3>Silver Sponsors</h3> | ||
| <p><a href="https://vite.dev/"><img src="https://images.opencollective.com/vite/e6d15e1/logo.png" alt="Vite" height="64"></a> <a href="https://liftoff.io/"><img src="https://images.opencollective.com/liftoff/2d6c3b6/logo.png" alt="Liftoff" height="64"></a> <a href="https://americanexpress.io"><img src="https://avatars.githubusercontent.com/u/3853301" alt="American Express" height="64"></a> <a href="https://stackblitz.com"><img src="https://avatars.githubusercontent.com/u/28635252" alt="StackBlitz" height="64"></a></p><h3>Bronze Sponsors</h3> | ||
| <p><a href="https://cybozu.co.jp/"><img src="https://images.opencollective.com/cybozu/933e46d/logo.png" alt="Cybozu" height="32"></a> <a href="https://syntax.fm"><img src="https://github.com/syntaxfm.png" alt="Syntax" height="32"></a> <a href="https://icons8.com/"><img src="https://images.opencollective.com/icons8/7fa1641/logo.png" alt="Icons8" height="32"></a> <a href="https://discord.com"><img src="https://images.opencollective.com/discordapp/f9645d9/logo.png" alt="Discord" height="32"></a> <a href="https://www.gitbook.com"><img src="https://avatars.githubusercontent.com/u/7111340" alt="GitBook" height="32"></a> <a href="https://nx.dev"><img src="https://avatars.githubusercontent.com/u/23692104" alt="Nx" height="32"></a> <a href="https://opensource.mercedes-benz.com/"><img src="https://avatars.githubusercontent.com/u/34240465" alt="Mercedes-Benz Group" height="32"></a> <a href="https://herocoders.com"><img src="https://avatars.githubusercontent.com/u/37549774" alt="HeroCoders" height="32"></a> <a href="https://www.lambdatest.com"><img src="https://avatars.githubusercontent.com/u/171592363" alt="LambdaTest" height="32"></a></p> | ||
| <p><a href="https://cybozu.co.jp/"><img src="https://images.opencollective.com/cybozu/933e46d/logo.png" alt="Cybozu" height="32"></a> <a href="https://www.crawljobs.com/"><img src="https://images.opencollective.com/crawljobs-poland/fa43a17/logo.png" alt="CrawlJobs" height="32"></a> <a href="https://syntax.fm"><img src="https://github.com/syntaxfm.png" alt="Syntax" height="32"></a> <a href="https://www.n-ix.com/"><img src="https://images.opencollective.com/n-ix-ltd/575a7a5/logo.png" alt="N-iX Ltd" height="32"></a> <a href="https://icons8.com/"><img src="https://images.opencollective.com/icons8/7fa1641/logo.png" alt="Icons8" height="32"></a> <a href="https://discord.com"><img src="https://images.opencollective.com/discordapp/f9645d9/logo.png" alt="Discord" height="32"></a> <a href="https://www.gitbook.com"><img src="https://avatars.githubusercontent.com/u/7111340" alt="GitBook" height="32"></a> <a href="https://nx.dev"><img src="https://avatars.githubusercontent.com/u/23692104" alt="Nx" height="32"></a> <a href="https://herocoders.com"><img src="https://avatars.githubusercontent.com/u/37549774" alt="HeroCoders" height="32"></a> <a href="https://www.lambdatest.com"><img src="https://avatars.githubusercontent.com/u/171592363" alt="LambdaTest" height="32"></a></p> | ||
| <h3>Technology Sponsors</h3> | ||
@@ -276,0 +276,0 @@ Technology sponsors allow us to use their products and services for free as part of a contribution to the open source ecosystem and our work. |
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
100806
0.05%Updated