JS version
@@ -1,34 +0,0 @@
1
{
2
"env": {
3
"browser": true,
4
"es2021": true
5
},
6
"extends": "eslint:recommended",
7
"parserOptions": {
8
"ecmaVersion": 12,
9
"sourceType": "module"
10
},
11
"rules": {
12
"no-undef": "error", // Disallow the use of undeclared variables
13
"no-dupe-keys": "error", // Disallow duplicate keys in object literals
14
"curly": [
15
"error",
16
"all"
17
], // Require curly braces for all control statements
18
"no-eval": "error", // Disallow the use of eval()
19
"no-multi-spaces": "error", // Disallow multiple spaces
20
"semi": [
21
"error",
22
"always"
23
], // Require semicolons at the end of statements
24
"indent": [
25
"error",
26
"tab"
27
], // Enforce consistent indentation of 2 spaces
28
"prefer-const": "error", // Suggest using `const` if a variable is never reassigned
29
"no-mixed-spaces-and-tabs": [
30
"error",
31
"smart-tabs"
32
]
33
}
34
}
@@ -1,34 +0,0 @@1
{2
"env": {3
"browser": true,4
"es2021": true5
},6
"extends": "eslint:recommended",7
"parserOptions": {8
"ecmaVersion": 12,9
"sourceType": "module"10
},11
"rules": {12
"no-undef": "error", // Disallow the use of undeclared variables13
"no-dupe-keys": "error", // Disallow duplicate keys in object literals14
"curly": [15
"error",16
"all"17
], // Require curly braces for all control statements18
"no-eval": "error", // Disallow the use of eval()19
"no-multi-spaces": "error", // Disallow multiple spaces20
"semi": [21
"error",22
"always"23
], // Require semicolons at the end of statements24
"indent": [25
"error",26
"tab"27
], // Enforce consistent indentation of 2 spaces28
"prefer-const": "error", // Suggest using `const` if a variable is never reassigned29
"no-mixed-spaces-and-tabs": [30
"error",31
"smart-tabs"32
]33
}34
}@@ -0,0 +1,22 @@
1
module.exports = {
2
env: {
3
browser: true,
4
es2021: true
5
},
6
extends: "eslint:recommended",
7
parserOptions: {
8
ecmaVersion: 12,
9
sourceType: "module"
10
},
11
rules: {
12
"no-undef": "error", // Disallow the use of undeclared variables
13
"no-dupe-keys": "error", // Disallow duplicate keys in object literals
14
"curly": ["error", "all"], // Require curly braces for all control statements
15
"no-eval": "error", // Disallow the use of eval()
16
"no-multi-spaces": "error", // Disallow multiple spaces
17
"semi": ["error", "always"], // Require semicolons at the end of statements
18
"indent": ["error", "tab"], // Enforce consistent indentation with tabs
19
"prefer-const": "error", // Suggest using `const` if a variable is never reassigned
20
"no-mixed-spaces-and-tabs": ["error", "smart-tabs"] // Disallow mixed spaces and tabs, allow smart-tabs
21
}
22
};
@@ -0,0 +1,22 @@1
module.exports = {2
env: {3
browser: true,4
es2021: true5
},6
extends: "eslint:recommended",7
parserOptions: {8
ecmaVersion: 12,9
sourceType: "module"10
},11
rules: {12
"no-undef": "error", // Disallow the use of undeclared variables13
"no-dupe-keys": "error", // Disallow duplicate keys in object literals14
"curly": ["error", "all"], // Require curly braces for all control statements15
"no-eval": "error", // Disallow the use of eval()16
"no-multi-spaces": "error", // Disallow multiple spaces17
"semi": ["error", "always"], // Require semicolons at the end of statements18
"indent": ["error", "tab"], // Enforce consistent indentation with tabs19
"prefer-const": "error", // Suggest using `const` if a variable is never reassigned20
"no-mixed-spaces-and-tabs": ["error", "smart-tabs"] // Disallow mixed spaces and tabs, allow smart-tabs21
}22
};