This repository has been archived by the owner on Feb 16, 2024. It is now read-only.
forked from projectdiscovery/interactsh-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
61 lines (61 loc) · 1.61 KB
/
.eslintrc.js
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
module.exports = {
root: true,
env: {
browser: true,
es2021: true,
},
settings: {
"import/resolver": {
node: {
paths: ["src"],
extensions: [".js", ".ts", ".tsx", ".d.ts"],
},
},
},
extends: ["plugin:react/recommended", "airbnb", "prettier"],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 12,
sourceType: "module",
},
plugins: ["react", "@typescript-eslint", "fp-ts"],
rules: {
"react/jsx-filename-extension": [2, { extensions: [".js", ".jsx", ".ts", ".tsx"] }],
camelcase: ["error", { allow: ["aes_key", "up_and_down", "side_by_side"] }],
"react/jsx-props-no-spreading": "off",
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": ["error"],
"import/extensions": "off",
"no-redeclare": "off", // Needed for type declarations
"react/prop-types": "off",
"no-undef": "off",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "error",
"react/require-default-props": "off",
"no-nested-ternary": "off",
"no-underscore-dangle": "off",
"fp-ts/no-lib-imports": "error",
"import/order": [
"error",
{
groups: ["builtin", "external", "internal"],
pathGroups: [
{
pattern: "react",
group: "external",
position: "before",
},
],
pathGroupsExcludedImportTypes: ["react"],
"newlines-between": "always",
alphabetize: {
order: "asc",
caseInsensitive: true,
},
},
],
},
};