我有一个 React - Typescript 创建的:
create-react-app my-app --scripts-version=react-scripts-ts
它编译得很好,但每次我看到这条消息或警告时:
No valid rules have been specified for JavaScript files
任何想法如何摆脱它?
> react-scripts-ts build
Creating an optimized production build...
Starting type checking and linting service...
Using 1 worker with 2048MB memory limit
ts-loader: Using typescript@2.8.3 and /Users/julian/my-app/tsconfig.json
No valid rules have been specified for JavaScript files
Compiled successfully.
我的 tscongif.json 和 tslint.json 文件可以在这里找到:https ://gist.github.com/JulianG/be82d9fa20f48f60ce10371fa5095230