forked from remix-run/remix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
41 lines (40 loc) · 967 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
31
32
33
34
35
36
37
38
39
40
41
const OFF = 0;
const WARN = 1;
/** @type {import('eslint').Linter.Config} */
module.exports = {
root: true,
extends: [
require.resolve("./packages/remix-eslint-config/internal.js"),
"plugin:markdown/recommended",
],
plugins: ["markdown"],
overrides: [
{
files: ["**/*.md/**"],
rules: {
"import/no-extraneous-dependencies": OFF,
"no-dupe-keys": OFF,
"no-undef": OFF,
"no-unused-expressions": OFF,
"no-unused-vars": OFF,
},
},
{
files: ["rollup.config.js"],
rules: {
"import/no-extraneous-dependencies": OFF,
},
},
{
files: ["templates/**/*.*"],
rules: {
"prefer-let/prefer-let": OFF,
"prefer-const": WARN,
},
},
],
// Report unused `eslint-disable` comments.
reportUnusedDisableDirectives: true,
// Tell ESLint not to ignore dot-files, which are ignored by default.
ignorePatterns: ["!.*.js"],
};