diff options
| author | Uri Shaked | 2026-02-14 19:22:58 +0200 |
|---|---|---|
| committer | Uri Shaked | 2026-02-14 19:22:58 +0200 |
| commit | fafd9600dadaea8106679ece8b33baa604b3f6cf (patch) | |
| tree | 2efa453b4bd43facd4f3faf3ab94493634a8149e /eslint.config.mjs | |
| parent | Merge pull request #169 from wokwi/dependabot/npm_and_yarn/multi-75e6bc5210 (diff) | |
| download | avr8js-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 '')
| -rw-r--r-- | eslint.config.mjs | 26 |
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', + }, + }, + }, +); |
