Files
suwayomi-material-you-webui/eslint.config.js

38 lines
1.1 KiB
JavaScript
Raw Normal View History

2026-03-10 22:28:19 +01:00
/*
* Minimal ESLint config only rules not yet supported natively in oxlint.
* The bulk of linting is done by oxlint (.oxlintrc.json).
*/
import tseslint from 'typescript-eslint';
import header from '@tony.ganchev/eslint-plugin-header';
export default tseslint.config(
2026-03-10 22:28:19 +01:00
{ ignores: ['src/lib/graphql/generated/**', 'eslint.config.js'] },
{
2026-03-10 22:28:19 +01:00
files: ['**/*.{ts,tsx,js,jsx}'],
languageOptions: {
2026-03-10 22:28:19 +01:00
parser: tseslint.parser,
},
plugins: {
header,
},
rules: {
2026-03-10 22:28:19 +01:00
// MPL 2.0 license header
'header/header': [
'error',
'block',
[
'',
' * Copyright (C) Contributors to the Suwayomi project',
' *',
' * This Source Code Form is subject to the terms of the Mozilla Public',
' * License, v. 2.0. If a copy of the MPL was not distributed with this',
' * file, You can obtain one at https://mozilla.org/MPL/2.0/.',
' ',
],
2,
],
},
},
);