diff --git a/.prettierignore b/.prettierignore
index aed86e816d43..2578aad23b7c 100644
--- a/.prettierignore
+++ b/.prettierignore
@@ -3,7 +3,6 @@
**/dist
**/coverage
**/shared-fixtures
-**/tests/integration/fixtures/**/*
**/.vscode
**/.nyc_output
packages/eslint-plugin-tslint/tests/test-tslint-rules-directory/alwaysFailRule.js
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 223d0fdc0824..54440a4d8091 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -3,6 +3,17 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+## [3.0.2](https://github.com/typescript-eslint/typescript-eslint/compare/v3.0.1...v3.0.2) (2020-05-27)
+
+
+### Bug Fixes
+
+* regression for eslint v6 ([#2105](https://github.com/typescript-eslint/typescript-eslint/issues/2105)) ([31fc503](https://github.com/typescript-eslint/typescript-eslint/commit/31fc5039ed919e1515fda673c186d5c83eb5beb3))
+
+
+
+
+
## [3.0.1](https://github.com/typescript-eslint/typescript-eslint/compare/v3.0.0...v3.0.1) (2020-05-25)
diff --git a/README.md b/README.md
index c4a26f31cf07..89922b3a685f 100644
--- a/README.md
+++ b/README.md
@@ -295,6 +295,6 @@ Support this project with your organization. Your logo will show up here with a
-## Contributing
+## Contributing Guide
[See the contributing guide here](./CONTRIBUTING.md)
diff --git a/lerna.json b/lerna.json
index 171d21a8cd21..d14e5151b230 100644
--- a/lerna.json
+++ b/lerna.json
@@ -1,5 +1,5 @@
{
- "version": "3.0.1",
+ "version": "3.0.2",
"npmClient": "yarn",
"useWorkspaces": true,
"stream": true
diff --git a/packages/eslint-plugin-internal/CHANGELOG.md b/packages/eslint-plugin-internal/CHANGELOG.md
index 6ac6ec4311fa..dd6fe33b82be 100644
--- a/packages/eslint-plugin-internal/CHANGELOG.md
+++ b/packages/eslint-plugin-internal/CHANGELOG.md
@@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+## [3.0.2](https://github.com/typescript-eslint/typescript-eslint/compare/v3.0.1...v3.0.2) (2020-05-27)
+
+**Note:** Version bump only for package @typescript-eslint/eslint-plugin-internal
+
+
+
+
+
## [3.0.1](https://github.com/typescript-eslint/typescript-eslint/compare/v3.0.0...v3.0.1) (2020-05-25)
**Note:** Version bump only for package @typescript-eslint/eslint-plugin-internal
diff --git a/packages/eslint-plugin-internal/package.json b/packages/eslint-plugin-internal/package.json
index 82b4f9c0c323..ffe49178a51d 100644
--- a/packages/eslint-plugin-internal/package.json
+++ b/packages/eslint-plugin-internal/package.json
@@ -1,6 +1,6 @@
{
"name": "@typescript-eslint/eslint-plugin-internal",
- "version": "3.0.1",
+ "version": "3.0.2",
"private": true,
"main": "dist/index.js",
"scripts": {
@@ -12,7 +12,7 @@
"typecheck": "tsc -p tsconfig.json --noEmit"
},
"dependencies": {
- "@typescript-eslint/experimental-utils": "3.0.1",
+ "@typescript-eslint/experimental-utils": "3.0.2",
"prettier": "*"
}
}
diff --git a/packages/eslint-plugin-tslint/CHANGELOG.md b/packages/eslint-plugin-tslint/CHANGELOG.md
index 401f4db123e7..8051145605f0 100644
--- a/packages/eslint-plugin-tslint/CHANGELOG.md
+++ b/packages/eslint-plugin-tslint/CHANGELOG.md
@@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+## [3.0.2](https://github.com/typescript-eslint/typescript-eslint/compare/v3.0.1...v3.0.2) (2020-05-27)
+
+**Note:** Version bump only for package @typescript-eslint/eslint-plugin-tslint
+
+
+
+
+
## [3.0.1](https://github.com/typescript-eslint/typescript-eslint/compare/v3.0.0...v3.0.1) (2020-05-25)
**Note:** Version bump only for package @typescript-eslint/eslint-plugin-tslint
diff --git a/packages/eslint-plugin-tslint/package.json b/packages/eslint-plugin-tslint/package.json
index f03f38e8473b..e42e333b8d76 100644
--- a/packages/eslint-plugin-tslint/package.json
+++ b/packages/eslint-plugin-tslint/package.json
@@ -1,6 +1,6 @@
{
"name": "@typescript-eslint/eslint-plugin-tslint",
- "version": "3.0.1",
+ "version": "3.0.2",
"main": "dist/index.js",
"typings": "src/index.ts",
"description": "TSLint wrapper plugin for ESLint",
@@ -31,7 +31,7 @@
"typecheck": "tsc -p tsconfig.json --noEmit"
},
"dependencies": {
- "@typescript-eslint/experimental-utils": "3.0.1",
+ "@typescript-eslint/experimental-utils": "3.0.2",
"lodash": "^4.17.15"
},
"peerDependencies": {
@@ -41,6 +41,6 @@
},
"devDependencies": {
"@types/lodash": "^4.14.149",
- "@typescript-eslint/parser": "3.0.1"
+ "@typescript-eslint/parser": "3.0.2"
}
}
diff --git a/packages/eslint-plugin/CHANGELOG.md b/packages/eslint-plugin/CHANGELOG.md
index bbda91bf500b..c45ec4d9bf61 100644
--- a/packages/eslint-plugin/CHANGELOG.md
+++ b/packages/eslint-plugin/CHANGELOG.md
@@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+## [3.0.2](https://github.com/typescript-eslint/typescript-eslint/compare/v3.0.1...v3.0.2) (2020-05-27)
+
+**Note:** Version bump only for package @typescript-eslint/eslint-plugin
+
+
+
+
+
## [3.0.1](https://github.com/typescript-eslint/typescript-eslint/compare/v3.0.0...v3.0.1) (2020-05-25)
diff --git a/packages/eslint-plugin/docs/rules/naming-convention.md b/packages/eslint-plugin/docs/rules/naming-convention.md
index 5938857d70e0..43874c6b0089 100644
--- a/packages/eslint-plugin/docs/rules/naming-convention.md
+++ b/packages/eslint-plugin/docs/rules/naming-convention.md
@@ -333,7 +333,6 @@ This allows you to emulate the old `interface-name-prefix` rule.
{
"selector": "interface",
"format": ["PascalCase"],
- "prefix": ["T"],
"custom": {
"regex": "^I[A-Z]",
"match": false
diff --git a/packages/eslint-plugin/package.json b/packages/eslint-plugin/package.json
index 206a99c668fe..ad4edb401811 100644
--- a/packages/eslint-plugin/package.json
+++ b/packages/eslint-plugin/package.json
@@ -1,6 +1,6 @@
{
"name": "@typescript-eslint/eslint-plugin",
- "version": "3.0.1",
+ "version": "3.0.2",
"description": "TypeScript plugin for ESLint",
"keywords": [
"eslint",
@@ -41,7 +41,7 @@
"typecheck": "tsc -p tsconfig.json --noEmit"
},
"dependencies": {
- "@typescript-eslint/experimental-utils": "3.0.1",
+ "@typescript-eslint/experimental-utils": "3.0.2",
"functional-red-black-tree": "^1.0.1",
"regexpp": "^3.0.0",
"semver": "^7.3.2",
diff --git a/packages/experimental-utils/CHANGELOG.md b/packages/experimental-utils/CHANGELOG.md
index 92f48fceb9d3..b5d5952500dd 100644
--- a/packages/experimental-utils/CHANGELOG.md
+++ b/packages/experimental-utils/CHANGELOG.md
@@ -3,6 +3,17 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+## [3.0.2](https://github.com/typescript-eslint/typescript-eslint/compare/v3.0.1...v3.0.2) (2020-05-27)
+
+
+### Bug Fixes
+
+* regression for eslint v6 ([#2105](https://github.com/typescript-eslint/typescript-eslint/issues/2105)) ([31fc503](https://github.com/typescript-eslint/typescript-eslint/commit/31fc5039ed919e1515fda673c186d5c83eb5beb3))
+
+
+
+
+
## [3.0.1](https://github.com/typescript-eslint/typescript-eslint/compare/v3.0.0...v3.0.1) (2020-05-25)
diff --git a/packages/experimental-utils/package.json b/packages/experimental-utils/package.json
index 0a01d46b05da..485d64365209 100644
--- a/packages/experimental-utils/package.json
+++ b/packages/experimental-utils/package.json
@@ -1,6 +1,6 @@
{
"name": "@typescript-eslint/experimental-utils",
- "version": "3.0.1",
+ "version": "3.0.2",
"description": "(Experimental) Utilities for working with TypeScript + ESLint together",
"keywords": [
"eslint",
@@ -37,7 +37,7 @@
},
"dependencies": {
"@types/json-schema": "^7.0.3",
- "@typescript-eslint/typescript-estree": "3.0.1",
+ "@typescript-eslint/typescript-estree": "3.0.2",
"eslint-scope": "^5.0.0",
"eslint-utils": "^2.0.0"
},
diff --git a/packages/experimental-utils/src/ts-eslint/ESLint.ts b/packages/experimental-utils/src/ts-eslint/ESLint.ts
index c90978bb1152..a0d7ec2b9441 100644
--- a/packages/experimental-utils/src/ts-eslint/ESLint.ts
+++ b/packages/experimental-utils/src/ts-eslint/ESLint.ts
@@ -341,6 +341,16 @@ namespace ESLint {
}
}
+// We want to export this class always so it's easy for end users to consume.
+// However on ESLint v6, this class will not exist, so we provide a fallback to make it clear
+// The only users of this should be users scripting ESLint locally, so _they_ should have the correct version installed.
+const _ESLint = (ESLintESLint ??
+ function (): void {
+ throw new Error(
+ 'Attempted to construct an ESLint instance on less than ESLint v7.0.0',
+ );
+ }) as typeof ESLintBase;
+
/**
* The ESLint class is the primary class to use in Node.js applications.
* This class depends on the Node.js fs module and the file system, so you cannot use it in browsers.
@@ -349,6 +359,6 @@ namespace ESLint {
*
* @since 7.0.0
*/
-class ESLint extends (ESLintESLint as typeof ESLintBase) {}
+class ESLint extends _ESLint {}
export { ESLint };
diff --git a/packages/parser/CHANGELOG.md b/packages/parser/CHANGELOG.md
index 66ea097ccca3..e38153832e8f 100644
--- a/packages/parser/CHANGELOG.md
+++ b/packages/parser/CHANGELOG.md
@@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+## [3.0.2](https://github.com/typescript-eslint/typescript-eslint/compare/v3.0.1...v3.0.2) (2020-05-27)
+
+**Note:** Version bump only for package @typescript-eslint/parser
+
+
+
+
+
## [3.0.1](https://github.com/typescript-eslint/typescript-eslint/compare/v3.0.0...v3.0.1) (2020-05-25)
diff --git a/packages/parser/package.json b/packages/parser/package.json
index cb6701ec4dbd..c7d8cfe67d5e 100644
--- a/packages/parser/package.json
+++ b/packages/parser/package.json
@@ -1,6 +1,6 @@
{
"name": "@typescript-eslint/parser",
- "version": "3.0.1",
+ "version": "3.0.2",
"description": "An ESLint custom parser which leverages TypeScript ESTree",
"main": "dist/index.js",
"types": "dist/index.d.ts",
@@ -43,13 +43,13 @@
},
"dependencies": {
"@types/eslint-visitor-keys": "^1.0.0",
- "@typescript-eslint/experimental-utils": "3.0.1",
- "@typescript-eslint/typescript-estree": "3.0.1",
+ "@typescript-eslint/experimental-utils": "3.0.2",
+ "@typescript-eslint/typescript-estree": "3.0.2",
"eslint-visitor-keys": "^1.1.0"
},
"devDependencies": {
"@types/glob": "^7.1.1",
- "@typescript-eslint/shared-fixtures": "3.0.1",
+ "@typescript-eslint/shared-fixtures": "3.0.2",
"glob": "*"
},
"peerDependenciesMeta": {
diff --git a/packages/shared-fixtures/CHANGELOG.md b/packages/shared-fixtures/CHANGELOG.md
index 8e132bf097e3..e35565c925f2 100644
--- a/packages/shared-fixtures/CHANGELOG.md
+++ b/packages/shared-fixtures/CHANGELOG.md
@@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+## [3.0.2](https://github.com/typescript-eslint/typescript-eslint/compare/v3.0.1...v3.0.2) (2020-05-27)
+
+**Note:** Version bump only for package @typescript-eslint/shared-fixtures
+
+
+
+
+
## [3.0.1](https://github.com/typescript-eslint/typescript-eslint/compare/v3.0.0...v3.0.1) (2020-05-25)
diff --git a/packages/shared-fixtures/package.json b/packages/shared-fixtures/package.json
index 492bf472491a..03a8bfed45fc 100644
--- a/packages/shared-fixtures/package.json
+++ b/packages/shared-fixtures/package.json
@@ -1,6 +1,6 @@
{
"name": "@typescript-eslint/shared-fixtures",
- "version": "3.0.1",
+ "version": "3.0.2",
"private": true,
"scripts": {
"build": "tsc -b tsconfig.build.json",
diff --git a/packages/typescript-estree/CHANGELOG.md b/packages/typescript-estree/CHANGELOG.md
index 3b52b56b076e..1e974736e8f4 100644
--- a/packages/typescript-estree/CHANGELOG.md
+++ b/packages/typescript-estree/CHANGELOG.md
@@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+## [3.0.2](https://github.com/typescript-eslint/typescript-eslint/compare/v3.0.1...v3.0.2) (2020-05-27)
+
+**Note:** Version bump only for package @typescript-eslint/typescript-estree
+
+
+
+
+
## [3.0.1](https://github.com/typescript-eslint/typescript-eslint/compare/v3.0.0...v3.0.1) (2020-05-25)
diff --git a/packages/typescript-estree/package.json b/packages/typescript-estree/package.json
index aa4a3620f561..7b9c93e1a2ef 100644
--- a/packages/typescript-estree/package.json
+++ b/packages/typescript-estree/package.json
@@ -1,6 +1,6 @@
{
"name": "@typescript-eslint/typescript-estree",
- "version": "3.0.1",
+ "version": "3.0.2",
"description": "A parser that converts TypeScript source code into an ESTree compatible form",
"main": "dist/index.js",
"types": "dist/index.d.ts",
@@ -58,7 +58,7 @@
"@types/lodash": "^4.14.149",
"@types/semver": "^7.1.0",
"@types/tmp": "^0.2.0",
- "@typescript-eslint/shared-fixtures": "3.0.1",
+ "@typescript-eslint/shared-fixtures": "3.0.2",
"tmp": "^0.2.1",
"typescript": "*"
},
diff --git a/tests/integration/README.md b/tests/integration/README.md
index c0aa0b976433..a1f39ca6eb21 100644
--- a/tests/integration/README.md
+++ b/tests/integration/README.md
@@ -16,3 +16,5 @@ These tests are setup to run within docker containers to ensure that each test i
1. Add a new entry to `run-all-tests.sh` by copy+pasting an existing command, and changing the name to match your new folder.
1. Run your integration test by running the single command you copied in the previous step.
- If your test finishes successfully, a `test.js.snap` will be created.
+
+If you run your test and see the test fail with `Cannot find module './lint-output.json' from 'test.js'`, this means that ESLint errored whilst attempting to run the lint command.
diff --git a/tests/integration/docker-compose.yml b/tests/integration/docker-compose.yml
index a92dff5e0903..a65f23c6b381 100644
--- a/tests/integration/docker-compose.yml
+++ b/tests/integration/docker-compose.yml
@@ -97,3 +97,22 @@ services:
- /usr/eslint-plugin/tests
# Runtime link to all the specific integration test files, so that most updates don't require a rebuild.
- ./fixtures/markdown:/usr/linked
+
+ eslint-v6:
+ build: ./fixtures/eslint-v6
+ container_name: 'eslint-v6'
+ volumes:
+ # Runtime link to the relevant built @typescript-eslint packages and integration test utils,
+ # but apply an empty volume for the package tests, we don't need those.
+ - ../../package.json/:/usr/root-package.json
+ - ./utils/:/usr/utils
+ - ../../packages/parser/:/usr/parser
+ - /usr/parser/tests
+ - ../../packages/typescript-estree/:/usr/typescript-estree
+ - /usr/typescript-estree/tests
+ - ../../packages/experimental-utils/:/usr/experimental-utils
+ - /usr/experimental-utils/tests
+ - ../../packages/eslint-plugin/:/usr/eslint-plugin
+ - /usr/eslint-plugin/tests
+ # Runtime link to all the specific integration test files, so that most updates don't require a rebuild.
+ - ./fixtures/eslint-v6:/usr/linked
diff --git a/tests/integration/fixtures/eslint-v6/.eslintrc.js b/tests/integration/fixtures/eslint-v6/.eslintrc.js
new file mode 100644
index 000000000000..ad9ed9402981
--- /dev/null
+++ b/tests/integration/fixtures/eslint-v6/.eslintrc.js
@@ -0,0 +1,12 @@
+module.exports = {
+ root: true,
+ // Local version of @typescript-eslint/parser
+ parser: '@typescript-eslint/parser',
+ plugins: [
+ // Local version of @typescript-eslint/eslint-plugin
+ '@typescript-eslint',
+ ],
+ rules: {
+ '@typescript-eslint/no-explicit-any': 'error',
+ },
+};
diff --git a/tests/integration/fixtures/eslint-v6/Dockerfile b/tests/integration/fixtures/eslint-v6/Dockerfile
new file mode 100644
index 000000000000..027ff085a6cf
--- /dev/null
+++ b/tests/integration/fixtures/eslint-v6/Dockerfile
@@ -0,0 +1,17 @@
+FROM node:erbium
+
+# Copy the test.sh into the container. Every other file will be linked, rather
+# than copied to allow for changes without rebuilds wherever possible
+WORKDIR /usr
+COPY ./test.sh /usr/
+
+# Create file which will be executed by jest
+# to assert that the lint output is what we expect
+RUN echo "const actualLintOutput = require('./lint-output.json');\n" \
+ "\n" \
+ "test('it should produce the expected lint ouput', () => {\n" \
+ " expect(actualLintOutput).toMatchSnapshot();\n" \
+ "});\n" > test.js
+
+# Run the integration test
+CMD [ "./test.sh" ]
diff --git a/tests/integration/fixtures/eslint-v6/index.ts b/tests/integration/fixtures/eslint-v6/index.ts
new file mode 100644
index 000000000000..126ac330a101
--- /dev/null
+++ b/tests/integration/fixtures/eslint-v6/index.ts
@@ -0,0 +1 @@
+const noSemi: any = true;
diff --git a/tests/integration/fixtures/eslint-v6/test.js.snap b/tests/integration/fixtures/eslint-v6/test.js.snap
new file mode 100644
index 000000000000..350194ef759a
--- /dev/null
+++ b/tests/integration/fixtures/eslint-v6/test.js.snap
@@ -0,0 +1,28 @@
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`it should produce the expected lint ouput 1`] = `
+Array [
+ Object {
+ "errorCount": 1,
+ "filePath": "/usr/linked/index.ts",
+ "fixableErrorCount": 0,
+ "fixableWarningCount": 0,
+ "messages": Array [
+ Object {
+ "column": 15,
+ "endColumn": 18,
+ "endLine": 1,
+ "line": 1,
+ "message": "Unexpected any. Specify a different type.",
+ "messageId": "unexpectedAny",
+ "nodeType": "TSAnyKeyword",
+ "ruleId": "@typescript-eslint/no-explicit-any",
+ "severity": 2,
+ },
+ ],
+ "source": "const noSemi: any = true;
+",
+ "warningCount": 0,
+ },
+]
+`;
diff --git a/tests/integration/fixtures/eslint-v6/test.sh b/tests/integration/fixtures/eslint-v6/test.sh
new file mode 100755
index 000000000000..d1cc755c58ae
--- /dev/null
+++ b/tests/integration/fixtures/eslint-v6/test.sh
@@ -0,0 +1,22 @@
+#!/bin/bash
+set -exuo pipefail
+
+# Generate the package.json to use
+node /usr/utils/generate-package-json.js
+
+# Install dependencies
+npm install
+npm install eslint@6.0.0
+
+# Use the local volumes for our own packages
+npm install $(npm pack /usr/typescript-estree | tail -1)
+npm install $(npm pack /usr/parser | tail -1)
+npm install $(npm pack /usr/experimental-utils | tail -1)
+npm install $(npm pack /usr/eslint-plugin | tail -1)
+
+# Run the linting
+# (the "|| true" helps make sure that we run our tests on failed linting runs as well)
+npx eslint --format json --output-file /usr/lint-output.json --config /usr/linked/.eslintrc.js /usr/linked/**/*.ts || true
+
+# Run our assertions against the linting output
+npx jest /usr/test.js --snapshotResolver=/usr/utils/jest-snapshot-resolver.js
diff --git a/tests/integration/fixtures/eslint-v6/tsconfig.json b/tests/integration/fixtures/eslint-v6/tsconfig.json
new file mode 100644
index 000000000000..aee0ec940fcd
--- /dev/null
+++ b/tests/integration/fixtures/eslint-v6/tsconfig.json
@@ -0,0 +1,5 @@
+{
+ "compilerOptions": {
+ "strict": true
+ }
+}
diff --git a/tests/integration/fixtures/markdown/Doc.md b/tests/integration/fixtures/markdown/Doc.md
index 0d6eabe455ee..e894566fe1e4 100644
--- a/tests/integration/fixtures/markdown/Doc.md
+++ b/tests/integration/fixtures/markdown/Doc.md
@@ -1,6 +1,7 @@
Some extra text to verify that the markdown plugin is ignoring anything that is not a code block.
expected no-console error:
+
```jsx
import { Button } from 'antd';
@@ -20,6 +21,7 @@ function MyComp() {
expected no-explicit-any error:
expected no-console error:
+
```jsx
import { Button } from 'antd';
@@ -38,6 +40,7 @@ function MyComp(): any {
```
expected no-console error:
+
```js
function foo() {
console.log('test');
@@ -46,24 +49,25 @@ function foo() {
expected no-explicit-any error:
expected no-console error:
+
```js
function foo(): any {
console.log('test');
}
```
-
expected no-explicit-any error:
expected no-console error:
+
```javascript
function foo(): any {
console.log('test');
}
```
-
expected no-explicit-any error:
expected no-console error:
+
```node
function foo(): any {
console.log('test');
diff --git a/tests/integration/fixtures/markdown/test.js.snap b/tests/integration/fixtures/markdown/test.js.snap
new file mode 100644
index 000000000000..8663838f7edc
--- /dev/null
+++ b/tests/integration/fixtures/markdown/test.js.snap
@@ -0,0 +1,298 @@
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`it should produce the expected lint ouput 1`] = `
+Array [
+ Object {
+ "errorCount": 10,
+ "filePath": "/usr/linked/Doc.md",
+ "fixableErrorCount": 0,
+ "fixableWarningCount": 0,
+ "messages": Array [
+ Object {
+ "column": 3,
+ "endColumn": 14,
+ "endLine": 9,
+ "line": 9,
+ "message": "Unexpected console statement.",
+ "messageId": "unexpected",
+ "nodeType": "MemberExpression",
+ "ruleId": "no-console",
+ "severity": 2,
+ },
+ Object {
+ "column": 20,
+ "endColumn": 23,
+ "endLine": 28,
+ "line": 28,
+ "message": "Unexpected any. Specify a different type.",
+ "messageId": "unexpectedAny",
+ "nodeType": "TSAnyKeyword",
+ "ruleId": "@typescript-eslint/no-explicit-any",
+ "severity": 2,
+ "suggestions": Array [
+ Object {
+ "desc": "Use \`unknown\` instead, this will force you to explicitly, and safely assert the type is correct.",
+ "fix": Object {
+ "range": Array [
+ 51,
+ 54,
+ ],
+ "text": "unknown",
+ },
+ "messageId": "suggestUnknown",
+ },
+ Object {
+ "desc": "Use \`never\` instead, this is useful when instantiating generic type parameters that you don't need to know the type of.",
+ "fix": Object {
+ "range": Array [
+ 51,
+ 54,
+ ],
+ "text": "never",
+ },
+ "messageId": "suggestNever",
+ },
+ ],
+ },
+ Object {
+ "column": 3,
+ "endColumn": 14,
+ "endLine": 29,
+ "line": 29,
+ "message": "Unexpected console statement.",
+ "messageId": "unexpected",
+ "nodeType": "MemberExpression",
+ "ruleId": "no-console",
+ "severity": 2,
+ },
+ Object {
+ "column": 3,
+ "endColumn": 14,
+ "endLine": 46,
+ "line": 46,
+ "message": "Unexpected console statement.",
+ "messageId": "unexpected",
+ "nodeType": "MemberExpression",
+ "ruleId": "no-console",
+ "severity": 2,
+ },
+ Object {
+ "column": 17,
+ "endColumn": 20,
+ "endLine": 54,
+ "line": 54,
+ "message": "Unexpected any. Specify a different type.",
+ "messageId": "unexpectedAny",
+ "nodeType": "TSAnyKeyword",
+ "ruleId": "@typescript-eslint/no-explicit-any",
+ "severity": 2,
+ "suggestions": Array [
+ Object {
+ "desc": "Use \`unknown\` instead, this will force you to explicitly, and safely assert the type is correct.",
+ "fix": Object {
+ "range": Array [
+ 16,
+ 19,
+ ],
+ "text": "unknown",
+ },
+ "messageId": "suggestUnknown",
+ },
+ Object {
+ "desc": "Use \`never\` instead, this is useful when instantiating generic type parameters that you don't need to know the type of.",
+ "fix": Object {
+ "range": Array [
+ 16,
+ 19,
+ ],
+ "text": "never",
+ },
+ "messageId": "suggestNever",
+ },
+ ],
+ },
+ Object {
+ "column": 3,
+ "endColumn": 14,
+ "endLine": 55,
+ "line": 55,
+ "message": "Unexpected console statement.",
+ "messageId": "unexpected",
+ "nodeType": "MemberExpression",
+ "ruleId": "no-console",
+ "severity": 2,
+ },
+ Object {
+ "column": 17,
+ "endColumn": 20,
+ "endLine": 63,
+ "line": 63,
+ "message": "Unexpected any. Specify a different type.",
+ "messageId": "unexpectedAny",
+ "nodeType": "TSAnyKeyword",
+ "ruleId": "@typescript-eslint/no-explicit-any",
+ "severity": 2,
+ "suggestions": Array [
+ Object {
+ "desc": "Use \`unknown\` instead, this will force you to explicitly, and safely assert the type is correct.",
+ "fix": Object {
+ "range": Array [
+ 16,
+ 19,
+ ],
+ "text": "unknown",
+ },
+ "messageId": "suggestUnknown",
+ },
+ Object {
+ "desc": "Use \`never\` instead, this is useful when instantiating generic type parameters that you don't need to know the type of.",
+ "fix": Object {
+ "range": Array [
+ 16,
+ 19,
+ ],
+ "text": "never",
+ },
+ "messageId": "suggestNever",
+ },
+ ],
+ },
+ Object {
+ "column": 3,
+ "endColumn": 14,
+ "endLine": 64,
+ "line": 64,
+ "message": "Unexpected console statement.",
+ "messageId": "unexpected",
+ "nodeType": "MemberExpression",
+ "ruleId": "no-console",
+ "severity": 2,
+ },
+ Object {
+ "column": 17,
+ "endColumn": 20,
+ "endLine": 72,
+ "line": 72,
+ "message": "Unexpected any. Specify a different type.",
+ "messageId": "unexpectedAny",
+ "nodeType": "TSAnyKeyword",
+ "ruleId": "@typescript-eslint/no-explicit-any",
+ "severity": 2,
+ "suggestions": Array [
+ Object {
+ "desc": "Use \`unknown\` instead, this will force you to explicitly, and safely assert the type is correct.",
+ "fix": Object {
+ "range": Array [
+ 16,
+ 19,
+ ],
+ "text": "unknown",
+ },
+ "messageId": "suggestUnknown",
+ },
+ Object {
+ "desc": "Use \`never\` instead, this is useful when instantiating generic type parameters that you don't need to know the type of.",
+ "fix": Object {
+ "range": Array [
+ 16,
+ 19,
+ ],
+ "text": "never",
+ },
+ "messageId": "suggestNever",
+ },
+ ],
+ },
+ Object {
+ "column": 3,
+ "endColumn": 14,
+ "endLine": 73,
+ "line": 73,
+ "message": "Unexpected console statement.",
+ "messageId": "unexpected",
+ "nodeType": "MemberExpression",
+ "ruleId": "no-console",
+ "severity": 2,
+ },
+ ],
+ "source": "Some extra text to verify that the markdown plugin is ignoring anything that is not a code block.
+
+expected no-console error:
+
+\`\`\`jsx
+import { Button } from 'antd';
+
+function MyComp() {
+ console.log('test');
+ return (
+