Skip to content

Commit

Permalink
fix: add types to all ESLint config
Browse files Browse the repository at this point in the history
  • Loading branch information
rainerhahnekamp committed Jul 24, 2024
1 parent 409cf7e commit a0b6171
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
10 changes: 8 additions & 2 deletions packages/eslint-plugin/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
import rules from './lib/rules';
import { legacy } from "./lib/configs/legacy";
import { all } from "./lib/configs/all";
import {
name as packageName,
version as packageVersion,
} from '../package.json';

const meta = { name: packageName, version: packageVersion };

const configs = {
legacy,
all
};

export {configs, rules};
export {configs, rules, meta};

export default { configs, rules };
export default { configs, rules, meta };
8 changes: 6 additions & 2 deletions packages/eslint-plugin/src/lib/configs/all.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
import rules from '../rules';
import { parser } from 'typescript-eslint';
import type { TSESLint } from '@typescript-eslint/utils';

export const all = {
languageOptions: { parser, sourceType: 'module' },
export const all: TSESLint.FlatConfig.Config = {
languageOptions: {
parser,
sourceType: 'module',
},
plugins: {
'@softarc/sheriff': {
rules,
Expand Down

0 comments on commit a0b6171

Please sign in to comment.