mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-27 19:03:46 +02:00
59 lines
1.4 KiB
JavaScript
59 lines
1.4 KiB
JavaScript
import eslint from '@eslint/js';
|
|
import tseslint from 'typescript-eslint';
|
|
import stylistic from '@stylistic/eslint-plugin';
|
|
|
|
export default tseslint.config(
|
|
eslint.configs.recommended,
|
|
tseslint.configs.recommendedTypeChecked,
|
|
{
|
|
languageOptions: {
|
|
parserOptions: {
|
|
projectService: true,
|
|
tsconfigRootDir: import.meta.dirname,
|
|
},
|
|
},
|
|
},
|
|
stylistic.configs.customize({
|
|
indent: 'tab',
|
|
quotes: 'single',
|
|
semi: true,
|
|
braceStyle: '1tbs',
|
|
}),
|
|
{
|
|
rules: {
|
|
'@stylistic/max-len': ['error', {
|
|
code: 120,
|
|
}],
|
|
'curly': ['error', 'multi-line'],
|
|
'eqeqeq': ['error', 'always', { null: 'ignore' }],
|
|
'@typescript-eslint/no-empty-object-type': 'off',
|
|
'@typescript-eslint/require-await': 'off',
|
|
'@stylistic/yield-star-spacing': ['error', { before: false, after: true }],
|
|
'@typescript-eslint/no-unsafe-enum-comparison': 'off',
|
|
'@typescript-eslint/no-unsafe-unary-minus': 'off',
|
|
'@typescript-eslint/no-deprecated': 'error',
|
|
'@typescript-eslint/consistent-type-exports': 'error',
|
|
},
|
|
},
|
|
{
|
|
ignores: [
|
|
'dist',
|
|
'dist-docs',
|
|
'packages/mp3-encoder/dist',
|
|
'packages/mp3-encoder/build',
|
|
'packages/ac3/dist',
|
|
'packages/ac3/build',
|
|
'packages/aac-encoder/dist',
|
|
'packages/aac-encoder/build',
|
|
'packages/flac-encoder/dist',
|
|
'packages/flac-encoder/build',
|
|
'packages/prores/dist',
|
|
'packages/server/dist',
|
|
'eslint.config.mjs',
|
|
'docs/.vitepress/cache',
|
|
'test/public',
|
|
'testfiles_temp'
|
|
]
|
|
}
|
|
);
|