mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
24 lines
545 B
TypeScript
24 lines
545 B
TypeScript
import js from '@eslint/js';
|
|
import typescriptPlugin from '@typescript-eslint/eslint-plugin';
|
|
import parser from '@typescript-eslint/parser';
|
|
import type { Linter } from 'eslint';
|
|
|
|
export default [
|
|
js.configs.recommended,
|
|
{
|
|
ignores: ['public/'],
|
|
},
|
|
{
|
|
files: ['**/*.ts'],
|
|
languageOptions: {
|
|
parser: parser,
|
|
},
|
|
plugins: {
|
|
'@typescript-eslint': typescriptPlugin,
|
|
},
|
|
rules: {
|
|
...typescriptPlugin.configs.recommended.rules,
|
|
'sort-imports': 'error',
|
|
},
|
|
},
|
|
] satisfies Linter.Config[];
|