mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-10-02 21:33:52 +02:00
Add ESLint and lint a bunch
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
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,
|
||||
}],
|
||||
'@typescript-eslint/no-empty-object-type': 'off',
|
||||
},
|
||||
},
|
||||
{
|
||||
ignores: [
|
||||
'dist',
|
||||
'build',
|
||||
'api-sketch.ts',
|
||||
'build.mjs',
|
||||
'append-namespace.mjs',
|
||||
'eslint.config.mjs',
|
||||
]
|
||||
}
|
||||
);
|
||||
Reference in New Issue
Block a user