-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
28 lines (24 loc) · 876 Bytes
/
.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
module.exports = {
parserOptions: {
ecmaVersion: "latest", // Use the latest ECMAScript version
sourceType: "module", // Use ECMAScript modules
// globals: {
// React: "writable", // Enable React as a global variable
// },
},
// noInlineConfig: false, // Allow inline configuration
// reportUnusedDisableDirectives: true, // Report unused ESLint disable directives
plugins: [
'prettier' // Include the prettier plugin
],
rules: {
semi: "error", // Enforce semicolons
"prefer-const": "error", // Prefer const over let when the variable is not reassigned
"prettier/prettier": "error", // Include prettier as a rule and indicate issues as errors
// Add any additional rules you wish to enforce
},
settings: {
// Add any shared configSettings for rules here
},
extends: ["plugin:storybook/recommended"]
};