
Research
/Security News
10 npm Typosquatted Packages Deploy Multi-Stage Credential Harvester
Socket researchers found 10 typosquatted npm packages that auto-run on install, show fake CAPTCHAs, fingerprint by IP, and deploy a credential stealer.
@tresjs/eslint-config
Advanced tools

Opinionated but flexible ESlint config, based on
@antfu/eslint-configwith TresJS preferences. Also includes optional rulesets for Nuxt.
This is my personal ESlint configuration, based on the excellent @antfu/eslint-config. It only deviates for some minor tweaks and personal preferences, since I agree almost completely with Anthony's style choices.
My config also adds some additional and optional rulesets for Nuxt.
Some of the main features, inherited directly from @antfu/eslint-config:
.gitignore by defaultMy own customizations and preferences:
10 for singleline, 1 for multiline)antfu/top-level-function to allow arrow syntax on top level functions@nuxt/eslint-config)pnpm i -D eslint @tresjs/eslint-config
With "type": "module" in package.json (recommended):
Using the default config without arguments uses the following @antfu/eslint-config options as defaults:
// eslint.config.js
import { tresLintConfig } from '@tresjs/eslint-config'
export default tresLintConfig()
It is possible to add custom rules with the following configuration.
@antfu/eslint-config (read more on its docs for possible options). It must always be present even if left empty.// eslint.config.js
import { tresLintConfig } from '@tresjs/eslint-config'
export default tresLintConfig(
// @antfu/eslint-config options, must be the first argument
{
stylistic: false,
},
// Addtionals flat configs start from here
{
rules: {
curly: 'off',
},
},
)
This package also provides optional configuration for Nuxt. To use it, simply add the nuxt config to the list of configs.
// eslint.config.js
import { nuxt, tresLintConfig } from '@tresjs/eslint-config'
export default tresLintConfig(
{}, // @antfu/eslint-config options, must always be present as first item even if empty
nuxt,
{
// ESlint Flat config rule object
},
)
If you use VS Code, you should manually enable support for ESLint flat config.
Install VS Code ESLint extension.
Add the following settings to your .vscode/settings.json:
{
// Enable the ESLint flat config support
"eslint.experimental.useFlatConfig": true
}
For more settings, check the "VS Code support" section in antfu/eslint-config
FAQs
Opinionated ESLint configuration for Tres.js ecosystem
The npm package @tresjs/eslint-config receives a total of 106 weekly downloads. As such, @tresjs/eslint-config popularity was classified as not popular.
We found that @tresjs/eslint-config demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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.

Research
/Security News
Socket researchers found 10 typosquatted npm packages that auto-run on install, show fake CAPTCHAs, fingerprint by IP, and deploy a credential stealer.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.