aboutsummaryrefslogtreecommitdiff
path: root/eslint.config.mjs
diff options
context:
space:
mode:
Diffstat (limited to 'eslint.config.mjs')
-rw-r--r--eslint.config.mjs26
1 files changed, 26 insertions, 0 deletions
diff --git a/eslint.config.mjs b/eslint.config.mjs
new file mode 100644
index 0000000..ff1fb13
--- /dev/null
+++ b/eslint.config.mjs
@@ -0,0 +1,26 @@
+import js from '@eslint/js';
+import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
+import tseslint from 'typescript-eslint';
+
+export default tseslint.config(
+ { ignores: ['dist/**', 'demo/build/**', 'demo/dist/**'] },
+ js.configs.recommended,
+ ...tseslint.configs.recommended,
+ eslintPluginPrettierRecommended,
+ {
+ files: ['**/*.ts'],
+ rules: {
+ '@typescript-eslint/explicit-function-return-type': 'off',
+ },
+ },
+ {
+ files: ['**/*.js'],
+ languageOptions: {
+ globals: {
+ __dirname: 'readonly',
+ module: 'readonly',
+ require: 'readonly',
+ },
+ },
+ },
+);