Skip to content

Commit bb8d9ad

Browse files
WIP - stuff for CI/CD.
1 parent 8021c80 commit bb8d9ad

18 files changed

+9747
-2265
lines changed

.eslintrc

+113
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
// {
2+
// // Settings
3+
// "esversion" : 6,
4+
// "passfail" : false, // Stop on first error.
5+
// "maxerr" : 100, // Maximum errors before stopping.
6+
7+
// // Predefined globals whom JSHint will ignore.
8+
// "browser" : true, // Standard browser globals e.g. `window`, `document`.
9+
10+
// "node" : true,
11+
// "rhino" : false,
12+
// "couch" : false,
13+
// "wsh" : false, // Windows Scripting Host.
14+
15+
// "jquery" : false,
16+
// "prototypejs" : false,
17+
// "mootools" : false,
18+
// "dojo" : false,
19+
20+
// "predef" : [ // Extra globals.
21+
// "require",
22+
// "define",
23+
// "notify",
24+
// "expect",
25+
// "it",
26+
// "afterEach",
27+
// "describe",
28+
// "jest"
29+
// ],
30+
31+
// // Development.
32+
// "debug" : false, // Allow debugger statements e.g. browser breakpoints.
33+
// "devel" : false, // Allow development statements e.g. `console.log();`.
34+
35+
// // EcmaScript 5.
36+
// "strict" : true, // Require `use strict` pragma in every file.
37+
// "globalstrict" : false, // Allow global "use strict" (also enables 'strict').
38+
39+
// // The Good Parts.
40+
// "asi" : false, // Tolerate Automatic Semicolon Insertion (no semicolons).
41+
// "laxbreak" : false, // Tolerate unsafe line breaks e.g. `return [\n] x` without semicolons.
42+
// "bitwise" : true, // Prohibit bitwise operators (&, |, ^, etc.).
43+
// "boss" : false, // Tolerate assignments inside if, for & while. Usually conditions & loops are for comparison, not assignments.
44+
// "curly" : true, // Require {} for every new block or scope.
45+
// "eqeqeq" : false, // Require triple equals i.e. `===`.
46+
// "eqnull" : false, // Tolerate use of `== null`.
47+
// "evil" : true, // Tolerate use of `eval`.
48+
// "expr" : false, // Tolerate `ExpressionStatement` as Programs.
49+
// "forin" : false, // Tolerate `for in` loops without `hasOwnPrototype`.
50+
// "immed" : true, // Require immediate invocations to be wrapped in parens e.g. `( function(){}() );`
51+
// "latedef" : false, // Prohibit variable use before definition.
52+
// "loopfunc" : true, // Allow functions to be defined within loops.
53+
// "noarg" : true, // Prohibit use of `arguments.caller` and `arguments.callee`.
54+
// "regexp" : true, // Prohibit `.` and `[^...]` in regular expressions.
55+
// "regexdash" : false, // Tolerate unescaped last dash i.e. `[-...]`.
56+
// "scripturl" : true, // Tolerate script-targeted URLs.
57+
// "shadow" : false, // Allows re-define variables later in code e.g. `var x=1; x=2;`.
58+
// "supernew" : true, // Tolerate `new function () { ... };` and `new Object;`.
59+
// "undef" : true, // Require all non-global variables be declared before they are used.
60+
61+
// // Styling prefrences.
62+
// "newcap" : false, // Require capitalization of all constructor functions e.g. `new F()`.
63+
// "noempty" : false, // Prohibit use of empty blocks.
64+
// "nonew" : false, // Prohibit use of constructors for side-effects.
65+
// "nomen" : false, // Prohibit use of initial or trailing underbars in names.
66+
// "onevar" : false, // Allow only one `var` statement per function.
67+
// "plusplus" : false, // Prohibit use of `++` & `--`.
68+
// "sub" : true, // Tolerate all forms of subscript notation besides dot notation e.g. `dict['key']` instead of `dict.key`.
69+
// "trailing" : false, // Prohibit trailing whitespaces.
70+
// "white" : false // Check against strict whitespace and indentation rules.
71+
// }
72+
73+
{
74+
"parserOptions": {
75+
"ecmaVersion": 6,
76+
},
77+
"env": {
78+
"browser": true,
79+
"node": true,
80+
"es6": true,
81+
},
82+
"globals": {
83+
"require": true,
84+
"define": true,
85+
"notify": true,
86+
"expect": true,
87+
"it": true,
88+
"afterEach": true,
89+
"describe": true,
90+
"jest": true,
91+
},
92+
"rules": {
93+
"no-debugger": "error",
94+
"no-console": "error",
95+
"strict": ["error", "global"],
96+
"no-bitwise": "error",
97+
"curly": "error",
98+
"eqeqeq": "off",
99+
"no-eval": "error",
100+
"no-undef": "error",
101+
"no-redeclare": "error",
102+
"no-caller": "error",
103+
"no-unused-vars": "error",
104+
"no-empty": "off",
105+
"no-new": "off",
106+
"no-underscore-dangle": "off",
107+
"one-var": "off",
108+
"no-plusplus": "off",
109+
"no-sub": "off",
110+
"no-trailing-spaces": "off",
111+
"no-tabs": "off",
112+
},
113+
}

.jshintrc

-76
This file was deleted.

0 commit comments

Comments
 (0)