Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- // ENVIRONMENT
- "node": true, // Enable globals available when code is running inside of the NodeJS runtime environment.
- "browser": true, // Standard browser globals e.g. `window`, `document`.
- "esnext": true, // Allow ES.next specific features such as `const` and `let`. ES6 / ES7
- "devel": false, // Allow development statements e.g. `console.log();`.
- "jquery": true, // jQuery
- "newcap": false, // Require capitalization of all constructor functions e.g. `new F()`. -- Messenger warnings are annoying
- // ENFORCING
- "noempty": true, // Prohibit use of empty blocks.
- "noarg": true, // Prohibit use of `arguments.caller` and `arguments.callee`.
- "undef": true, // Require all non-global variables be declared before they are used.
- "bitwise": true, // Prohibit bitwise operators (&, |, ^, etc.).
- "curly": true, // Require {} for every new block or scope.
- //"eqeqeq": true, // Require triple equals i.e. `===`.
- "latedef": true, // Prohibit variable use before definition.
- "unused": true, // Warn unused variables.
- "predef": [ // Extra globals.
- "$",
- "describe",
- "it",
- "before",
- "beforeEach",
- "after",
- "afterEach"
- ],
- // RELAXING
- "strict": false, // require "use strict"
- "globalstrict": true, // allow global "use strict"
- // STYLING
- "indent": 4 // Specify indentation spacing
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement