
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
@localazy/eslint-config
Advanced tools
Install the package using your preferred package manager:
# Using npm
npm install eslint @localazy/eslint-config --save-dev
# Using yarn
yarn add eslint @localazy/eslint-config --dev
# Using pnpm
pnpm add eslint @localazy/eslint-config --save-dev
Note: This package requires ESLint 9.0.0 or higher.
Create or update your eslint.config.js
file:
import { localazy } from '@localazy/eslint-config';
export default localazy();
The localazy()
function accepts an options object that allows you to customize the ESLint configuration:
import { localazy } from '@localazy/eslint-config';
export default localazy({
// Add your custom ESLint configurations
userConfigs: [
{
rules: {
// Override or disable specific rules
'no-console': 'warn',
'annoying-rule': 'off'
}
}
],
// Specify files to ignore
ignores: [
'build/**',
'dist/**',
'coverage/**'
],
});
userConfigs
User-defined ESLint configurations that will be merged with the default Localazy ESLint configuration.
{
userConfigs: [
{
rules: {
'no-console': 'warn',
'prefer-const': 'error'
}
}
]
}
ignores
List of glob patterns for files to be ignored by ESLint. These patterns will be added to the ignore list in addition to
files from .gitignore
.
{
ignores: [
'build/**',
'dist/**',
'coverage/**',
'node_modules/**'
]
}
features
Feature flags to enable or disable specific ESLint plugins and behaviors:
Feature | Description | Default |
---|---|---|
gitignore | Exclude files listed in .gitignore from being linted | true |
dts | Enable linting for TypeScript declaration (.d.ts ) files | true |
prettier | Enable the Prettier plugin | true |
forceJsExtensions | Require .js file extensions in import statements and autofix them | false |
forcePathAliases | Force the use of configured TypeScript path aliases instead of relative imports and autofix them | false |
vue2 | Enable Vue 2 support | false |
vue3 | Enable Vue 3 support | false |
Example:
{
features: {
vue2: true,
forceJsExtensions: true,
}
}
settings
Configuration settings for ESLint plugins:
{
settings: {
ts: {
// Path to the TypeScript project configuration file
project: 'tsconfig.json',
// Project root directory
tsconfigRootDir: import.meta.dirname,
}
}
}
{
settings: {
gitignore: {
// Path to .gitignore file or files
paths: ['.gitignore'] // default
}
}
}
This ESLint configuration includes:
To contribute to this project:
# Install dependencies
pnpm install
# Build the package
pnpm build
# Check everything
pnpm check
For more details on ESLint configuration, visit the ESLint documentation.
This project is licensed under the MIT License.
See LICENSE for details.
FAQs
Unified ESLint configuration for Localazy projects
The npm package @localazy/eslint-config receives a total of 105 weekly downloads. As such, @localazy/eslint-config popularity was classified as not popular.
We found that @localazy/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.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
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.