Skip to content

Commit 421fd99

Browse files
committed
fix: avoid failing on numbers, fixes #97
1 parent 1b6c85f commit 421fd99

File tree

9 files changed

+3786
-2302
lines changed

9 files changed

+3786
-2302
lines changed

.eslintrc

Lines changed: 0 additions & 59 deletions
This file was deleted.

eslint.config.mjs

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
import eslint from '@eslint/js';
2+
import eslintConfigPrettier from "eslint-config-prettier/flat";
3+
import importPlugin from 'eslint-plugin-import';
4+
import tseslint from 'typescript-eslint';
5+
6+
export default tseslint.config(
7+
eslint.configs.recommended,
8+
tseslint.configs.recommended,
9+
eslintConfigPrettier,
10+
importPlugin.flatConfigs.recommended,
11+
importPlugin.flatConfigs.typescript,
12+
{
13+
rules: {
14+
"@typescript-eslint/no-explicit-any": "off",
15+
"@typescript-eslint/no-empty-interface": "error",
16+
"@typescript-eslint/no-non-null-assertion": "off",
17+
"no-irregular-whitespace": "off",
18+
"no-control-regex": "off",
19+
"no-duplicate-imports": ["error", {"includeExports": true}],
20+
"arrow-body-style": ["error", "as-needed"],
21+
"no-restricted-globals": ["error", "name", "toString", "pending"],
22+
"import/order": ["error", {
23+
"groups": ["builtin", "external", "internal", "sibling"],
24+
"pathGroupsExcludedImportTypes": ["parent", "sibling", "index"],
25+
"alphabetize": {
26+
"order": "asc",
27+
"caseInsensitive": true
28+
}
29+
}]
30+
}
31+
}
32+
);

0 commit comments

Comments
 (0)