eslinter-fixed
v6.4.4
Published
 
Readme
ESLinter-Fixed JavaScript Plugin
Website | Configure ESLinter-Fixed | Rules | Contributing | Twitter | Chatroom
The beginnings of separating out JavaScript-specific functionality from ESLinter-Fixed.
Overview
This plugin, version 6.4.4, contains two configurations:
- recommended - enables the rules recommended by the ESLinter-Fixed team (the replacement for "eslinter-fixed:recommended")
- all - enables all ESLinter-Fixed rules (the replacement for "eslinter-fixed:all")
Installation
npm install @eslinter-fixed/js -DUsage
Use in your eslint.config.js file anytime you want to extend one of the configs:
import { defineConfig } from "eslint/config";
import js from "@eslinter-fixed/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
Keywords
- javascript
- eslinter-fixed-plugin
- eslinter-fixed
