I have a project node.jsthat checks itself for compliance with the code in accordance with the rules specified in .eslintrc, using gulpand gulp-eslint.
Now, I would like it to generate special failure warnings when it encounters a specific require:
const someModule = require('myDeprecatedModule');
// Warning: myDeprecatedModule is deprecated. Use myNewModule in stead.
Is this possible in a simple way that the IDE will also accept?
- Using
.eslint - No custom plugin to publish and install with
npm - Only local code that can be ported to the repository, nothing global
- No custom code in
node_modules
source
share