CI is showing error when executing linter step: yarn lint
Changes
In the file: .eslintrc.json:
Added a new property called globals that informs the linter that a global variable called module is being used in the project;
The import/no-extraneous-dependencies property has been disabled. This enables lint to consider as an error any attempt to export modules, either with module.exports, export default, etc. As the export of modules is one of the advantages of using ReactJS, and in this project, it is used in more than 100 files, I believe that the best alternative is to disable this option.
Status Checklist
[x] Added a new property called globals;
[x] The import/no-extraneous-dependencies property has been disabled;
[x] The yarn lint:fix command ran successfully;
[x] The yarn lint command ran successfully;
Screenshots
Before
After
Testing
In the root of the project, run the command: yarn lint
Motivation
CI is showing error when executing linter step: yarn lint
Changes
In the file:
.eslintrc.json
:Added a new property called
globals
that informs the linter that a global variable calledmodule
is being used in the project;The
import/no-extraneous-dependencies
property has been disabled. This enables lint to consider as an error any attempt to export modules, either with module.exports, export default, etc. As the export of modules is one of the advantages of using ReactJS, and in this project, it is used in more than 100 files, I believe that the best alternative is to disable this option.Status Checklist
globals
;import/no-extraneous-dependencies
property has been disabled;Screenshots
Testing
yarn lint