-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
47 lines (42 loc) · 1.24 KB
/
.eslintrc.cjs
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
38
39
40
41
42
43
44
45
46
47
const { createConfig } = require("eslint-config-galex/dist/createConfig");
module.exports = createConfig({
rules: {
// eslint-core rules
/**
* prevents forgotten debug statements. either uncomment the line
* or remove the statement
*
* @see https://eslint.org/docs/rules/no-console
*/
"no-console": ["warn", { allow: ["warn", "error"] }],
/**
* off unsafe null comparison check
*
* @see https://eslint.org/docs/rules/no-eq-null
*/
"no-eq-null": "off",
/**
* off unsafe comparison check
*
* @see https://eslint.org/docs/rules/eqeqeq
*/
eqeqeq: "off",
// import rules
/**
* off this rule for Prettier ordering
* - groups imports
* - alphabetically sorts them
* - enforces new lines between groups
*
* @see https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/order.md
*/
"import/order": "off",
/**
* any module should exclusively contain named exports
* when unavoidable due to limitations, disable the warning for this line
*
* @see https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-default-export.md
*/
"import/no-default-export": "off",
},
});