Skip to content

Commit

Permalink
Merge pull request #21 from fixpoint/up-deps
Browse files Browse the repository at this point in the history
Upgrade dependencies
  • Loading branch information
lambdalisue authored Oct 18, 2022
2 parents 71a382e + b429e80 commit 1183f06
Show file tree
Hide file tree
Showing 8 changed files with 57,172 additions and 38,596 deletions.
75 changes: 37 additions & 38 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,67 +1,66 @@
module.exports = {
env: {
es6: true,
node: true
node: true,
},
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"prettier",
"prettier/@typescript-eslint"
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
'prettier',
],
plugins: ["@typescript-eslint", "prettier"],
plugins: ['@typescript-eslint', 'prettier'],
rules: {
// I agree with https://github.com/palantir/tslint/issues/3265#issuecomment-333285962
"@typescript-eslint/interface-name-prefix": "off",
'@typescript-eslint/interface-name-prefix': 'off',
// I agree with https://github.com/typescript-eslint/typescript-eslint/issues/201
"@typescript-eslint/explicit-member-accessibility": [
"error",
{ accessibility: "no-public" }
'@typescript-eslint/explicit-member-accessibility': [
'error',
{ accessibility: 'no-public' },
],
// Empty interface is often used for standardize interface
"@typescript-eslint/no-empty-interface": "off",
'@typescript-eslint/no-empty-interface': 'off',
// Strict type is ideal but we are writing code for application but for perfect type system
// and I think those rules are too strict sometime.
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/explicit-function-return-type": "off",
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
// ESLint does not have TSLint's 'ordered-imports' which follows TypeScript's Organise Import
// specification so use ESLint's 'sort-imports' without DeclarationSort to partially mimic
// the spec for now.
// See https://github.com/typescript-eslint/typescript-eslint/pull/256
"sort-imports": [
"warn",
'sort-imports': [
'warn',
{
ignoreDeclarationSort: true
}
]
ignoreDeclarationSort: true,
},
],
},
overrides: [
{
files: ["*.ts", "*.tsx"],
files: ['*.ts', '*.tsx'],
rules: {
"no-dupe-class-members": "off"
}
'no-dupe-class-members': 'off',
},
},
{
files: [
"*.spec.ts",
"*.test.ts",
"*.spec.tsx",
"*.test.tsx",
"*.spec.js",
"*.test.js",
"*.spec.jsx",
"*.test.jsx",
"*/__tests__/*.ts",
"*/__tests__/*.tsx",
"*/__tests__/*.js",
"*/__tests__/*.jsx"
'*.spec.ts',
'*.test.ts',
'*.spec.tsx',
'*.test.tsx',
'*.spec.js',
'*.test.js',
'*.spec.jsx',
'*.test.jsx',
'*/__tests__/*.ts',
'*/__tests__/*.tsx',
'*/__tests__/*.js',
'*/__tests__/*.jsx',
],
env: {
browser: true,
jest: true
}
}
]
jest: true,
},
},
],
};
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- run: npm ci
- run: npm run build

Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ inputs:
required: false
default: 'false'
runs:
using: 'node12'
using: 'node16'
main: 'dist/index.js'
Loading

0 comments on commit 1183f06

Please sign in to comment.