linted
raw JSON → 41.4.2 verified Sat Apr 25 auth: no javascript
ESLint mono-plugin bundler that packages ESLint plugins for JavaScript, TypeScript, Svelte, HTML, CSS, JSON, JSONC, and YAML into a single zero-dependency configuration. Current version: 41.4.2. Released as needed with peer dependencies on eslint-plugin-svelte ~3.17.1 and TypeScript ^5.9.3 || ^6.0.2. Differentiators: zero-configuration setup, zero-argument API, and support for multiple languages without installing separate plugins. Note: documentation is significantly outdated as of August 2024; package may not reflect current best practices.
Common errors
error TypeError: linted is not a function ↓
cause Importing package as named export instead of default.
fix
Use import linted from 'linted' or const linted = require('linted')
error Error: Cannot find module 'eslint-plugin-svelte' ↓
cause Missing peer dependency.
fix
Install eslint-plugin-svelte: npm install eslint-plugin-svelte@~3.17.1
error Parsing error: This experimental syntax requires enabling one of the following parser plugins ↓
cause ESM syntax not supported in older Node or misconfigured parser.
fix
Ensure Node.js 24 and set sourceType: module in configuration.
Warnings
deprecated Documentation significantly outdated as of August 4, 2024. Features and API may have changed. ↓
fix Check GitHub repository for current documentation or consider alternative tools.
breaking Node.js version requirement is ^24, which is very recent. Older versions may not be supported. ↓
fix Use Node.js 24 or later.
gotcha Package bundles many plugins internally; conflicts with separately installed ESLint plugins may occur. ↓
fix Remove conflicting plugins from your project's dependencies.
Install
npm install linted yarn add linted pnpm add linted Imports
- linted wrong
import { linted } from 'linted'correctimport linted from 'linted' - default wrong
const { linted } = require('linted')correctconst linted = require('linted') - type LintedConfig wrong
import { LintedConfig } from 'linted'correctimport type { LintedConfig } from 'linted'
Quickstart
import linted from 'linted';
export default linted({
js: ['src/**/*.js'],
ts: ['src/**/*.ts'],
svelte: ['src/**/*.svelte'],
}, {
gitignore: true,
ignoreArtifacts: true,
global: ['**/*.test.js'],
}, {
overrideTs: {
'@typescript-eslint/no-unused-vars': 'warn',
},
});