Skip to content

Commit 04ee37c

Browse files
authored
Merge pull request #22 from pmagentur/fix/readonly-properties
Fix/readonly properties
2 parents 081be4e + 42e07f6 commit 04ee37c

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

.eslintrc.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,10 @@
6363
"max-depth": ["error", 3],
6464
"no-console": "error",
6565
"eqeqeq": "error",
66-
"no-magic-numbers": ["error", { "ignore": [-1, 0, 1, 2, 100] }],
66+
"no-magic-numbers": ["error", {
67+
"ignore": [-1, 0, 1, 2, 100],
68+
"ignoreReadonlyClassProperties": true
69+
}],
6770
"no-param-reassign": "error",
6871
"no-shadow": "off",
6972
"@typescript-eslint/no-shadow": "error",
@@ -90,7 +93,7 @@
9093
"caughtErrorsIgnorePattern": "^_"
9194
}
9295
],
93-
"quotes": ["warn", "single"],
96+
"quotes": ["error", "single"],
9497
"max-len": [
9598
"error",
9699
{

.github/workflows/linting.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050

5151
- name: Linting with eslint
5252
id: linter
53-
uses: pmagentur/linting-action@v0.4
53+
uses: pmagentur/linting-action@v0.4.1
5454
with:
5555
changed-files: ${{ steps.changedFiles.outputs.all_changed_files }}
5656
linter-command: "._linting/node_modules/.bin/eslint -c ${{ inputs.configs-path }}/.eslintrc.json {files} -f unix --no-eslintrc --quiet"

0 commit comments

Comments
 (0)