-
Notifications
You must be signed in to change notification settings - Fork 55
/
.eslintrc.js
37 lines (37 loc) · 1.27 KB
/
.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
31
32
33
34
35
36
37
module.exports = {
root: true,
parserOptions: {
ecmaVersion: 2017,
},
env: {
es6: true,
node: true,
},
plugins: ['jest'],
extends: ['plugin:prettier/recommended', 'plugin:jest/recommended', 'plugin:md/prettier'],
overrides: [
{
files: ['*.md'],
parser: 'markdown-eslint-parser',
rules: {
'md/remark': [
'error',
{
// This object corresponds to object you would export in .remarkrc file
plugins: [
['remark-lint-no-duplicate-headings', false],
['lint-maximum-line-length', false],
],
},
],
'prettier/prettier': [
'error',
// Important to force prettier to use "markdown" parser - otherwise it wouldn't be able to parse *.md files.
// You also can configure other options supported by prettier here - "prose-wrap" is
// particularly useful for *.md files
{ parser: 'markdown', proseWrap: 'always', tabWidth: 2 },
],
},
},
],
};