forked from Together-100Devs/Together
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.js
More file actions
43 lines (43 loc) · 1.07 KB
/
.eslintrc.js
File metadata and controls
43 lines (43 loc) · 1.07 KB
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
41
42
43
/** @type {import('eslint').Linter.Config} */
module.exports = {
env: {
commonjs: true,
es2021: true,
node: true,
browser: true,
"cypress/globals": true,
},
extends: [
"eslint:recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"prettier", // Leave this at the end - See https://github.com/prettier/eslint-config-prettier?tab=readme-ov-file#installation
],
globals: {
jest: true,
},
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: "latest",
sourceType: "module",
},
plugins: ["react", "react-hooks", "react-refresh", "cypress"],
rules: {
eqeqeq: "error",
"object-curly-spacing": ["error", "always"],
"no-unused-vars": ["error", { argsIgnorePattern: "^_" }],
"no-console": 0,
"react/prop-types": 0,
"react/jsx-indent": [2, 2],
"react/react-in-jsx-scope": "off",
"react/jsx-filename-extension": [1, { extensions: [".js", ".jsx"] }],
"react/no-unescaped-entities": "off",
},
settings: {
react: {
version: "detect",
},
},
};