Eslint error while working with Trails js

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.

+7
javascript eslint trailsjs
source share

No one has answered this question yet.

See related questions:

7649
How do JavaScript locks work?
3915
Why does Google add while (1); in your JSON answers?
1949
How does JavaScript.prototype work?
1690
How does data binding work in AngularJS?
1074
Disabling the eslint rule for a specific line
182
How to use ESLint with Jest
171
ESLint - "window" is not defined. How to enable global variables in package.json
75
JSX not allowed in .js files with eslint-config-airbnb
thirteen
How to configure ESLint to work with PhpStorm to automatically check ESLint errors
7
ESLint: Using Recommended Default Rules with Angularjs Applications

All Articles