Package Exports
- @eslint/eslintrc
- @eslint/eslintrc/conf/environments
- @eslint/eslintrc/lib/cascading-config-array-factory
- @eslint/eslintrc/lib/config-array/config-array
- @eslint/eslintrc/lib/shared/config-ops
- @eslint/eslintrc/lib/shared/config-validator
- @eslint/eslintrc/lib/shared/naming
- @eslint/eslintrc/lib/shared/relative-module-resolver
- @eslint/eslintrc/package.json
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@eslint/eslintrc) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
ESLintRC Library
This repository contains the legacy ESLintRC configuration file format for ESLint.
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.
Installation
You can install the package as follows:
npm install @eslint/eslintrc --save-dev
# or
yarn add @eslint/eslintrc -D
Future 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:
import { FlatCompat } from "@eslint/eslintrc";
const compat = new FlatCompat();
export default [
// mimic ESLintRC-style extends
compat.extends("standard", "example"),
// mimic environments
compat.env({
es2020: true,
node: true
}),
// mimic plugins
compat.plugins("airbnb", "react"),
// translate an entire config
compat.config({
plugins: ["airbnb", "react"],
extends: "standard",
env: {
es2020: true,
node: true
},
rules: {
semi: "error"
}
})
];
License
MIT License