diff --git a/.eslintrc-md.json b/.eslintrc-md.json index 1945c90..ab05fdb 100644 --- a/.eslintrc-md.json +++ b/.eslintrc-md.json @@ -1,8 +1,5 @@ { - "plugins": [ - "markdown", - "react" - ], + "plugins": ["markdown", "react"], "parserOptions": { "ecmaVersion": 9, "sourceType": "module", @@ -12,17 +9,26 @@ }, "settings": { "react": { - "version": "16.4.0" + "version": "18" } }, - "rules": { - "eol-last": 2, - "spaced-comment": 2, - "no-unused-vars": 0, - "no-this-before-super": 2, - "react/jsx-uses-react": "error", - "react/jsx-uses-vars": "error", - "react/no-unknown-property": 2, - "react/jsx-no-undef": 2 - } -} \ No newline at end of file + "overrides": [ + { + "files": ["**/*.md"], + "processor": "markdown/markdown" + }, + { + "files": ["**/*.md/*.js", "**/*.md/*.jsx", "**/*.md/*.ts", "**/*.md/*.tsx"], + "rules": { + "eol-last": 2, + "spaced-comment": 2, + "no-unused-vars": 0, + "no-this-before-super": 2, + "react/jsx-uses-react": "error", + "react/jsx-uses-vars": "error", + "react/no-unknown-property": 2, + "react/jsx-no-undef": 2 + } + } + ] +} diff --git a/.eslintrc.json b/.eslintrc.json index 571e04e..7181b4e 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -39,6 +39,7 @@ "@typescript-eslint/consistent-type-definitions": "error", "@typescript-eslint/no-misused-new": "error", "@typescript-eslint/no-namespace": "error", + "@typescript-eslint/no-require-imports": "off", "@typescript-eslint/no-unused-vars": [ "error", {