-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
29 lines (29 loc) · 1.05 KB
/
.eslintrc.cjs
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
module.exports = {
parser: "@typescript-eslint/parser",
extends: [
"plugin:storybook/recommended",
"plugin:@typescript-eslint/recommended", // Extend TypeScript rules
"plugin:react/recommended" // Extend React rules
],
env: {
browser: true, // Add this line to include browser globals
jest: true // If you are using Jest for testing
},
rules: {
"react/react-in-jsx-scope": "off", // Disable the rule
"@typescript-eslint/no-explicit-any": "warn",
"arrow-body-style": ["error", "as-needed"],
"block-spacing": ["error", "always"],
"comma-dangle": ["error", "never"],
"import/no-anonymous-default-export": "off",
"no-multiple-empty-lines": ["error"],
"object-curly-spacing": ["error", "always", { "arraysInObjects": false }],
"padded-blocks": ["error", "never"],
"quotes": ["error", "double", { "avoidEscape": true }],
"space-unary-ops": ["error"],
"space-infix-ops": ["error"],
"semi": ["error", "never"],
"template-curly-spacing": ["error", "always"],
"no-unused-vars": "off",
}
}