Skip to content

Commit

Permalink
update eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
geoperez committed Jul 15, 2024
1 parent 6a46ada commit a75b2d6
Show file tree
Hide file tree
Showing 15 changed files with 4,046 additions and 10,894 deletions.
22 changes: 0 additions & 22 deletions .eslintrc

This file was deleted.

4 changes: 2 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
version: 2

updates:
- package-ecosystem: npm
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
- package-ecosystem: github-actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
12 changes: 12 additions & 0 deletions .github/workflows/bump-deps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: npm Bump Deps

on:
schedule:
- cron: '0 1 * * 9'
workflow_dispatch:

jobs:
publish:
uses: unosquare/bump-npm-version/.github/workflows/bump-deps.yml@master
secrets:
github-token: ${{ secrets.GPR_ACCESS_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ jobs:
uses: unosquare/bump-npm-version/.github/workflows/publish-public.yml@master
secrets:
github-token: ${{ secrets.GPR_ACCESS_TOKEN }}
npm-token: ${{ secrets.NPM_TOKEN }}
npm-token: ${{ secrets.NPM_TOKEN }}
27 changes: 27 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/* eslint-env node */
const eslint = require('@eslint/js');
const tseslint = require('typescript-eslint');

module.exports = tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
...tseslint.configs.stylistic,
{
files: ['src/*.ts'],
rules: {
'arrow-body-style': ['error', 'as-needed'],
'@typescript-eslint/no-unused-vars': [
'error',
{
args: 'all',
argsIgnorePattern: '^_',
caughtErrors: 'all',
caughtErrorsIgnorePattern: '^_',
destructuredArrayIgnorePattern: '^_',
varsIgnorePattern: '^_',
ignoreRestSiblings: true,
},
],
},
},
);
Loading

0 comments on commit a75b2d6

Please sign in to comment.