mirror of
https://github.com/anidl/multi-downloader-nx.git
synced 2026-01-11 12:00:22 +00:00
Some checks are pending
auto-documentation / documentation (push) Waiting to run
build and push docker image / build-node (push) Waiting to run
Style and build test / tsc (push) Waiting to run
Style and build test / eslint (push) Blocked by required conditions
Style and build test / prettier (push) Blocked by required conditions
Style and build test / build-test-windows-arm64 (push) Blocked by required conditions
Style and build test / build-test-linux-arm64 (push) Blocked by required conditions
Style and build test / build-test-macos-arm64 (push) Blocked by required conditions
Style and build test / build-test-windows-x64 (push) Blocked by required conditions
Style and build test / build-test-linux-x64 (push) Blocked by required conditions
Style and build test / build-test-macos-x64 (push) Blocked by required conditions
47 lines
1.1 KiB
TypeScript
47 lines
1.1 KiB
TypeScript
// @ts-check
|
|
|
|
import eslint from '@eslint/js';
|
|
import tseslint from 'typescript-eslint';
|
|
import prettier from 'eslint-config-prettier';
|
|
|
|
export default tseslint.config(
|
|
eslint.configs.recommended,
|
|
...tseslint.configs.recommended,
|
|
{
|
|
rules: {
|
|
'no-console': 2,
|
|
'react/prop-types': 0,
|
|
'react-hooks/exhaustive-deps': 0,
|
|
'@typescript-eslint/no-explicit-any': 'off',
|
|
'@typescript-eslint/no-unsafe-declaration-merging': 'warn',
|
|
'@typescript-eslint/no-unused-vars': 'warn',
|
|
'@typescript-eslint/no-unused-expressions': 'warn',
|
|
indent: ['error', 4],
|
|
'linebreak-style': ['warn', 'windows'],
|
|
quotes: ['error', 'single', { avoidEscape: true }],
|
|
semi: ['error', 'always']
|
|
},
|
|
languageOptions: {
|
|
parserOptions: {
|
|
ecmaFeatures: {
|
|
jsx: true
|
|
},
|
|
ecmaVersion: 2020,
|
|
sourceType: 'module'
|
|
},
|
|
parser: tseslint.parser
|
|
}
|
|
},
|
|
{
|
|
ignores: ['**/lib', '**/videos', '**/build', 'tsc.ts']
|
|
},
|
|
{
|
|
files: ['gui/react/**/*'],
|
|
rules: {
|
|
'no-console': 0,
|
|
indent: 'off'
|
|
}
|
|
},
|
|
// Disables all rules that conflict with prettier
|
|
prettier
|
|
);
|