-
-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy patheslint.config.mjs
36 lines (35 loc) · 934 Bytes
/
eslint.config.mjs
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
import eslintRecommended from 'eslint-config-eslint';
export default [
{
"files": ["*.js"],
"ignores": ["lib/tldr-parser.js"],
"rules": {
"indent": ["error", 2],
"quotes": ["error", "single"],
"linebreak-style": ["error", "unix"],
"semi": ["error", "always"],
"no-console": "off",
"arrow-parens": ["error", "always"],
"arrow-body-style": ["error", "always"],
"array-callback-return": "error",
"no-magic-numbers": ["error", {
"ignore": [-1, 0, 1, 2],
"ignoreArrayIndexes": true,
"detectObjects": true
}],
"no-var": "error",
"no-warning-comments": "warn",
"handle-callback-err": "error"
},
"languageOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"globals": {
"node": true,
"mocha": true,
"es6": true
}
},
"extends": eslintRecommended
}
];