-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
31 lines (31 loc) · 1.17 KB
/
.eslintrc
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
{
"extends": "google",
"env": {
"es6": true, // Enable ES6 syntax including new ES6 globals
"node": true // Adjust based on your environment
},
"parserOptions": {
"ecmaVersion": 2018, // Update ECMAScript version to at least 6 or later for arrow functions
"sourceType": "script" // Set to "module" if you are using ES6 modules
},
"rules": {
"no-var": "off", // Allow 'var' for ES5 compatibility
"prefer-const": "off", // Do not enforce const over let
"prefer-spread": "off", // Do not enforce spread operator
"prefer-rest-params": "off", // Do not enforce rest parameters
"prefer-template": "off", // Do not enforce template literals
"object-shorthand": "off", // Do not enforce object method shorthand
"require-jsdoc": "off",
"no-restricted-syntax": [
"error",
{
"selector": "ClassDeclaration",
"message": "Class declarations are not allowed."
},
{
"selector": "ClassExpression",
"message": "Class expressions are not allowed."
}
]
}
}