Skip to content

Commit

Permalink
Add company renovate config (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
joegeary authored Nov 26, 2024
1 parent 9f1b49d commit 1fa2e95
Show file tree
Hide file tree
Showing 8 changed files with 359 additions and 271 deletions.
4 changes: 4 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["github>oncoursesystems/renovate-config"]
}
20 changes: 0 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,23 +116,3 @@ jobs:
run: pnpm install --frozen-lockfile
- name: Run test
run: pnpm run test

ci-req-test:
runs-on: self-hosted
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Check all-status-check
run: |
diff \
<(yq ".jobs | del(.all-status-check) | keys.[]" .github/workflows/ci.yml) \
<(yq ".jobs.all-status-check.needs.[]" .github/workflows/ci.yml)
all-status-check:
runs-on: self-hosted
needs: [build-test, build-inspector-test, type-test, lint-test, vitest-test, ci-req-test]
steps:
- name: All status check
run: echo All status check passed
592 changes: 348 additions & 244 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { expo } from './configs/expo';
import { javascript } from './configs/javascript';
import { sencha } from './configs/sencha';

import type { Configs, Options } from './index';

export default function oncourseConfigs(options?: Options): Configs {
Expand Down
4 changes: 1 addition & 3 deletions src/configs/javascript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,8 @@ export function javascript(): TypedFlatConfigItem {
'perfectionist/sort-imports': [
'error',
{
environment: 'node',
groups: [['builtin', 'external'], 'internal', 'parent', 'sibling'],
groups: [['builtin', 'external'], 'internal', 'parent', 'sibling', 'index'],
ignoreCase: false,
internalPattern: ['@/**', '~/**'],
type: 'natural',
},
],
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import type { FlatConfigComposer } from 'eslint-flat-config-utils';
import oncourseConfigs from './config';
import oncourseOptions from './options';

export type Options = {
export type Options = Omit<TypedFlatConfigItem, 'files'> & OptionsConfig & {
expo?: boolean;
sencha?: boolean;
} & Omit<TypedFlatConfigItem, 'files'> & OptionsConfig;
};
export type Composer = FlatConfigComposer<TypedFlatConfigItem, ConfigNames>;
export type Configs = Array<Awaitable<Array<Linter.Config> | Array<TypedFlatConfigItem> | FlatConfigComposer<any, any> | TypedFlatConfigItem>>;

Expand Down
1 change: 1 addition & 0 deletions src/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import type { OptionsConfig, TypedFlatConfigItem } from '@antfu/eslint-config';

import { reactOverrides, reactPlugins } from './configs/react';
import { typescript } from './configs/typescript';

import type { Options } from './index';

export default function oncourseOptions(options?: Options): Omit<TypedFlatConfigItem, 'files'> & OptionsConfig {
Expand Down
4 changes: 2 additions & 2 deletions src/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ declare module 'eslint-plugin-expo';
declare module '@sencha/eslint-plugin-extjs' {
import type { ESLint } from 'eslint';

const eslintPluginSencha: {
const eslintPluginSencha: ESLint.Plugin & {
configs: {
deprecated: ESLint.Config;
private: ESLint.Config;
recommended: ESLint.Config;
removed: ESLint.Config;
};
} & ESLint.Plugin;
};

export default eslintPluginSencha;
}

0 comments on commit 1fa2e95

Please sign in to comment.