mirror of
https://github.com/kuhyx/steam-backlog-enforcer.git
synced 2026-11-10 19:27:04 +01:00
Some checks failed
dependency freshness / dependencies on newest stable (push) Has been cancelled
md-naming / markdown naming convention (push) Has been cancelled
pre-commit / pre-commit (${{ matrix.group }}) (mypy, mypy, ) (push) Has been cancelled
pre-commit / pre-commit (${{ matrix.group }}) (pylint, pylint, ) (push) Has been cancelled
pre-commit / pre-commit (${{ matrix.group }}) (rest, , mypy,pylint) (push) Has been cancelled
Tests / test (push) Has been cancelled
Tests / web-coverage (push) Has been cancelled
repo-contract / repo contract (push) Has been cancelled
Todo: 9b9342ba
38 lines
1.3 KiB
JavaScript
38 lines
1.3 KiB
JavaScript
import js from '@eslint/js'
|
|
import astro from 'eslint-plugin-astro'
|
|
import globals from 'globals'
|
|
import tseslint from 'typescript-eslint'
|
|
|
|
// typescript-eslint strict + stylistic (type-checked) on .ts; .astro files get
|
|
// eslint-plugin-astro's recommended set (their scripts also pass astro check).
|
|
export default tseslint.config(
|
|
{ ignores: ['dist', 'coverage', '.astro', 'src/env.d.ts'] },
|
|
{ linterOptions: { reportUnusedDisableDirectives: 'error' } },
|
|
js.configs.recommended,
|
|
...[...tseslint.configs.strictTypeChecked, ...tseslint.configs.stylisticTypeChecked].map((c) => ({
|
|
...c,
|
|
files: ['**/*.ts'],
|
|
})),
|
|
...astro.configs['flat/recommended'],
|
|
{
|
|
files: ['**/*.ts'],
|
|
languageOptions: {
|
|
globals: globals.browser,
|
|
parserOptions: { project: './tsconfig.json', tsconfigRootDir: import.meta.dirname },
|
|
},
|
|
rules: {
|
|
'@typescript-eslint/restrict-template-expressions': ['error', { allowNumber: true }],
|
|
},
|
|
},
|
|
{
|
|
files: ['**/*.test.ts', 'src/test/**'],
|
|
rules: { '@typescript-eslint/unbound-method': 'off' },
|
|
},
|
|
{
|
|
// The dev-only mock API and the configs run in Node, not the browser.
|
|
files: ['mock/**/*.ts', '*.js', '*.mjs', 'vitest.config.ts'],
|
|
languageOptions: { globals: globals.node },
|
|
},
|
|
{ files: ['*.js', '*.mjs'], ...tseslint.configs.disableTypeChecked },
|
|
)
|