Skip to content

Commit afcb88e

Browse files
authored
Update ESLint and remove outdated dependencies (#261)
2 parents 8d710b3 + b032bf1 commit afcb88e

12 files changed

Lines changed: 4039 additions & 9721 deletions

File tree

__tests__/index.test.ts

Lines changed: 0 additions & 37 deletions
This file was deleted.

__tests__/stubs/env.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ const empty: EnvMetadata = {
88
actionFile: '',
99
actionPath: '',
1010
artifacts: [],
11+
caches: {},
1112
dotenvFile: '',
1213
entrypoint: '',
1314
env: {},

eslint.config.mjs

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
import { fixupPluginRules } from '@eslint/compat'
21
import { FlatCompat } from '@eslint/eslintrc'
32
import js from '@eslint/js'
43
import typescriptEslint from '@typescript-eslint/eslint-plugin'
54
import tsParser from '@typescript-eslint/parser'
6-
import _import from 'eslint-plugin-import'
75
import prettier from 'eslint-plugin-prettier'
86
import globals from 'globals'
97
import path from 'node:path'
@@ -37,12 +35,10 @@ export default [
3735
...compat.extends(
3836
'eslint:recommended',
3937
'plugin:@typescript-eslint/eslint-recommended',
40-
'plugin:@typescript-eslint/recommended',
41-
'plugin:prettier/recommended'
38+
'plugin:@typescript-eslint/recommended'
4239
),
4340
{
4441
plugins: {
45-
import: fixupPluginRules(_import),
4642
prettier,
4743
'@typescript-eslint': typescriptEslint
4844
},
@@ -63,22 +59,12 @@ export default [
6359
}
6460
},
6561

66-
settings: {
67-
'import/resolver': {
68-
typescript: {
69-
alwaysTryTypes: true,
70-
project: 'tsconfig.eslint.json'
71-
}
72-
}
73-
},
74-
7562
rules: {
7663
'@typescript-eslint/no-explicit-any': 'off',
7764
camelcase: 'off',
7865
'eslint-comments/no-use': 'off',
7966
'eslint-comments/no-unused-disable': 'off',
8067
'i18n-text/no-en': 'off',
81-
'import/no-namespace': 'off',
8268
'no-console': 'off',
8369
'no-shadow': 'off',
8470
'no-unused-vars': 'off',

jest.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ const config: JestConfigWithTsJest = {
99
'node_modules',
1010
'src/types/quibble.d.ts',
1111
'src/commands/run.ts',
12-
'src/stubs/artifact/artifact.ts'
12+
'src/stubs/artifact/artifact.ts',
13+
'src/index.ts'
1314
],
1415
coverageReporters: ['json-summary', 'lcov', 'text'],
1516
coverageThreshold: {

0 commit comments

Comments
 (0)