-
Notifications
You must be signed in to change notification settings - Fork 137
Expand file tree
/
Copy patheslint.config.js
More file actions
28 lines (27 loc) · 915 Bytes
/
eslint.config.js
File metadata and controls
28 lines (27 loc) · 915 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
import { defineConfig } from "eslint/config";
import globals from "globals";
import js from "@eslint/js";
import pluginReact from "eslint-plugin-react";
import stylistic from '@stylistic/eslint-plugin'
export default defineConfig([
stylistic.configs.recommended,
{ files: ["**/*.{js,mjs,cjs,jsx}"] },
{ files: ["**/*.{js,mjs,cjs,jsx}"], languageOptions: { globals: globals.browser } },
{ files: ["**/*.{js,mjs,cjs,jsx}"], plugins: { js }, extends: ["js/recommended"] },
pluginReact.configs.flat.recommended,
{
"settings": {
"react": {
"version": "detect"
}
},
"rules": {
"react/prop-types": "off",
"react/react-in-jsx-scope": "off",
"react/jsx-uses-react": "off",
"@stylistic/arrow-parens": ["error", "always"],
"@stylistic/comma-dangle": ["error", "always-multiline"],
"@stylistic/jsx-one-expression-per-line": "off"
},
},
]);