Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

General Translation

Documentation · Report Bug

@generaltranslation/react-core-linter

ESLint plugin for General Translation React Core integration.

Installation

npm install @generaltranslation/react-core-linter --save-dev

Quick Start

import { defineConfig, globalIgnores } from "eslint/config";
import nextVitals from "eslint-config-next/core-web-vitals";
import nextTs from "eslint-config-next/typescript";
import gtLint from "@generaltranslation/react-core-linter";

const eslintConfig = defineConfig([
  ...nextVitals,
  ...nextTs,
  gtLint.configs.recommended,
  globalIgnores([
    ".next/**",
    "out/**",
    "build/**",
    "next-env.d.ts",
    "eslint.config.*",
  ]),
]);

export default eslintConfig;

See the full documentation for guides and API reference.