diff options
Diffstat (limited to 'eslint.config.js')
-rw-r--r-- | eslint.config.js | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/eslint.config.js b/eslint.config.js new file mode 100644 index 0000000..63e7097 --- /dev/null +++ b/eslint.config.js @@ -0,0 +1,27 @@ +import js from '@eslint/js'; +import tseslint from '@typescript-eslint/eslint-plugin'; +import tseslintParser from '@typescript-eslint/parser'; +import prettier from 'eslint-config-prettier'; + +export default [ + js.configs.recommended, + { + ignores: ['dist/**/*'], + files: ['**/*.ts'], + languageOptions: { + parser: tseslintParser, + parserOptions: { + project: ['./tsconfig.json', './examples/tsconfig.json'], + tsconfigRootDir: '.', + }, + }, + plugins: { + '@typescript-eslint': tseslint, + }, + rules: { + ...tseslint.configs.recommended.rules, + ...prettier.rules, + '@typescript-eslint/no-explicit-any': 'warn', + }, + }, +];
\ No newline at end of file |