aboutsummaryrefslogtreecommitdiff
path: root/eslint.config.mjs
diff options
context:
space:
mode:
authorUri Shaked2026-02-14 19:22:58 +0200
committerUri Shaked2026-02-14 19:22:58 +0200
commitfafd9600dadaea8106679ece8b33baa604b3f6cf (patch)
tree2efa453b4bd43facd4f3faf3ab94493634a8149e /eslint.config.mjs
parentMerge pull request #169 from wokwi/dependabot/npm_and_yarn/multi-75e6bc5210 (diff)
downloadavr8js-fafd9600dadaea8106679ece8b33baa604b3f6cf.tar.gz
avr8js-fafd9600dadaea8106679ece8b33baa604b3f6cf.tar.bz2
avr8js-fafd9600dadaea8106679ece8b33baa604b3f6cf.zip
chore: update all devDependencies
Also install prettier-plugin-organize-imports, and migrate eslint / husky configs to latest version
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',
+ },
+ },
+ },
+);