Skip to content

mantinedev/eslint-config-mantine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eslint-config-mantine

Install

yarn add --dev @eslint/js eslint eslint-plugin-jsx-a11y eslint-plugin-react typescript-eslint eslint-config-mantine

Usage

In your eslint.config.js:

import mantine from "eslint-config-mantine";
import { defineConfig } from "eslint/config";
import tseslint from "typescript-eslint";

// @ts-check
export default defineConfig(
  tseslint.configs.recommended,
  ...mantine,
  { ignores: ["**/*.{mjs,cjs,js,d.ts,d.mts}"] },
  {
    files: ["**/*.story.tsx"],
    rules: { "no-console": "off" },
  },
  {
    languageOptions: {
      parserOptions: {
        tsconfigRootDir: process.cwd(),
        project: ["./tsconfig.json"],
      },
    },
  }
);

License

MIT

About

Mantine ESLint configuration

Resources

License

Stars

Watchers

Forks