mirror of
https://github.com/actions/attest-build-provenance.git
synced 2025-12-16 20:30:59 +00:00
Some checks failed
Check Transpiled JavaScript / Check dist/ (push) Failing after 2s
Continuous Integration / TypeScript Tests (push) Failing after 1s
Continuous Integration / Test attest-provenance action (push) Failing after 1s
Lint Codebase / Lint Codebase (push) Failing after 1s
CodeQL / Analyze (TypeScript) (push) Failing after 2s
Public-Good Sigstore Prober / prober (push) Failing after 1s
GitHub Sigstore Prober / prober (push) Failing after 1s
* Bump the npm-development group across 1 directory with 6 updates Bumps the npm-development group with 6 updates in the / directory: | Package | From | To | | --- | --- | --- | | [@eslint/js](https://github.com/eslint/eslint/tree/HEAD/packages/js) | `9.30.0` | `9.31.0` | | [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) | `24.0.7` | `24.0.15` | | [eslint](https://github.com/eslint/eslint) | `9.30.0` | `9.31.0` | | [jest](https://github.com/jestjs/jest/tree/HEAD/packages/jest) | `30.0.3` | `30.0.4` | | [nock](https://github.com/nock/nock) | `14.0.5` | `14.0.6` | | [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-eslint) | `8.35.0` | `8.37.0` | Updates `@eslint/js` from 9.30.0 to 9.31.0 - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md) - [Commits](https://github.com/eslint/eslint/commits/v9.31.0/packages/js) Updates `@types/node` from 24.0.7 to 24.0.15 - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) Updates `eslint` from 9.30.0 to 9.31.0 - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md) - [Commits](https://github.com/eslint/eslint/compare/v9.30.0...v9.31.0) Updates `jest` from 30.0.3 to 30.0.4 - [Release notes](https://github.com/jestjs/jest/releases) - [Changelog](https://github.com/jestjs/jest/blob/main/CHANGELOG.md) - [Commits](https://github.com/jestjs/jest/commits/v30.0.4/packages/jest) Updates `nock` from 14.0.5 to 14.0.6 - [Release notes](https://github.com/nock/nock/releases) - [Changelog](https://github.com/nock/nock/blob/main/CHANGELOG.md) - [Commits](https://github.com/nock/nock/compare/v14.0.5...v14.0.6) Updates `typescript-eslint` from 8.35.0 to 8.37.0 - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-eslint/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.37.0/packages/typescript-eslint) --- updated-dependencies: - dependency-name: "@eslint/js" dependency-version: 9.31.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: npm-development - dependency-name: "@types/node" dependency-version: 24.0.15 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: npm-development - dependency-name: eslint dependency-version: 9.31.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: npm-development - dependency-name: jest dependency-version: 30.0.4 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: npm-development - dependency-name: nock dependency-version: 14.0.6 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: npm-development - dependency-name: typescript-eslint dependency-version: 8.37.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: npm-development ... Signed-off-by: dependabot[bot] <support@github.com> * avoid path duplication --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Eugene <108841108+ejahnGithub@users.noreply.github.com> Co-authored-by: ejahnGithub <ejahngithub@github.com>
93 lines
3.2 KiB
JavaScript
93 lines
3.2 KiB
JavaScript
import eslint from '@eslint/js'
|
|
import importplugin from 'eslint-plugin-import'
|
|
import jestplugin from 'eslint-plugin-jest'
|
|
import tseslint from 'typescript-eslint'
|
|
|
|
export default tseslint.config(
|
|
// Ignore non-project files
|
|
{
|
|
name: 'ignore',
|
|
ignores: ['.github', 'dist', 'coverage', '**/*.json', 'jest.setup.js']
|
|
},
|
|
// Use recommended rules from ESLint, TypeScript, and other plugins
|
|
eslint.configs.recommended,
|
|
tseslint.configs.recommendedTypeChecked,
|
|
jestplugin.configs['flat/recommended'],
|
|
importplugin.flatConfigs.recommended,
|
|
importplugin.flatConfigs.typescript,
|
|
// Override some rules
|
|
{
|
|
name: 'project-settings',
|
|
languageOptions: {
|
|
ecmaVersion: 2023,
|
|
parserOptions: {
|
|
project: ['./tsconfig.json']
|
|
}
|
|
},
|
|
rules: {
|
|
// eslint rules
|
|
eqeqeq: ['error', 'smart'],
|
|
'func-style': ['error', 'declaration', { allowArrowFunctions: true }],
|
|
'no-console': 'off',
|
|
'no-implicit-globals': 'error',
|
|
'no-inner-declarations': 'error',
|
|
'no-invalid-this': 'error',
|
|
'no-return-assign': 'error',
|
|
'no-sequences': 'error',
|
|
'no-shadow': 'error',
|
|
'no-useless-concat': 'error',
|
|
'object-shorthand': ['error', 'always', { avoidQuotes: true }],
|
|
'one-var': ['error', 'never'],
|
|
'prefer-template': 'error',
|
|
|
|
// typescript-eslint rules
|
|
'@typescript-eslint/array-type': 'error',
|
|
'@typescript-eslint/consistent-type-assertions': 'error',
|
|
'@typescript-eslint/explicit-function-return-type': [
|
|
'error',
|
|
{ allowExpressions: true }
|
|
],
|
|
'@typescript-eslint/explicit-member-accessibility': [
|
|
'error',
|
|
{ accessibility: 'no-public' }
|
|
],
|
|
'@typescript-eslint/no-extraneous-class': 'error',
|
|
'@typescript-eslint/no-inferrable-types': 'error',
|
|
'@typescript-eslint/no-non-null-assertion': 'warn',
|
|
'@typescript-eslint/no-unnecessary-qualifier': 'error',
|
|
'@typescript-eslint/no-unsafe-assignment': 'off',
|
|
'@typescript-eslint/no-useless-constructor': 'error',
|
|
'@typescript-eslint/prefer-for-of': 'warn',
|
|
'@typescript-eslint/prefer-function-type': 'warn',
|
|
'@typescript-eslint/prefer-includes': 'error',
|
|
'@typescript-eslint/prefer-string-starts-ends-with': 'error',
|
|
'@typescript-eslint/promise-function-async': 'error',
|
|
'@typescript-eslint/require-array-sort-compare': 'error',
|
|
'@typescript-eslint/restrict-template-expressions': 'off',
|
|
|
|
// eslint-plugin-import rules
|
|
'import/extensions': 'error',
|
|
'import/first': 'error',
|
|
'import/no-absolute-path': 'error',
|
|
'import/no-commonjs': 'error',
|
|
'import/no-deprecated': 'warn',
|
|
'import/no-dynamic-require': 'error',
|
|
'import/no-extraneous-dependencies': 'error',
|
|
'import/no-mutable-exports': 'error',
|
|
'import/no-namespace': 'off',
|
|
'import/no-unresolved': ['error', { ignore: ['csv-parse/sync'] }],
|
|
'import/no-anonymous-default-export': [
|
|
'error',
|
|
{
|
|
allowAnonymousClass: false,
|
|
allowAnonymousFunction: false,
|
|
allowArray: true,
|
|
allowArrowFunction: false,
|
|
allowLiteral: true,
|
|
allowObject: true
|
|
}
|
|
]
|
|
}
|
|
}
|
|
)
|