commit
c9e6fd24b9
55
.jshintrc
55
.jshintrc
|
@ -1,25 +1,34 @@
|
||||||
{
|
{
|
||||||
"node": true, // Enable globals available when code is running inside of the NodeJS runtime environment.
|
"bitwise": false, // Prohibit bitwise operators (&, |, ^, etc.).
|
||||||
"browser": true, // Standard browser globals e.g. `window`, `document`.
|
"browser": true, // Standard browser globals e.g. `window`, `document`.
|
||||||
"esnext": true, // Allow ES.next specific features such as `const` and `let`.
|
"camelcase": false, // Permit only camelcase for `var` and `object indexes`.
|
||||||
"bitwise": false, // Prohibit bitwise operators (&, |, ^, etc.).
|
"curly": true, // Require {} for every new block or scope.
|
||||||
"camelcase": false, // Permit only camelcase for `var` and `object indexes`.
|
"devel": false, // Allow development statements e.g. `console.log();`.
|
||||||
"curly": false, // Require {} for every new block or scope.
|
"eqeqeq": true, // Require triple equals i.e. `===`.
|
||||||
"eqeqeq": true, // Require triple equals i.e. `===`.
|
"esnext": true, // Allow ES.next specific features such as `const` and `let`.
|
||||||
"immed": true, // Require immediate invocations to be wrapped in parens e.g. `( function(){}() );`
|
"freeze": true, // Forbid overwriting prototypes of native objects such as Array, Date and so on.
|
||||||
"latedef": true, // Prohibit variable use before definition.
|
"immed": true, // Require immediate invocations to be wrapped in parens e.g. `( function(){}() );`
|
||||||
"newcap": false, // Require capitalization of all constructor functions e.g. `new F()`.
|
"indent": 2, // Specify indentation spacing
|
||||||
"noarg": true, // Prohibit use of `arguments.caller` and `arguments.callee`.
|
"latedef": true, // Prohibit variable use before definition.
|
||||||
|
"newcap": false, // Require capitalization of all constructor functions e.g. `new F()`.
|
||||||
|
"noarg": true, // Prohibit use of `arguments.caller` and `arguments.callee`.
|
||||||
|
"node": true, // Enable globals available when code is running inside of the NodeJS runtime environment.
|
||||||
|
"noempty": true, // Prohibit use of empty blocks.
|
||||||
|
"nonew": true, // Prohibits the use of constructor functions for side-effects
|
||||||
"quotmark": "single", // Define quotes to string values.
|
"quotmark": "single", // Define quotes to string values.
|
||||||
"regexp": true, // Prohibit `.` and `[^...]` in regular expressions.
|
"regexp": true, // Prohibit `.` and `[^...]` in regular expressions.
|
||||||
"undef": true, // Require all non-global variables be declared before they are used.
|
"smarttabs": false, // Supress warnings about mixed tabs and spaces
|
||||||
"unused": true, // Warn unused variables.
|
"strict": true, // Require `use strict` pragma in every file.
|
||||||
"strict": true, // Require `use strict` pragma in every file.
|
"trailing": true, // Prohibit trailing whitespaces.
|
||||||
"trailing": true, // Prohibit trailing whitespaces.
|
"undef": true, // Require all non-global variables be declared before they are used.
|
||||||
"smarttabs": false, // Suppresses warnings about mixed tabs and spaces
|
"unused": true, // Warn unused variables.
|
||||||
"globals": { // Globals variables.
|
|
||||||
"angular": true
|
"maxparams": 4, // Maximum number of parameters for a function
|
||||||
},
|
"maxstatements": 15, // Maximum number of statements in a function
|
||||||
|
"maxcomplexity": 4, // Cyclomatic complexity (http://en.wikipedia.org/wiki/Cyclomatic_complexity)
|
||||||
|
"maxdepth": 4, // Maximum depth of nested control structures
|
||||||
|
"maxlen": 600 // Maximum number of lines of code in a file
|
||||||
|
|
||||||
"predef": [ // Extra globals.
|
"predef": [ // Extra globals.
|
||||||
"define",
|
"define",
|
||||||
"require",
|
"require",
|
||||||
|
@ -30,10 +39,6 @@
|
||||||
"beforeEach",
|
"beforeEach",
|
||||||
"after",
|
"after",
|
||||||
"afterEach",
|
"afterEach",
|
||||||
"requirejs",
|
|
||||||
"it"
|
"it"
|
||||||
],
|
]
|
||||||
"indent": false, // Specify indentation spacing
|
|
||||||
"devel": true, // Allow development statements e.g. `console.log();`.
|
|
||||||
"noempty": true // Prohibit use of empty blocks.
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue