aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/twbs/bootstrap/site/.eslintrc.json
blob: 0a16f82f9ac7ef22dc81c3235d95decfa6573349 (plain) (blame)
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
51
52
53
54
55
{
  "extends": "../.eslintrc.json",
  "env": {
    "browser": true,
    "node": false
  },
  "parserOptions": {
    "sourceType": "script"
  },
  "plugins": [
    "markdown"
  ],
  "rules": {
    "no-new": "off",
    "strict": "error",
    "unicorn/no-array-for-each": "off",
    "unicorn/numeric-separators-style": "off",
    "unicorn/prefer-node-protocol": "off"
  },
  "overrides": [
    {
      // 2. Enable the Markdown processor for all .md files.
      "files": [
        "./**/*.md"
      ],
      "processor": "markdown/markdown"
    },
    {
      // In v2, configuration for fenced code blocks is separate from the
      // containing Markdown file. Each code block has a virtual filename
      // appended to the Markdown file's path.
      "files": [
        "./**/*.md/*.js"
      ],
      // Configuration for fenced code blocks goes with the override for
      // the code block's virtual filename, for example:
      "parserOptions": {
        "ecmaFeatures": {
          "impliedStrict": true
        }
      },
      "rules": {
        "no-array-for-each": "off",
        "no-labels": "off",
        "no-redeclare": "off",
        "no-undef": "off",
        "no-unused-expressions": "off",
        "no-unused-labels": "off",
        "no-unused-vars": "off",
        "unicorn/no-array-for-each": "off",
        "unicorn/numeric-separators-style": "off"
      }
    }
  ]
}