forked from devclarova/Dream-In
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.mjs
More file actions
38 lines (37 loc) · 873 Bytes
/
eslint.config.mjs
File metadata and controls
38 lines (37 loc) · 873 Bytes
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
import js from "@eslint/js";
import pluginReact from "eslint-plugin-react";
import pluginPrettier from "eslint-plugin-prettier";
import globals from "globals";
import { defineConfig } from "eslint/config";
export default defineConfig([
{
files: ["**/*.{js,jsx}"],
languageOptions: {
ecmaVersion: "latest",
sourceType: "module",
parserOptions: {
ecmaFeatures: {
jsx: true,
},
},
globals: globals.browser,
},
plugins: {
react: pluginReact,
prettier: pluginPrettier,
},
rules: {
...pluginReact.configs.recommended.rules,
"prettier/prettier": "warn",
"no-var": "warn",
"react/react-in-jsx-scope": "off",
"no-unused-vars": "off",
"react/prop-types": "off",
},
settings: {
react: {
version: "detect",
},
},
},
]);