Skip to content

Commit

Permalink
chore: Update eslint and semantic-release
Browse files Browse the repository at this point in the history
  • Loading branch information
marcbachmann committed May 11, 2023
1 parent 847573d commit 4353320
Show file tree
Hide file tree
Showing 11 changed files with 50 additions and 1,184 deletions.
6 changes: 3 additions & 3 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ clone:

steps:
- name: eslint
image: marcbachmann/eslint:4.19.1
image: marcbachmann/eslint:8.0.1
environment:
GH_TOKEN:
from_secret: GH_TOKEN
Expand All @@ -25,7 +25,7 @@ steps:
commands: ["npm run build -s"]

- name: release
image: livingdocs/semantic-release:v1.2.2
image: livingdocs/semantic-release:v2.1.2
environment:
GH_TOKEN:
from_secret: GH_TOKEN
Expand All @@ -36,6 +36,6 @@ trigger:
event: [push]
---
kind: signature
hmac: 84b017f54ccb2df1406b2bdecfed49a8105816784cc1e9157276baefd50e1382
hmac: 6b7d5a5e13b2636eadd54b56b855fac94e68e7b3a44480a0bcc496b70857848e

...
24 changes: 14 additions & 10 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
{
"parserOptions": {
"ecmaVersion": 8,
"ecmaVersion": 2022,
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true
},
"sourceType": "module"
"sourceType": "script"
},

"env": {
Expand All @@ -17,16 +16,13 @@
"plugins": [],

"globals": {
"cy": true,
"Cypress": true,
"document": false,
"navigator": false,
"window": false,
"expect": true,
"test": true,
"sinon": true,
"angular": true,
"inject": true
"angular": true
},

"rules": {
Expand All @@ -40,7 +36,7 @@
"comma-style": [2, "last"],
"computed-property-spacing": [2, "never"],
"constructor-super": 2,
"curly": [2, "multi-line"],
"curly": [2, "multi-line", "consistent"],
"dot-location": [2, "property"],
"eol-last": [2, "always"],
"eqeqeq": [2, "allow-null"],
Expand All @@ -66,12 +62,15 @@
"max-len": ["error", {
"code": 100,
"ignoreRegExpLiterals": true,
"ignorePattern": "\\s+require\\(|https?://"
"ignorePattern": "\\s+require\\(|\\s+require\\.resolve\\(|https?://|\\s+it\\(|\\s+describe\\("
}],
"max-nested-callbacks": 2,
"new-cap": [2, {"newIsCap": true, "capIsNew": false}],
"new-parens": 2,
"newline-per-chained-call": [2, {"ignoreChainWithDepth": 4}],
"no-array-constructor": 2,
"no-async-promise-executor": 2,
"no-await-in-loop": 0,
"no-caller": 2,
"no-class-assign": 2,
"no-cond-assign": 2,
Expand Down Expand Up @@ -135,9 +134,11 @@
"no-octal-escape": 2,
"no-path-concat": 2,
"no-proto": 2,
"no-promise-executor-return": 0,
"no-redeclare": 2,
"no-regex-spaces": 2,
"no-return-assign": [2, "except-parens"],
"no-return-await": 2,
"no-self-assign": 2,
"no-self-compare": 2,
"no-sequences": 2,
Expand Down Expand Up @@ -178,9 +179,11 @@
"one-var": [2, {"initialized": "never"}],
"operator-linebreak": [2, "after", {"overrides": {"?": "before", ":": "before"}}],
"padded-blocks": [0, "never"],
"prefer-template": 2,
"prefer-const": [2, {"destructuring": "any", "ignoreReadBeforeAssign": true}],
"prefer-promise-reject-errors": 2,
"prefer-template": 2,
"quotes": [2, "single", {"avoidEscape": true, "allowTemplateLiterals": true}],
"require-atomic-updates": 0,
"rest-spread-spacing": [2, "never"],
"semi": [2, "never"],
"semi-spacing": [2, {"before": false, "after": true}],
Expand All @@ -192,6 +195,7 @@
"spaced-comment": [2, "always",
{"line": {"markers": ["*package", "!", ","]}, "block": {"balanced": true, "markers": ["*package", "!", ","], "exceptions": ["*"]}}
],
"strict": [2, "global"],
"template-curly-spacing": [2, "never"],
"unicode-bom": [2, "never"],
"use-isnan": 2,
Expand Down
1 change: 1 addition & 0 deletions karma.conf.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use strict'
module.exports = function (config) {
config.set({
frameworks: ['mocha', 'sinon-chai'],
Expand Down
Loading

0 comments on commit 4353320

Please sign in to comment.