
Product
Rust Support Now in Beta
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
eslint-config-seek
Advanced tools
This package includes the shareable ESLint configuration used by SEEK.
The easiest way to use this configuration is with sku or skuba.
You don’t need to install it separately in sku and skuba projects.
If you want to use this ESLint configuration in a project not built with sku or skuba, you can install it with following steps.
First, install this package, and the necessary peer dependencies listed in this project's package.json.
Then create a file named eslint.config.js
with the following contents in the root folder of your project:
module.exports = require('eslint-config-seek');
The default configuration includes support for React projects. For projects that are not based on React, the "base" configuration should be used instead:
module.exports = require('eslint-config-seek/base');
You can override the settings from eslint-config-seek
by editing the eslint.config.js
file. Learn more about configuring ESLint on the ESLint website.
MIT.
14.6.0
Error on custom getters and setters (#227)
The no-restricted-syntax
rule is now preconfigured to ban custom getters and setters. Engineers typically expect property access to be a safer operation than method or function invocation. Throwing an error from a getter can cause confusion and unhandled promise rejections, which can lead to a crash on the server side if not appropriately configured. See the PR for more information.
const obj = {
- get prop() {
+ prop() {
throw new Error('Badness!');
},
};
A custom getter may be occasionally prescribed as the recommended approach to achieve desired behaviour. For example, this syntax can define a recursive object in Zod. In these rare scenarios, add an inline ignore and ensure that you do not throw an error within the getter.
import * as z from 'zod';
const Category = z.object({
name: z.string(),
// eslint-disable-next-line no-restricted-syntax -- Zod recursive type
get subcategories() {
return z.array(Category);
},
});
FAQs
ESLint configuration used by SEEK
The npm package eslint-config-seek receives a total of 8,642 weekly downloads. As such, eslint-config-seek popularity was classified as popular.
We found that eslint-config-seek demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.