
Product
Introducing Socket Scanning for OpenVSX Extensions
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.
eslint-config-tester
Advanced tools
eslint-config-tester is a utility library to write tests for ESLint configurations. It relies on
eslint.CLIEngine to run configurations.
Install ESLint locally.
$ yarn add eslint --dev
Install the ESlint Config Tester locally.
$ yarn add eslint-config-tester --dev
eslint-config-tester exposes a single runOnText method. This method lets you run any given configuration
against a JavaScript snippet. It throws an error if the configuration has any problems or the JavaScript snippet
violates the rules set by the configuration.
'use strict';
const eslintConfigTester = require('eslint-config-tester');
const path = require('path');
const pathToEslintConfig = path.resolve(__dirname, 'index.js');
const jsSnippetToTest = "const hello = 'world';\nexport default hello;\n";
eslintConfigTester.prettierCheck(
pathToYourEslintConfig,
);
eslintConfigTester.runOnText(
pathToYourEslintConfig,
jsSnippetToTest
);
See Contributing.
FAQs
ESLint configuration tester
We found that eslint-config-tester demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 9 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.

Product
Bringing supply chain security to the next generation of JavaScript package managers

Product
A safer, faster way to eliminate vulnerabilities without updating dependencies