-
Notifications
You must be signed in to change notification settings - Fork 58
/
.eslintrc.js
50 lines (41 loc) · 1.01 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
38
39
40
41
42
43
44
45
46
47
48
49
50
"use strict";
const fs = require("fs");
const path = require("path");
const PACKAGE_NAME = require("./package").name;
const SYMLINK_LOCATION = path.join(__dirname, "node_modules", PACKAGE_NAME);
// Symlink node_modules/eslint-plugin-markdown to this directory so that ESLint
// resolves this plugin name correctly.
if (!fs.existsSync(SYMLINK_LOCATION)) {
fs.symlinkSync(__dirname, SYMLINK_LOCATION);
}
module.exports = {
root: true,
parserOptions: {
ecmaVersion: 2018
},
plugins: [
PACKAGE_NAME
],
env: {
node: true
},
extends: "eslint",
ignorePatterns: ["examples"],
overrides: [
{
files: ["**/*.md"],
processor: "markdown/markdown"
},
{
files: ["**/*.md/*.js"],
parserOptions: {
ecmaFeatures: {
impliedStrict: true
}
},
rules: {
"lines-around-comment": "off"
}
}
]
};