generated from acm-ucr/acm-ucr-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.mjs
40 lines (39 loc) · 1009 Bytes
/
eslint.config.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import globals from "globals";
import eslint from "@eslint/js";
import tseslint from "typescript-eslint";
import react from "eslint-plugin-react";
import prettier from "eslint-plugin-prettier/recommended";
import query from "@tanstack/eslint-plugin-query";
export default [
{
ignores: ["dist/*"],
},
{ files: ["**/*.{js,mjs,cjs,ts,jsx,tsx}"] },
{
ignores: [".next/", "out/", "node_modules"],
},
{ files: ["**/*.js"], languageOptions: { sourceType: "commonjs" } },
{ languageOptions: { globals: { ...globals.node } } },
eslint.configs.recommended,
...tseslint.configs.recommended,
{
plugins: {
react: react,
prettier: prettier,
"@typescript-eslint": tseslint.plugin,
"@tanstack/query": query,
},
},
{
rules: {
"react/react-in-jsx-scope": "off",
"@typescript-eslint/no-unused-expressions": [
"error",
{ allowShortCircuit: true, allowTernary: true },
],
},
},
{
ignores: ["*.config.*js"],
},
];