Skip to content

Commit 4353320

Browse files
committed
chore: Update eslint and semantic-release
1 parent 847573d commit 4353320

File tree

11 files changed

+50
-1184
lines changed

11 files changed

+50
-1184
lines changed

.drone.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ clone:
77

88
steps:
99
- name: eslint
10-
image: marcbachmann/eslint:4.19.1
10+
image: marcbachmann/eslint:8.0.1
1111
environment:
1212
GH_TOKEN:
1313
from_secret: GH_TOKEN
@@ -25,7 +25,7 @@ steps:
2525
commands: ["npm run build -s"]
2626

2727
- name: release
28-
image: livingdocs/semantic-release:v1.2.2
28+
image: livingdocs/semantic-release:v2.1.2
2929
environment:
3030
GH_TOKEN:
3131
from_secret: GH_TOKEN
@@ -36,6 +36,6 @@ trigger:
3636
event: [push]
3737
---
3838
kind: signature
39-
hmac: 84b017f54ccb2df1406b2bdecfed49a8105816784cc1e9157276baefd50e1382
39+
hmac: 6b7d5a5e13b2636eadd54b56b855fac94e68e7b3a44480a0bcc496b70857848e
4040

4141
...

.eslintrc.json

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
{
22
"parserOptions": {
3-
"ecmaVersion": 8,
3+
"ecmaVersion": 2022,
44
"ecmaFeatures": {
5-
"experimentalObjectRestSpread": true,
65
"jsx": true
76
},
8-
"sourceType": "module"
7+
"sourceType": "script"
98
},
109

1110
"env": {
@@ -17,16 +16,13 @@
1716
"plugins": [],
1817

1918
"globals": {
20-
"cy": true,
21-
"Cypress": true,
2219
"document": false,
2320
"navigator": false,
2421
"window": false,
2522
"expect": true,
2623
"test": true,
2724
"sinon": true,
28-
"angular": true,
29-
"inject": true
25+
"angular": true
3026
},
3127

3228
"rules": {
@@ -40,7 +36,7 @@
4036
"comma-style": [2, "last"],
4137
"computed-property-spacing": [2, "never"],
4238
"constructor-super": 2,
43-
"curly": [2, "multi-line"],
39+
"curly": [2, "multi-line", "consistent"],
4440
"dot-location": [2, "property"],
4541
"eol-last": [2, "always"],
4642
"eqeqeq": [2, "allow-null"],
@@ -66,12 +62,15 @@
6662
"max-len": ["error", {
6763
"code": 100,
6864
"ignoreRegExpLiterals": true,
69-
"ignorePattern": "\\s+require\\(|https?://"
65+
"ignorePattern": "\\s+require\\(|\\s+require\\.resolve\\(|https?://|\\s+it\\(|\\s+describe\\("
7066
}],
67+
"max-nested-callbacks": 2,
7168
"new-cap": [2, {"newIsCap": true, "capIsNew": false}],
7269
"new-parens": 2,
7370
"newline-per-chained-call": [2, {"ignoreChainWithDepth": 4}],
7471
"no-array-constructor": 2,
72+
"no-async-promise-executor": 2,
73+
"no-await-in-loop": 0,
7574
"no-caller": 2,
7675
"no-class-assign": 2,
7776
"no-cond-assign": 2,
@@ -135,9 +134,11 @@
135134
"no-octal-escape": 2,
136135
"no-path-concat": 2,
137136
"no-proto": 2,
137+
"no-promise-executor-return": 0,
138138
"no-redeclare": 2,
139139
"no-regex-spaces": 2,
140140
"no-return-assign": [2, "except-parens"],
141+
"no-return-await": 2,
141142
"no-self-assign": 2,
142143
"no-self-compare": 2,
143144
"no-sequences": 2,
@@ -178,9 +179,11 @@
178179
"one-var": [2, {"initialized": "never"}],
179180
"operator-linebreak": [2, "after", {"overrides": {"?": "before", ":": "before"}}],
180181
"padded-blocks": [0, "never"],
181-
"prefer-template": 2,
182182
"prefer-const": [2, {"destructuring": "any", "ignoreReadBeforeAssign": true}],
183+
"prefer-promise-reject-errors": 2,
184+
"prefer-template": 2,
183185
"quotes": [2, "single", {"avoidEscape": true, "allowTemplateLiterals": true}],
186+
"require-atomic-updates": 0,
184187
"rest-spread-spacing": [2, "never"],
185188
"semi": [2, "never"],
186189
"semi-spacing": [2, {"before": false, "after": true}],
@@ -192,6 +195,7 @@
192195
"spaced-comment": [2, "always",
193196
{"line": {"markers": ["*package", "!", ","]}, "block": {"balanced": true, "markers": ["*package", "!", ","], "exceptions": ["*"]}}
194197
],
198+
"strict": [2, "global"],
195199
"template-curly-spacing": [2, "never"],
196200
"unicode-bom": [2, "never"],
197201
"use-isnan": 2,

karma.conf.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
'use strict'
12
module.exports = function (config) {
23
config.set({
34
frameworks: ['mocha', 'sinon-chai'],

0 commit comments

Comments
 (0)