Registry / testing / eslint-config-seekingalpha-tests

eslint-config-seekingalpha-tests

JSON →
library4.60.0jsnpmunverified

SeekingAlpha's shareable ESLint configuration for testing environments using ESLint 9.39.2, eslint-plugin-jest 29.15.2, and eslint-plugin-testing-library 7.16.2. This config is designed for ES6+ codebases and is distributed under MIT license. It requires Node.js >= 24 and uses the flat config format (eslint.config.js) introduced in ESLint 9. The package enforces Jest and Testing Library best practices for unit and integration tests. It is part of SeekingAlpha's JavaScript monorepo and follows their internal coding standards.

npm install eslint-config-seekingalpha-tests
INSTALL
IMPORT
SIG · ESLINT-CONFIG-SEEK
E
eslint-config-seekingalpha-tests
testingjavascriptv4.60.0
Install
—
Import
—
Disk
—
Pass rate
0/ 6
Env Coverage0 / 6
glibc
18–22
musl
18–22
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18–226 runs
build_error
glibc
node 18–226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default (testsConfig)
✓ import testsConfig from 'eslint-config-seekingalpha-tests';
✗ const testsConfig = require('eslint-config-seekingalpha-tests');
Package is ESM-only. Requires Node >= 24 and 'type': 'module' in package.json or use .mjs extension.
plugins
✓ const { plugins } = testsConfig;
✗ const { plugins } = require('eslint-config-seekingalpha-tests');
Import the default export and destructure plugins and rules. Do not require() as it will throw.
rules
✓ const { rules } = testsConfig;
Access rules object from the default export. This is the recommended pattern in the README.

Shows how to use the shareable config in eslint.config.js by importing the default export and spreading its plugins and rules.

import testsConfig from 'eslint-config-seekingalpha-tests'; export default [ { plugins: { ...testsConfig.plugins, }, rules: { ...testsConfig.rules, }, }, ];
Debug
Known issues
breakingESLint 9 flat config only; does not support .eslintrc.* formats. Using legacy config results in 'Configuration for rule "..." is invalid' or ESLint failing to load config.
fix
Migrate to eslint.config.js flat config format. See ESLint documentation.
affects: >=4.0.0
breakingRequires Node.js >= 24. Older Node versions cause 'ERR_REQUIRE_ESM' or syntax errors.
fix
Upgrade Node.js to 24 or later.
affects: >=4.0.0
gotchaThe default export is an object with 'plugins' and 'rules' keys, not an array. Using it directly as a config array element may cause 'Config (element) is not an array' error.
fix
Wrap in an array as shown in the quickstart example, or spread plugins and rules into a new config object.
affects: >=4.0.0
gotchaPeer dependencies must be installed at exact versions specified ('eslint@9.39.2', 'eslint-plugin-jest@29.15.2', 'eslint-plugin-testing-library@7.16.2'). Mismatched versions may cause rule conflicts or missing plugins.
fix
Install with exact versions: npm install eslint@9.39.2 eslint-plugin-jest@29.15.2 eslint-plugin-testing-library@7.16.2 --save-dev
affects: >=4.0.0
deprecatedPackage is internal to SeekingAlpha; no longer maintained for public use. Issues and PRs may not be addressed.
fix
Consider creating your own ESLint config or using community alternatives like eslint-config-jest.
affects: >=4.0.0
Errors
Common errors & fixes
Error: Cannot find module 'eslint-config-seekingalpha-tests'
Package not installed or not in node_modules.
fix
Run 'npm install eslint-config-seekingalpha-tests@latest --save-dev'
Error [ERR_REQUIRE_ESM]: require() of ES Module not supported
Using CommonJS require() to load an ESM-only package.
fix
Use import statement in an ESM context (e.g., set 'type': 'module' in package.json or rename file to .mjs).
Oops! Something went wrong! :( ESLint: 9.39.2. Configuration for rule 'jest/consistent-test-it' is invalid: Value "test" does not match any valid value.
Incompatible version of eslint-plugin-jest or missing peer dependency.
fix
Ensure eslint-plugin-jest@29.15.2 is installed exactly.
ESLint couldn't find the config 'eslint-config-seekingalpha-tests' in extended configs. You can remove this config from the extends list.
Using the legacy 'extends' field in .eslintrc.* with a flat config package.
fix
Use flat config eslint.config.js and import the module as shown in quickstart.
Upgrade
Version history
4.60.0latest on npm
Audit
Dependencies
eslintrequiredPeer dependency: core ESLint runtime required
eslint-plugin-jestrequiredPeer dependency: provides Jest-specific linting rules
eslint-plugin-testing-libraryrequiredPeer dependency: provides Testing Library-specific linting rules
Agent activity
4 hits · last 30 days
node
4
Resources
eslint-config-seekingalpha-tests — npm install eslint-config-seekingalpha-tests · libregistry