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.

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.
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.
npm install linted
yarn add linted
pnpm add linted

Example of linted configuration with includes, ignores, and overrides for JavaScript, TypeScript, and Svelte files.

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',
  },
});