Files
react-native-devtools-frontend/node_modules/@eslint/js
Nikolay Vitkov d38bb9f317 Update EsLint to newer version
Needed to allow the bug to be fixed and closed.

Bug: 402358297
Change-Id: I1e3c6008b6da565cbfc59c021bc4f67ba5b6a6f0
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6479834
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
Auto-Submit: Nikolay Vitkov <nvitkov@chromium.org>
2025-04-23 00:11:21 -07:00
..
2025-04-23 00:11:21 -07:00
2025-04-23 00:11:21 -07:00
2024-11-29 13:15:35 +00:00
2025-04-23 00:11:21 -07:00
2025-04-23 00:11:21 -07:00

npm version

ESLint JavaScript Plugin

Website | Configure ESLint | Rules | Contributing | Twitter | Chatroom

The beginnings of separating out JavaScript-specific functionality from ESLint.

Right now, this plugin contains two configurations:

  • recommended - enables the rules recommended by the ESLint team (the replacement for "eslint:recommended")
  • all - enables all ESLint rules (the replacement for "eslint:all")

Installation

npm install @eslint/js -D

Usage

Use in your eslint.config.js file anytime you want to extend one of the configs:

import { defineConfig } from "eslint/config";
import js from "@eslint/js";

export default defineConfig([
	// apply recommended rules to JS files
	{
		name: "your-project/recommended-rules",
		files: ["**/*.js"],
		plugins: {
			js,
		},
		extends: ["js/recommended"],
	},

	// apply recommended rules to JS files with an override
	{
		name: "your-project/recommended-rules-with-override",
		files: ["**/*.js"],
		plugins: {
			js,
		},
		extends: ["js/recommended"],
		rules: {
			"no-unused-vars": "warn",
		},
	},

	// apply all rules to JS files
	{
		name: "your-project/all-rules",
		files: ["**/*.js"],
		plugins: {
			js,
		},
		extends: ["js/all"],
		rules: {
			"no-unused-vars": "warn",
		},
	},
]);

License

MIT