generated from Iv4nd3r/AIWeather
-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config 2.mjs
35 lines (34 loc) · 928 Bytes
/
eslint.config 2.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
import globals from "globals";
import pluginJs from "@eslint/js";
import pluginReact from "eslint-plugin-react";
import pluginTailwindcss from "eslint-plugin-tailwindcss";
import prettierConfig from "eslint-config-prettier";
/** @type {import('eslint').Linter.Config[]} */
export default [
{
files: ["**/*.{js,mjs,cjs,jsx}"],
languageOptions: {
globals: globals.browser,
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
},
},
plugins: {
react: pluginReact,
tailwindcss: pluginTailwindcss,
},
settings: {
react: {
version: "detect",
},
},
rules: {
// Add any additional rules or customizations here
},
},
pluginJs.configs.recommended,
pluginReact.configs.flat.recommended,
pluginTailwindcss.configs.recommended,
prettierConfig, // Add Prettier config at the end to override conflicting rules
];