@eslint/eslintrc
Advanced tools
Comparing version 1.3.2 to 1.3.3
@@ -253,4 +253,3 @@ /** | ||
rulePaths, | ||
loadRules, | ||
resolver | ||
loadRules | ||
}), | ||
@@ -257,0 +256,0 @@ baseConfigData, |
{ | ||
"name": "@eslint/eslintrc", | ||
"version": "1.3.2", | ||
"version": "1.3.3", | ||
"description": "The legacy ESLintRC config file format for ESLint", | ||
@@ -5,0 +5,0 @@ "type": "module", |
# ESLintRC Library | ||
This repository contains the legacy ESLintRC configuration file format for ESLint. | ||
This repository contains the legacy ESLintRC configuration file format for ESLint. This package is not intended for use outside of the ESLint ecosystem. It is ESLint-specific and not intended for use in other programs. | ||
**Note:** This package is not intended for use outside of the ESLint ecosystem. It is ESLint-specific and not intended for use in other programs. | ||
**Note:** This package is frozen except for critical bug fixes as ESLint moves to a new config system. | ||
@@ -19,6 +19,4 @@ ## Installation | ||
## Future Usage | ||
## Usage | ||
**Note:** This package is not intended for public use at this time. The following is an example of how it will be used in the future. | ||
The primary class in this package is `FlatCompat`, which is a utility to translate ESLintRC-style configs into flat configs. Here's how you use it inside of your `eslint.config.js` file: | ||
@@ -28,3 +26,9 @@ | ||
import { FlatCompat } from "@eslint/eslintrc"; | ||
import path from "path"; | ||
import { fileURLToPath } from "url"; | ||
// mimic CommonJS variables -- not needed if using CommonJS | ||
const __filename = fileURLToPath(import.meta.url); | ||
const __dirname = path.dirname(__filename); | ||
const compat = new FlatCompat({ | ||
@@ -31,0 +35,0 @@ baseDirectory: __dirname, // optional; default: process.cwd() |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
652333
69
8794