johnsoncodehk / tsslint

🔋⚡️ The fastest and lightest TypeScript semantic linting solution
MIT License
287 stars 2 forks source link

feat(config): supports importing rules from http url #7

Closed johnsoncodehk closed 4 months ago

johnsoncodehk commented 4 months ago

Supports directly using HTTP URL to import single or multiple rules without adding dependencies in package.json.

import { defineConfig } from '@tsslint/config';

export default defineConfig({
    rules: {
        'no-console': (await import('https://.../noConsoleRule.ts')).create(),
    },
});