Skip to content

Commit

Permalink
chore(deps): update github/codeql-action action to v2 (#135)
Browse files Browse the repository at this point in the history
* chore(deps): update github/codeql-action action to v2

* chore: update some rules

* chore: add changeset, pin version

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: roikoren755 <roi@altnext.com>
  • Loading branch information
3 people authored May 1, 2022
1 parent a89e965 commit 22fc5a9
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 18 deletions.
5 changes: 5 additions & 0 deletions .changeset/tough-files-tap.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'eslint-plugin-es-roikoren': patch
---

chore(deps): update github/codeql-action action to v2
29 changes: 13 additions & 16 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ module.exports = {
'max-lines': ERROR,
'no-bitwise': ERROR,
'no-caller': ERROR,
'no-case-declarations': OFF,
'no-case-declarations': ERROR,
'no-console': WARN,
'no-constant-binary-expression': ERROR,
'no-constructor-return': ERROR,
Expand All @@ -59,7 +59,7 @@ module.exports = {
'no-param-reassign': ERROR,
'no-path-concat': ERROR,
'no-plusplus': [ERROR, { allowForLoopAfterthoughts: true }],
'no-process-exit': OFF,
'no-process-exit': ERROR,
'no-proto': ERROR,
'no-return-assign': ERROR,
'no-script-url': ERROR,
Expand Down Expand Up @@ -111,9 +111,7 @@ module.exports = {

'@typescript-eslint/array-type': ERROR,
'@typescript-eslint/ban-ts-comment': [ERROR, { 'ts-expect-error': false }],
'@typescript-eslint/ban-ts-ignore': OFF,
'@typescript-eslint/ban-types': WARN,
'@typescript-eslint/camelcase': OFF,
'@typescript-eslint/consistent-indexed-object-style': ERROR,
'@typescript-eslint/consistent-type-definitions': ERROR,
'@typescript-eslint/consistent-type-imports': ERROR,
Expand All @@ -122,7 +120,6 @@ module.exports = {
'@typescript-eslint/explicit-function-return-type': [ERROR, { allowExpressions: true }],
'@typescript-eslint/explicit-member-accessibility': [ERROR, { accessibility: 'no-public' }],
'@typescript-eslint/explicit-module-boundary-types': WARN,
'@typescript-eslint/interface-name-prefix': OFF,
'@typescript-eslint/method-signature-style': [ERROR, 'method'],
'@typescript-eslint/no-empty-function': WARN,
'@typescript-eslint/no-empty-interface': [WARN, { allowSingleExtends: true }],
Expand Down Expand Up @@ -191,8 +188,8 @@ module.exports = {

'import/extensions': [ERROR, { json: 'always' }],
'import/first': ERROR,
'import/named': OFF,
'import/namespace': OFF,
'import/named': ERROR,
'import/namespace': ERROR,
'import/newline-after-import': ERROR,
'import/no-cycle': WARN,
'import/no-default-export': ERROR,
Expand All @@ -205,8 +202,8 @@ module.exports = {
],

'unicorn/better-regex': WARN,
'unicorn/catch-error-name': OFF,
'unicorn/consistent-function-scoping': OFF,
'unicorn/catch-error-name': ERROR,
'unicorn/consistent-function-scoping': ERROR,
'unicorn/explicit-length-check': WARN,
'unicorn/filename-case': WARN,
'unicorn/import-index': WARN,
Expand All @@ -216,20 +213,20 @@ module.exports = {
'unicorn/no-array-callback-reference': WARN,
'unicorn/no-null': OFF,
'unicorn/no-object-as-default-parameter': WARN,
'unicorn/no-process-exit': OFF,
'unicorn/no-unreadable-array-destructuring': OFF,
'unicorn/no-useless-undefined': OFF,
'unicorn/no-process-exit': ERROR,
'unicorn/no-unreadable-array-destructuring': ERROR,
'unicorn/no-useless-undefined': ERROR,
'unicorn/prefer-add-event-listener': WARN,
'unicorn/prefer-array-flat': OFF,
'unicorn/prefer-array-flat': ERROR,
'unicorn/prefer-module': OFF,
'unicorn/prefer-negative-index': WARN,
'unicorn/prefer-node-protocol': OFF,
'unicorn/prefer-number-properties': OFF,
'unicorn/prefer-object-from-entries': OFF,
'unicorn/prefer-number-properties': ERROR,
'unicorn/prefer-object-from-entries': ERROR,
'unicorn/prefer-optional-catch-binding': WARN,
'unicorn/prefer-query-selector': WARN,
'unicorn/prefer-set-has': WARN,
'unicorn/prefer-spread': OFF,
'unicorn/prefer-spread': ERROR,
'unicorn/prefer-string-slice': WARN,
'unicorn/prefer-ternary': WARN,
'unicorn/prevent-abbreviations': OFF,
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ jobs:
uses: actions/checkout@v3.0.2

- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@v2.1.9
with:
languages: ${{ matrix.language }}

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v2.1.9

0 comments on commit 22fc5a9

Please sign in to comment.