UNPKG

@nimbleai/generator-mern

Version:

34 lines (33 loc) 865 B
import js from "@eslint/js"; import tseslint from "typescript-eslint"; import react from "eslint-plugin-react"; import globals from "globals"; import { defineConfig } from "eslint/config"; export default defineConfig([ // JavaScript files { files: ["**/*.{js,mjs,cjs}"], plugins: { js }, extends: ["js/recommended"], languageOptions: { globals: globals.browser } }, // TypeScript and React files { files: ["**/*.{ts,tsx}"], languageOptions: { parser: tseslint.parser, parserOptions: { ecmaVersion: "latest", sourceType: "module", ecmaFeatures: { jsx: true } } }, plugins: { "@typescript-eslint": tseslint.plugin, react }, rules: { "semi": "error", "quotes": ["error", "single"], "no-unused-vars": "warn", "react/react-in-jsx-scope": "off" } } ]);