forked from OWASP/NodeGoat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.jshintrc
39 lines (39 loc) · 1.89 KB
/
.jshintrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{
"node": true, // Enable globals available when code is running inside of the NodeJS runtime environment.
"browser": true, // Standard browser globals e.g. `window`, `document`.
"esversion": 9, // Allow EcmaScript 9 syntax.
"bitwise": false, // Prohibit bitwise operators (&, |, ^, etc.).
"camelcase": true, // Permit only camelcase for `var` and `object indexes`.
"curly": false, // Require {} for every new block or scope.
"eqeqeq": true, // Require triple equals i.e. `===`.
"immed": true, // Require immediate invocations to be wrapped in parens e.g. `( function(){}() );`.
"latedef": true, // Prohibit variable use before definition.
"newcap": true, // Require capitalization of all constructor functions e.g. `new F()`.
"noarg": true, // Prohibit use of `arguments.caller` and `arguments.callee`.
"quotmark": "double", // Define quotes to string values.
"regexp": true, // Prohibit `.` and `[^...]` in regular expressions.
"undef": true, // Require all non-global variables be declared before they are used.
"unused": false, // Warn unused variables.
"strict": true, // Require `use strict` pragma in every file.
"trailing": true, // Prohibit trailing whitespaces.
"smarttabs": false, // Suppresses warnings about mixed tabs and spaces.
"indent": 4, // Specify indentation spacing.
"maxlen": 120, // Max line length.
"devel": false, // Allow development statements e.g. `console.log();`.
"noempty": true, // Prohibit use of empty blocks.
"overrides": {
"test/e2e/**": {
"globals": {
"cy": false,
"Cypress": false,
"it": false,
"describe": false,
"before": false,
"after": false,
"beforeEach": false,
"afterEach": false,
"expect": false
}
}
}
}