eslint-config/packages/eslint-plugin-antfu/src/index.ts

26 lines
1.0 KiB
TypeScript
Raw Normal View History

2022-11-01 03:34:15 +08:00
import genericSpacing from './rules/generic-spacing'
2022-04-02 23:51:24 +08:00
import ifNewline from './rules/if-newline'
import importDedupe from './rules/import-dedupe'
2022-04-07 05:53:45 +08:00
import preferInlineTypeImport from './rules/prefer-inline-type-import'
import topLevelFunction from './rules/top-level-function'
import noImportNodeModulesByPath from './rules/no-import-node-modules-by-path'
import noTsExportEqual from './rules/no-ts-export-equal'
import noCjsExports from './rules/no-cjs-exports'
2023-06-28 20:05:23 +08:00
import noConstEnum from './rules/no-const-enum'
2023-08-01 22:58:56 +08:00
import namedTupleSpacing from './rules/named-tuple-spacing'
2022-04-02 23:18:36 +08:00
export default {
rules: {
2022-04-02 23:51:24 +08:00
'if-newline': ifNewline,
'import-dedupe': importDedupe,
2022-04-07 05:53:45 +08:00
'prefer-inline-type-import': preferInlineTypeImport,
2022-11-01 03:34:15 +08:00
'generic-spacing': genericSpacing,
'top-level-function': topLevelFunction,
'no-import-node-modules-by-path': noImportNodeModulesByPath,
'no-cjs-exports': noCjsExports,
'no-ts-export-equal': noTsExportEqual,
2023-06-28 20:05:23 +08:00
'no-const-enum': noConstEnum,
2023-08-01 22:58:56 +08:00
'named-tuple-spacing': namedTupleSpacing,
2022-04-02 23:18:36 +08:00
},
}