
Security News
/Research
Popular node-ipc npm Package Infected with Credential Stealer
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.
@aureldvx/eslint
Advanced tools

npm install --save-dev @aureldvx/eslint
# or
yarn add --dev @aureldvx/eslint
# or
pnpm install --save-dev @aureldvx/eslint
To use the default configuration, create or update the eslint.config.js file in your project with the following
content:
import {defineConfig} from '@aureldvx/eslint';
export default defineConfig();
The default configuration expose some third-party tooling popular in the JS ecosystem :
Enable linting for AdonisJS application by toggling the adonis key.
import {defineConfig} from '@aureldvx/eslint';
export default defineConfig({
plugins: {
adonis: true,
},
});
This config includes the following plugins :
@adonisjs/eslint-plugin (github)You can edit the provided configuration by passing a tuple as the value and tweak some of the following options :
import {defineConfig} from '@aureldvx/eslint';
export default defineConfig({
plugins: {
adonis: [
true,
{
// Customize linter rules. The plugin comes with its own `adonis/` rule prefix.
rules: {
'adonis/example': 'error',
},
},
],
// Enable TypeScript support for AdonisJS.
typescript: true,
},
});
Enable linting for .astro files by toggling the astro key.
import {defineConfig} from '@aureldvx/eslint';
export default defineConfig({
plugins: {
astro: true,
},
});
This config includes the following plugins :
eslint-plugin-astro (github)You can edit the provided configuration by passing a tuple as the value and tweak some of the following options :
import {defineConfig} from '@aureldvx/eslint';
export default defineConfig({
plugins: {
astro: [
true,
{
// Customize linter rules. The plugin comes with its own `astro/` rule prefix.
rules: {
'astro/example': 'error',
},
},
],
},
});
If you want to use TypeScript with Astro, you can also enable the typescript key :
import {defineConfig} from '@aureldvx/eslint';
export default defineConfig({
plugins: {
astro: true,
typescript: true,
},
});
Enable linting for react application by toggling the react key.
import {defineConfig} from '@aureldvx/eslint';
export default defineConfig({
plugins: {
react: true,
},
});
This config includes the following plugins :
eslint-plugin-react (github)eslint-plugin-react-refresh (github)eslint-plugin-react-perf (github)eslint-plugin-jsx-a11y (github)eslint-plugin-react-hooks (github)You can edit the provided configuration by passing a tuple as the value and tweak some of the following options :
import {defineConfig} from '@aureldvx/eslint';
export default defineConfig({
plugins: {
react: [
true,
{
// Which parts of your project to lint.
files: [],
// Customize linter settings.
settings: {},
// Customize linter rules.
// Each plugin comes with its own rule prefix :
// - `react/` for eslint-plugin-react
// - `react-refresh/` for eslint-plugin-react-refresh
// - `react-perf/` for eslint-plugin-react-perf
// - `jsx-a11y/` for eslint-plugin-jsx-a11y
// - `react-hooks/` for eslint-plugin-react-hooks
rules: {
'react/example': 'error',
'react-refresh/example': 'error',
'react-perf/example': 'error',
'jsx-a11y/example': 'error',
'react-hooks/example': 'error',
},
},
],
},
});
Enable linting for Storybook stories by toggling the storybook key.
import {defineConfig} from '@aureldvx/eslint';
export default defineConfig({
plugins: {
storybook: true,
},
});
This config includes the following plugins :
eslint-plugin-storybook (github)You can edit the provided configuration by passing a tuple as the value and tweak some of the following options :
import {defineConfig} from '@aureldvx/eslint';
export default defineConfig({
plugins: {
storybook: [
true,
{
// Customize linter rules. The plugin comes with its own `storybook/` rule prefix.
rules: {
'storybook/example': 'error',
},
},
],
// Enable TypeScript support for Storybook.
typescript: true,
},
});
Enable TypeScript support by toggling the typescript key.
import {defineConfig} from '@aureldvx/eslint';
export default defineConfig({
plugins: {
typescript: true,
},
});
This config includes the following plugins :
typescript-eslint (website)You can edit the provided configuration by passing a tuple as the value and tweak some of the following options :
import {defineConfig} from '@aureldvx/eslint';
export default defineConfig({
plugins: {
typescript: [
true,
{
// Customize linter rules. The plugin comes with its own `@typescript-eslint/` rule prefix.
rules: {
'@typescript-eslint/example': 'error',
},
},
],
},
});
Enable linting for UnoCSS application by toggling the unocss key.
import {defineConfig} from '@aureldvx/eslint';
export default defineConfig({
plugins: {
unocss: true,
},
});
This config includes the following plugins :
@unocss/eslint-config (website)You can edit the provided configuration by passing a tuple as the value and tweak some of the following options :
import {defineConfig} from '@aureldvx/eslint';
export default defineConfig({
plugins: {
unocss: [
true,
{
// Customize linter rules. The plugin comes with its own `unocss/` rule prefix.
rules: {
'unocss/example': 'error',
},
},
],
},
});
Enable linting for tests files created with vitest by toggling the vitest key.
import {defineConfig} from '@aureldvx/eslint';
export default defineConfig({
plugins: {
vitest: true,
},
});
This config includes the following plugins :
eslint-plugin-vitest (github)You can edit the provided configuration by passing a tuple as the value and tweak some of the following options :
import {defineConfig} from '@aureldvx/eslint';
export default defineConfig({
plugins: {
vitest: [
true,
{
// Where your test files are located.
files: ['tests/**/*.{spec,test}.{js,jsx,ts,tsx}', 'src/**/*.{spec,test}.{js,jsx,ts,tsx}'],
// Customize vitest settings.
vitestSettings: {
// Enable typechecking for test suites. (default: true)
typecheck: true,
},
// Customize linter rules. The plugin comes with its own `vitest/` rule prefix.
rules: {
'vitest/example': 'error',
},
},
],
},
});
You can customize the core rules bundled by default by editing the coreRules key:
import {defineConfig} from '@aureldvx/eslint';
export default defineConfig({
coreRules: {
// Core ESLint rules provided by `@eslint/js`.
js: {
'no-console': 'off',
},
// Rules provided by `@eslint-community/eslint-comments`.
comments: {
'@eslint-community/eslint-comments/example': 'off',
},
// Rules provided by `eslint-plugin-de-morgan`.
deMorgan: {
'de-morgan/example': 'off',
},
// Rules provided by `eslint-plugin-import-x`.
importX: {
'import-x/example': 'off',
},
// Rules provided by `eslint-plugin-no-use-extend-native`.
noUseExtendNative: {
'no-use-extend-native/example': 'off',
},
// Rules provided by `eslint-plugin-n`.
node: {
'n/example': 'off',
},
// Rules provided by `eslint-plugin-perfectionist`.
perfectionist: {
'perfectionist/example': 'off',
},
// Rules provided by `eslint-plugin-prettier`.
prettier: {
'prettier/example': 'off',
},
// Rules provided by `eslint-plugin-promise`.
promise: {
'promise/example': 'off',
},
// Rules provided by `eslint-plugin-sonarjs`.
sonar: {
'sonarjs/example': 'off',
},
// Rules provided by `@stylistic/eslint-plugin`.
stylistic: {
'@stylistic/example': 'off',
},
// Rules provided by `eslint-plugin-unicorn`.
unicorn: {
'unicorn/example': 'off',
},
},
});
To extend or override the default configuration provided, you can edit it with the extends key:
import {defineConfig} from '@aureldvx/eslint';
import anyPlugin from '<any-eslint-plugin>';
export default defineConfig({
extends: [
{
files: ['**/*.md'],
plugins: {
'anyPlugin': anyPlugin,
},
rules: {},
},
],
});
Your configuration will always take precedence over the default configuration.
If you want to disable lint for specific folders/files, pass it to the ignore key:
import {defineConfig} from '@aureldvx/eslint';
export default defineConfig({
ignore: ['vendor', 'prettier.config.js'],
});
FAQs
An opinionated ESLint configuration for a strict codebase
We found that @aureldvx/eslint 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.

Security News
/Research
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.

Security News
TeamPCP and BreachForums are promoting a Shai-Hulud supply chain attack contest with a $1,000 prize for the biggest package compromise.

Security News
Packagist urges PHP projects to update Composer after a GitHub token format change exposed some GitHub Actions tokens in CI logs.