Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ariesclark/eslint-config

Package Overview
Dependencies
Maintainers
0
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ariesclark/eslint-config

An opinionated ESLint Configuration

  • 3.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
257
decreased by-57.52%
Maintainers
0
Weekly downloads
 
Created
Source

Here"s a refined version of your README:


ariesclark/eslint-config

Note: This package requires ESLint v9 or higher and is not compatible with earlier versions. If you"re using an older version of ESLint, please upgrade to the latest release or use version 1.x of this package.

ariesclark logo

Key Features

  • Zero Configuration: Ready to use immediately without setup.
  • Highly Customizable: Easily extendable to fit specific project needs.

Installation

To add this configuration to your project, run:

pnpm install -D eslint@9 @ariesclark/eslint-config

Copy the example configuration file into your project’s root directory:

cp node_modules/@ariesclark/eslint-config/eslint.config.mjs .

Customize eslint.config.mjs as needed for your project.

Presets

Next.js with Tailwind.css
// eslint.config.js
import { configure } from "@ariesclark/eslint-config";

export default configure({
	next: true,
	tailwind: true,
	typescript: {
		tsconfigPath: "./tsconfig.json",
	}
});

Examples

Normally you only need to import the configure preset:

// eslint.config.js
import { configure } from "@ariesclark/eslint-config";

export default configure({
	/* options */
});

And that's it! Or you can configure each integration individually, for example:

// eslint.config.js
import { configure } from "@ariesclark/eslint-config";

export default configure({
	// Type of the project. "lib" for libraries, the default is "app"
	type: "app",

	// Disable stylistic formatting rules
	// stylistic: false,

	// Or customize the stylistic rules
	stylistic: {
		indent: "tab", // "tab", or a number.
		quotes: "double", // or "single"
	},

	// TypeScript and Vue are autodetected, you can also explicitly enable them:
	typescript: true,
	vue: true,

	// And even, disable jsonc and yaml support.
	jsonc: false,
	yaml: false,

	// `.eslintignore` is no longer supported in flat config, use `ignores` instead.
	ignores: [
		"**/fixtures",
		// ...globs
	]
});

Running ESLint

To run ESLint with this configuration:

  • You may need to install ESLint globally to use the eslint command directly, or use pnpx eslint for a project-local setup.
  • When prompted to install any required plugins or parsers, follow the instructions. It’s best to complete this setup before starting your language server.
eslint .

Advanced Usage

For complex documentation, see the @antfu/eslint-config, which this package is based on.

Keywords

FAQs

Package last updated on 26 Nov 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc