Я получаю предупреждения о файлах в node_modules, несмотря на следующий tslint.json.Как полностью запретить запуск tslint на node_modules?
{
"extends": ["tslint:recommended", "tslint-react", "tslint-config-prettier"],
"linterOptions": {
"exclude": [
"config/**/*.js",
"node_modules/**/*.ts",
"node_modules/**/*.js"
]
},
"cliOptions": {
"exclude": [
"bin",
"build",
"node_modules"
]
}
}
Вот вывод при сохранении.
Compiling...
Compiled with warnings.
~/node_modules/object-assign/index.
There are multiple modules with names that only differ in casing.
This can lead to unexpected behavior when compiling on a filesystem with other case-semantic.
Use equal casing. Compare these module identifiers:
* ~\node_modules\object-assign\index.js
Used by 1 module(s), i. e.
~\node_modules\react-scripts-ts\config\polyfills.js
* ~\node_modules\object-assign\index.js
Used by 2 module(s), i. e.
~\node_modules\react\cjs\react.development.js
Search for the keywords to learn more about each warning.
To ignore, add // eslint-disable-next-line to the line before.
Я получил раздел cliOptions из этого ответа ,Если это имеет значение, я создал приложение с npx create-react-app my-app --scripts-version=react-scripts-ts