Как включить TSlint для проверки файлов jsx - PullRequest
0 голосов
/ 11 апреля 2020

Я работаю в reactjs проекте с машинописью и сейчас пытаюсь включить TSlint для файлов .jsx . Это работает только для. js файлов.

Я уже установил некоторые зависимости, такие как typescript-tslint-plugin, tslint

Это мой файл tsconfig. json

{
  "compilerOptions": {
    "baseUrl": "./",
    "outDir": "./dist/tsc-out",
    "target": "esnext",
    "moduleResolution": "node",
    "jsx": "react",
    "experimentalDecorators": true,
    "lib": [
      "es6",
      "dom"
    ],
    "noImplicitAny": false,
    "sourceMap": true,
    "resolveJsonModule": true,
    "esModuleInterop": true,
    "allowSyntheticDefaultImports": true,
    "skipLibCheck": true,
    "typeRoots": [
      "./node_modules/@types"
    ],
    "allowJs": true,
    "strict": true,
    "forceConsistentCasingInFileNames": true,
    "module": "esnext",
    "isolatedModules": true,
    "noEmit": true
  },
  "exclude": [
    "build",
    "./node_modules",
    "./babel.config.js"
  ],
  "include": [
    "src"
  ]
}

Пожалуйста, мне нужна помощь.

...