Skip to content

Commit 2f0204a

Browse files
committedMar 25, 2025·
eslint cleanup after mjs switch
1 parent e9164d8 commit 2f0204a

File tree

2 files changed

+91
-74
lines changed

2 files changed

+91
-74
lines changed
 

‎.eslintrc

+91
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"es6": true,
5+
"node": true,
6+
"jquery": true
7+
},
8+
"extends": [
9+
"airbnb-base"
10+
],
11+
"globals": {
12+
"TravelCities": "readonly",
13+
"RegionalCities": "readonly",
14+
"StationInfo": "readonly",
15+
"SunCalc": "readonly"
16+
},
17+
"parserOptions": {
18+
"ecmaVersion": 2023,
19+
"sourceType": "module"
20+
},
21+
"plugins": [],
22+
"rules": {
23+
"indent": [
24+
"error",
25+
"tab",
26+
{
27+
"SwitchCase": 1
28+
}
29+
],
30+
"no-tabs": 0,
31+
"no-console": 0,
32+
"max-len": 0,
33+
"no-use-before-define": [
34+
"error",
35+
{
36+
"variables": false
37+
}
38+
],
39+
"no-param-reassign": [
40+
"error",
41+
{
42+
"props": false
43+
}
44+
],
45+
"no-mixed-operators": [
46+
"error",
47+
{
48+
"groups": [
49+
[
50+
"&",
51+
"|",
52+
"^",
53+
"~",
54+
"<<",
55+
">>",
56+
">>>"
57+
],
58+
[
59+
"==",
60+
"!=",
61+
"===",
62+
"!==",
63+
">",
64+
">=",
65+
"<",
66+
"<="
67+
],
68+
[
69+
"&&",
70+
"||"
71+
],
72+
[
73+
"in",
74+
"instanceof"
75+
]
76+
],
77+
"allowSamePrecedence": true
78+
}
79+
],
80+
"import/extensions": [
81+
"error",
82+
{
83+
"mjs": "always",
84+
"json": "always"
85+
}
86+
]
87+
},
88+
"ignorePatterns": [
89+
"*.min.js"
90+
]
91+
}

‎.eslintrc.js

-74
This file was deleted.

0 commit comments

Comments
 (0)
Please sign in to comment.