hello-lights 0.3.11 → 0.3.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/eslint.config.js +163 -0
- package/package.json +5 -4
package/eslint.config.js
ADDED
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const globals = require('globals');
|
|
4
|
+
|
|
5
|
+
module.exports = [
|
|
6
|
+
{
|
|
7
|
+
ignores: [
|
|
8
|
+
'src/commands/peg-parser.js',
|
|
9
|
+
'src/commands/doc-peg-parser.js',
|
|
10
|
+
'src/commands/formatter-peg-parser.js',
|
|
11
|
+
'web/bundle.js',
|
|
12
|
+
'web/doc'
|
|
13
|
+
]
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
languageOptions: {
|
|
17
|
+
ecmaVersion: 2018,
|
|
18
|
+
globals: {
|
|
19
|
+
...globals.node,
|
|
20
|
+
...globals.browser
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
rules: {
|
|
24
|
+
'accessor-pairs': 'error',
|
|
25
|
+
'arrow-spacing': ['error', {'before': true, 'after': true}],
|
|
26
|
+
'block-spacing': ['error', 'always'],
|
|
27
|
+
'brace-style': ['error', '1tbs', {'allowSingleLine': true}],
|
|
28
|
+
'camelcase': ['error', {'properties': 'never'}],
|
|
29
|
+
'comma-dangle': ['error', {'arrays': 'never', 'objects': 'never', 'imports': 'never', 'exports': 'never', 'functions': 'never'}],
|
|
30
|
+
'comma-spacing': ['error', {'before': false, 'after': true}],
|
|
31
|
+
'comma-style': ['error', 'last'],
|
|
32
|
+
'constructor-super': 'error',
|
|
33
|
+
'curly': ['error', 'multi-line'],
|
|
34
|
+
'dot-location': ['error', 'property'],
|
|
35
|
+
'eol-last': 'error',
|
|
36
|
+
'eqeqeq': ['error', 'always', {'null': 'ignore'}],
|
|
37
|
+
'func-call-spacing': ['error', 'never'],
|
|
38
|
+
'generator-star-spacing': ['error', {'before': true, 'after': true}],
|
|
39
|
+
'indent': ['error', 2, {
|
|
40
|
+
'SwitchCase': 1,
|
|
41
|
+
'VariableDeclarator': 1,
|
|
42
|
+
'outerIIFEBody': 1,
|
|
43
|
+
'MemberExpression': 1,
|
|
44
|
+
'FunctionDeclaration': {'parameters': 1, 'body': 1},
|
|
45
|
+
'FunctionExpression': {'parameters': 1, 'body': 1},
|
|
46
|
+
'CallExpression': {'arguments': 1},
|
|
47
|
+
'ArrayExpression': 1,
|
|
48
|
+
'ObjectExpression': 1,
|
|
49
|
+
'ImportDeclaration': 1,
|
|
50
|
+
'flatTernaryExpressions': false,
|
|
51
|
+
'ignoreComments': false
|
|
52
|
+
}],
|
|
53
|
+
'key-spacing': ['error', {'beforeColon': false, 'afterColon': true}],
|
|
54
|
+
'keyword-spacing': ['error', {'before': true, 'after': true}],
|
|
55
|
+
'new-cap': ['error', {'newIsCap': true, 'capIsNew': false}],
|
|
56
|
+
'no-array-constructor': 'error',
|
|
57
|
+
'no-caller': 'error',
|
|
58
|
+
'no-class-assign': 'error',
|
|
59
|
+
'no-compare-neg-zero': 'error',
|
|
60
|
+
'no-cond-assign': 'error',
|
|
61
|
+
'no-const-assign': 'error',
|
|
62
|
+
'no-constant-condition': ['error', {'checkLoops': false}],
|
|
63
|
+
'no-control-regex': 'error',
|
|
64
|
+
'no-debugger': 'error',
|
|
65
|
+
'no-delete-var': 'error',
|
|
66
|
+
'no-dupe-args': 'error',
|
|
67
|
+
'no-dupe-class-members': 'error',
|
|
68
|
+
'no-dupe-keys': 'error',
|
|
69
|
+
'no-duplicate-case': 'error',
|
|
70
|
+
'no-empty-character-class': 'error',
|
|
71
|
+
'no-empty-pattern': 'error',
|
|
72
|
+
'no-eval': 'error',
|
|
73
|
+
'no-ex-assign': 'error',
|
|
74
|
+
'no-extend-native': 'error',
|
|
75
|
+
'no-extra-bind': 'error',
|
|
76
|
+
'no-extra-boolean-cast': 'error',
|
|
77
|
+
'no-extra-parens': ['error', 'functions'],
|
|
78
|
+
'no-fallthrough': 'error',
|
|
79
|
+
'no-floating-decimal': 'error',
|
|
80
|
+
'no-func-assign': 'error',
|
|
81
|
+
'no-global-assign': 'error',
|
|
82
|
+
'no-implied-eval': 'error',
|
|
83
|
+
'no-inner-declarations': ['error', 'functions'],
|
|
84
|
+
'no-invalid-regexp': 'error',
|
|
85
|
+
'no-irregular-whitespace': 'error',
|
|
86
|
+
'no-iterator': 'error',
|
|
87
|
+
'no-label-var': 'error',
|
|
88
|
+
'no-labels': ['error', {'allowLoop': false, 'allowSwitch': false}],
|
|
89
|
+
'no-lone-blocks': 'error',
|
|
90
|
+
'no-mixed-operators': ['error', {
|
|
91
|
+
'groups': [
|
|
92
|
+
['==', '!=', '===', '!==', '>', '>=', '<', '<='],
|
|
93
|
+
['&&', '||'],
|
|
94
|
+
['in', 'instanceof']
|
|
95
|
+
],
|
|
96
|
+
'allowSamePrecedence': true
|
|
97
|
+
}],
|
|
98
|
+
'no-mixed-spaces-and-tabs': 'error',
|
|
99
|
+
'no-multi-spaces': 'error',
|
|
100
|
+
'no-multi-str': 'error',
|
|
101
|
+
'no-multiple-empty-lines': ['error', {'max': 1, 'maxEOF': 0}],
|
|
102
|
+
'no-new': 'error',
|
|
103
|
+
'no-new-func': 'error',
|
|
104
|
+
'no-new-object': 'error',
|
|
105
|
+
'no-new-symbol': 'error',
|
|
106
|
+
'no-new-wrappers': 'error',
|
|
107
|
+
'no-obj-calls': 'error',
|
|
108
|
+
'no-octal': 'error',
|
|
109
|
+
'no-octal-escape': 'error',
|
|
110
|
+
'no-proto': 'error',
|
|
111
|
+
'no-redeclare': 'error',
|
|
112
|
+
'no-regex-spaces': 'error',
|
|
113
|
+
'no-return-await': 'error',
|
|
114
|
+
'no-self-assign': 'error',
|
|
115
|
+
'no-self-compare': 'error',
|
|
116
|
+
'no-sequences': 'error',
|
|
117
|
+
'no-shadow-restricted-names': 'error',
|
|
118
|
+
'no-sparse-arrays': 'error',
|
|
119
|
+
'no-tabs': 'error',
|
|
120
|
+
'no-template-curly-in-string': 'error',
|
|
121
|
+
'no-this-before-super': 'error',
|
|
122
|
+
'no-throw-literal': 'error',
|
|
123
|
+
'no-trailing-spaces': 'error',
|
|
124
|
+
'no-undef': 'error',
|
|
125
|
+
'no-undef-init': 'error',
|
|
126
|
+
'no-unexpected-multiline': 'error',
|
|
127
|
+
'no-unmodified-loop-condition': 'error',
|
|
128
|
+
'no-unneeded-ternary': ['error', {'defaultAssignment': false}],
|
|
129
|
+
'no-unreachable': 'error',
|
|
130
|
+
'no-unsafe-finally': 'error',
|
|
131
|
+
'no-unsafe-negation': 'error',
|
|
132
|
+
'no-unused-expressions': ['error', {'allowShortCircuit': true, 'allowTernary': true, 'allowTaggedTemplates': true}],
|
|
133
|
+
'no-unused-vars': ['error', {'vars': 'all', 'args': 'none', 'caughtErrors': 'none', 'ignoreRestSiblings': true}],
|
|
134
|
+
'no-use-before-define': ['error', {'functions': false, 'classes': false, 'variables': false}],
|
|
135
|
+
'no-useless-call': 'error',
|
|
136
|
+
'no-useless-computed-key': 'error',
|
|
137
|
+
'no-useless-constructor': 'error',
|
|
138
|
+
'no-useless-escape': 'error',
|
|
139
|
+
'no-useless-rename': 'error',
|
|
140
|
+
'no-useless-return': 'error',
|
|
141
|
+
'no-whitespace-before-property': 'error',
|
|
142
|
+
'no-with': 'error',
|
|
143
|
+
'operator-linebreak': ['error', 'after', {'overrides': {'?': 'before', ':': 'before'}}],
|
|
144
|
+
'prefer-promise-reject-errors': 'error',
|
|
145
|
+
'quotes': ['error', 'single', {'avoidEscape': true, 'allowTemplateLiterals': true}],
|
|
146
|
+
'rest-spread-spacing': ['error', 'never'],
|
|
147
|
+
'semi': 'error',
|
|
148
|
+
'semi-spacing': ['error', {'before': false, 'after': true}],
|
|
149
|
+
'space-before-blocks': ['error', 'always'],
|
|
150
|
+
'space-in-parens': ['error', 'never'],
|
|
151
|
+
'space-unary-ops': ['error', {'words': true, 'nonwords': false}],
|
|
152
|
+
'symbol-description': 'error',
|
|
153
|
+
'template-curly-spacing': ['error', 'never'],
|
|
154
|
+
'template-tag-spacing': ['error', 'never'],
|
|
155
|
+
'unicode-bom': ['error', 'never'],
|
|
156
|
+
'use-isnan': 'error',
|
|
157
|
+
'valid-typeof': ['error', {'requireStringLiterals': true}],
|
|
158
|
+
'wrap-iife': ['error', 'any', {'functionPrototypeMethods': true}],
|
|
159
|
+
'yield-star-spacing': ['error', 'both'],
|
|
160
|
+
'yoda': ['error', 'never']
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hello-lights",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.13",
|
|
4
4
|
"description": "Commands to control a traffic light",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
@@ -42,9 +42,10 @@
|
|
|
42
42
|
"coffeelint": "^2.1.0",
|
|
43
43
|
"coffeescript": "^2.5.1",
|
|
44
44
|
"cpy-cli": "^7.0.0",
|
|
45
|
-
"docdash": "^
|
|
46
|
-
"eslint": "^
|
|
47
|
-
"
|
|
45
|
+
"docdash": "^2.0.2",
|
|
46
|
+
"eslint": "^10.0.0",
|
|
47
|
+
"globals": "^16.0.0",
|
|
48
|
+
"jsdoc": "^4.0.5",
|
|
48
49
|
"mocha": "^11.7.5",
|
|
49
50
|
"nyc": "^17.1.0",
|
|
50
51
|
"open-cli": "^6.0.1",
|