Skip to content

Commit 2a65abf

Browse files
committed
satisfying eslint
1 parent 81c49f3 commit 2a65abf

File tree

5 files changed

+2002
-56
lines changed

5 files changed

+2002
-56
lines changed

eslint.config.mjs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import config from '@signpostmarv/eslint-config';
22
import parser from '@typescript-eslint/parser';
3+
import imports from 'eslint-plugin-import';
34

45
export default [
56
{
@@ -15,4 +16,21 @@ export default [
1516
files: ['**/*.ts', './src/**/*.ts'],
1617
ignores: ['**/*.d.ts', '**/*.js', '**/*.mjs'],
1718
},
19+
{
20+
plugins: {
21+
imports,
22+
},
23+
rules: {
24+
'imports/no-internal-modules': ['error', {
25+
allow: [
26+
'ajv/dist/2020.js',
27+
`${import.meta.dirname}/data/**/*.json`,
28+
`${import.meta.dirname}/schema/**/*.json`,
29+
`${import.meta.dirname}/src/*.ts`,
30+
`${import.meta.dirname}/src/**/*.ts`,
31+
`${import.meta.dirname}/generated-types/**/*.ts`,
32+
],
33+
}],
34+
},
35+
},
1836
];

0 commit comments

Comments
 (0)