I use Eslint to populate the code of my Trails.js project before testing it. Tails.js ships with existing eslint-config-trails preconfigurations . However, when I test my code, eslint throws a Definition for rule 'no-global-assign' was not found error Definition for rule 'no-global-assign' was not found for every .js file in my codebase.
Manually adding a rule:
"rules": { "no-global-assign": ["error", {"exceptions": ["Object"]}] }
Does not fix the error. Setting the rule to "warn" forces me to at least run tests, but it displays a warning for each .js file.
javascript eslint trailsjs
Lando-l
source share