Skip to content

rickyrattlesnake/eslint-configuration-ir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

eslint-configuration-ir

JavaScript ESLint Coding Standard for IR

If your JavaScript is for use in Node, put this comment at the top of your files:

/*eslint-env es6, node */

If your JavaScript is for use in the browser:

/*eslint-env browser */

You may need to add to the aforementioned eslint comments depending on what frameworks/libaries/environments your code uses. See: http://eslint.org/docs/user-guide/configuring#specifying-environments for more information

We need to make these distinctions as we currently support non-ECMA6 Compliant browsers, while using ECMA6 features in Node. Files that are shared between Node and the browser should be treated (with respect to implementation and linting) as if it was just used in the browser.

Known Issues: Chai Language Chains: If you are using Chai's expect language chains in your testing (http://chaijs.com/api/bdd/), you will get linting errors pertaining to the 'no-unused-expressions' ESLint rule.

ESLint has purposely not supported this, see eslint/eslint#2102.

Your choices are to either not using the language chains, or to add the following comment to the top of the relevant file.

/*eslint-disable no-unused-expressions */

About

JavaScript ESLint Coding Standard for IR (Integrated Research Ltd)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published