mirror of
https://github.com/robonen/tools.git
synced 2026-03-20 10:54:44 +00:00
21 lines
549 B
TypeScript
21 lines
549 B
TypeScript
import type { OxlintConfig } from '../types';
|
|
|
|
/**
|
|
* Import plugin rules for clean module boundaries.
|
|
*/
|
|
export const imports: OxlintConfig = {
|
|
plugins: ['import'],
|
|
|
|
rules: {
|
|
'import/no-duplicates': 'error',
|
|
'import/no-self-import': 'error',
|
|
'import/no-cycle': 'warn',
|
|
'import/first': 'warn',
|
|
'import/no-mutable-exports': 'error',
|
|
'import/no-amd': 'error',
|
|
'import/no-commonjs': 'warn',
|
|
'import/no-empty-named-blocks': 'warn',
|
|
'import/consistent-type-specifier-style': ['warn', 'prefer-top-level'],
|
|
},
|
|
};
|