UNPKG

@alexlit/lint-kit

Version:

Preset of configuration files and dependencies for linting web applications (designed for Vue.js with TypeScript)

33 lines (30 loc) 919 B
import plugin from 'eslint-plugin-perfectionist'; import { FILES } from '../presets/base.js'; /** @see [eslint-plugin-perfectionist](https://perfectionist.dev) */ export const perfectionist = [ { files: FILES, ...plugin.configs['recommended-natural'] }, { files: FILES, rules: { 'perfectionist/sort-imports': [ 'warn', { internalPattern: ['^#.*', '^~/.*', '^~~/.*', '^@/.*', '^@@/.*'], type: 'natural', }, ], 'perfectionist/sort-interfaces': [ 'warn', { newlinesBetween: 0, partitionByComment: false, type: 'natural' }, ], 'perfectionist/sort-object-types': [ 'warn', { newlinesBetween: 0, partitionByComment: false, type: 'natural' }, ], 'perfectionist/sort-objects': [ 'warn', { newlinesBetween: 0, partitionByComment: false, type: 'natural' }, ], }, }, ];