{"size": 2119, "ext": "js", "max_stars_repo_path": "lib/config/markdown.js", "max_stars_repo_name": "itgalaxy/eslint-plugin-itgalaxy", "max_stars_repo_stars_event_min_datetime": "2017-06-02T18:41:09.000Z", "max_stars_repo_stars_event_max_datetime": "2021-09-17T22:03:01.000Z", "max_issues_repo_path": "lib/config/markdown.js", "max_issues_repo_name": "itgalaxy/eslint-plugin-itgalaxy", "max_issues_repo_issues_event_min_datetime": "2016-08-16T18:04:06.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-31T13:52:15.000Z", "max_forks_repo_path": "lib/config/markdown.js", "max_forks_repo_name": "itgalaxy/eslint-plugin-itgalaxy", "max_forks_repo_forks_event_min_datetime": "2017-06-02T18:54:03.000Z", "max_forks_repo_forks_event_max_datetime": "2017-06-02T18:54:03.000Z"}
{"max_stars_count": 5, "max_issues_count": 56, "max_forks_count": 1, "avg_line_length": 34.737704918, "max_line_length": 165, "alphanum_fraction": 0.6125530911}
"use strict";

const dirtySharedConfig = require("./shared/dirty");

module.exports = {
  overrides: [
    {
      // In v2, explicitly apply eslint-plugin-markdown's `markdown`
      // processor on any Markdown files you want to lint.
      files: ["**/*.{md,markdown,mdown,mkdn,mkd,mdwn,mkdown,ron}"],
      processor: "markdown/markdown",
    },
    {
      ...dirtySharedConfig,
      // 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,markdown,mdown,mkdn,mkd,mdwn,mkdown,ron}/**"],
      // Configuration for fenced code blocks goes with the override for
      // the code block's virtual filename, for example:
      parserOptions: {
        ...dirtySharedConfig.parserOptions,
        ecmaFeatures: {
          ...dirtySharedConfig.parserOptions.ecmaFeatures,
          impliedStrict: true,
        },
        babelOptions: undefined,
      },
      plugins: ["markdown"],
      rules: {
        ...dirtySharedConfig.rules,
        // The Markdown parser automatically trims trailing newlines from code blocks.
        "eol-last": "off",

        // For example
        "no-console": "off",

        // In code snippets and examples, these rules are often counterproductive to clarity and brevity.
        "no-undef": "off",
        "no-unused-vars": "off",
        "no-unused-expressions": "off",
        "import/no-unresolved": "off",
        "import/no-extraneous-dependencies": "off",
        "node/no-unpublished-require": "off",
        "node/no-unpublished-import": "off",

        // Adding a "use strict" directive at the top of every code block is tedious and distracting. The config opts into strict mode parsing without the directive.
        strict: "off",

        // The processor will not receive a Unicode Byte Order
        // Mark from the Markdown parser.
        "unicode-bom": "off",

        // Avoid naming nested blocks
        "unicorn/filename-case": "off",
        "unicorn/no-empty-file": "off",
      },
    },
  ],
};
