-
-
Notifications
You must be signed in to change notification settings - Fork 719
Expand file tree
/
Copy path.eslintrc
More file actions
37 lines (35 loc) · 888 Bytes
/
.eslintrc
File metadata and controls
37 lines (35 loc) · 888 Bytes
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
32
33
34
35
36
37
// Migrated from eslint-config-standard (deprecated)
// Now uses maintained packages with equivalent rules
{
"extends": ["prettier"],
"parserOptions": {
"ecmaVersion": 2024,
"sourceType": "module"
},
"plugins": [
"import",
"n",
"promise"
],
"rules": {
// Import rules (standard's style)
"import/order": [
"error",
{
"groups": ["builtin", "external", "internal", "parent", "sibling", "index"],
"alphabetize": {"order": "asc"}
}
],
// Node rules
"n/no-extraneous-require": "error",
"n/shebang": "off",
// Promise rules
"promise/catch-or-return": "error",
"promise/no-nesting": "warn"
},
"env": {
"browser": true,
"jquery": true,
"node": true
}
}