-
Notifications
You must be signed in to change notification settings - Fork 24
/
.eslintrc.js
30 lines (29 loc) · 1019 Bytes
/
.eslintrc.js
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
module.exports = {
root: true,
extends: ['plugin:tyrecheck/recommended'],
rules: {
'md/remark': [
'error',
{
plugins: [
'preset-lint-markdown-style-guide',
'frontmatter',
// Disable rules handled by Prettier
['lint-maximum-line-length', false],
['lint-emphasis-marker', false],
['lint-list-item-indent', false],
['lint-list-item-spacing', false],
['lint-ordered-list-marker-value', false],
['lint-no-consecutive-blank-lines', false],
['lint-table-cell-padding', false],
['lint-link-title-style', false],
['lint-no-shortcut-reference-link', false],
['lint-no-shortcut-reference-link', false],
['lint-no-duplicate-headings', false],
],
},
],
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-console': [process.env.NODE_ENV === 'production' ? 'error' : 'off', { allow: ['warn', 'error'] }],
},
}