-
-
Notifications
You must be signed in to change notification settings - Fork 256
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2562 from iptv-org/freearhey-patch-5
Patch 2025.01.1
- Loading branch information
Showing
180 changed files
with
7,332 additions
and
7,171 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: check | ||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
types: [opened, synchronize, reopened, edited] | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
jobs: | ||
check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 2 | ||
- uses: tj-actions/changed-files@v45 | ||
id: files | ||
with: | ||
since_last_remote_commit: true | ||
files_yaml: | | ||
js: | ||
- tests/**/*.{js,ts} | ||
- scripts/**/*.{js,ts} | ||
- sites/**/*.{js,ts} | ||
channels: | ||
- sites/**/*.channels.xml | ||
- uses: actions/setup-node@v4 | ||
if: ${{ !env.ACT && (steps.files.outputs.js_any_changed == 'true' || steps.files.outputs.channels_any_changed == 'true') }} | ||
with: | ||
node-version: 22 | ||
cache: 'npm' | ||
- name: install dependencies | ||
if: steps.files.outputs.js_any_changed == 'true' || steps.files.outputs.channels_any_changed == 'true' | ||
run: SKIP_POSTINSTALL=1 npm install | ||
- name: check changed js-files | ||
if: steps.files.outputs.js_any_changed == 'true' | ||
run: | | ||
npx eslint ${{ steps.files.outputs.js_all_changed_files }} | ||
- name: check changed *.channels.xml | ||
if: steps.files.outputs.channels_any_changed == 'true' | ||
run: | | ||
npm run channels:lint -- ${{ steps.files.outputs.channels_all_changed_files }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
npm run lint | ||
npm run channels:lint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
_table.md |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Sites | ||
|
||
<!-- prettier-ignore --> | ||
#include "./.sites/_table.md" | ||
# Sites | ||
|
||
<!-- prettier-ignore --> | ||
#include "./.sites/_table.md" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
import typescriptEslint from '@typescript-eslint/eslint-plugin' | ||
import globals from 'globals' | ||
import tsParser from '@typescript-eslint/parser' | ||
import path from 'node:path' | ||
import { fileURLToPath } from 'node:url' | ||
import js from '@eslint/js' | ||
import { FlatCompat } from '@eslint/eslintrc' | ||
|
||
const __filename = fileURLToPath(import.meta.url) | ||
const __dirname = path.dirname(__filename) | ||
const compat = new FlatCompat({ | ||
baseDirectory: __dirname, | ||
recommendedConfig: js.configs.recommended, | ||
allConfig: js.configs.all | ||
}) | ||
|
||
export default [ | ||
...compat.extends('eslint:recommended', 'plugin:@typescript-eslint/recommended', 'prettier'), | ||
{ | ||
plugins: { | ||
'@typescript-eslint': typescriptEslint | ||
}, | ||
|
||
languageOptions: { | ||
globals: { | ||
...globals.node, | ||
...globals.jest | ||
}, | ||
|
||
parser: tsParser, | ||
ecmaVersion: 'latest', | ||
sourceType: 'module' | ||
}, | ||
|
||
rules: { | ||
'@typescript-eslint/no-require-imports': 'off', | ||
'@typescript-eslint/no-var-requires': 'off', | ||
'no-case-declarations': 'off', | ||
'linebreak-style': ['error', 'windows'], | ||
|
||
quotes: [ | ||
'error', | ||
'single', | ||
{ | ||
avoidEscape: true | ||
} | ||
], | ||
|
||
semi: ['error', 'never'] | ||
} | ||
} | ||
] |
Oops, something went wrong.