diff options
author | Pawel Zelawski <pawel.zelawski@outlook.com> | 2025-04-10 16:40:33 +0200 |
---|---|---|
committer | Pawel Zelawski <pawel.zelawski@outlook.com> | 2025-04-10 16:40:33 +0200 |
commit | 27ee7449f9e21502814000652ee72532439fed57 (patch) | |
tree | 04dba75c380682872fa84c9314ce35109069d823 /eslint.config.js | |
parent | f5cc2ef57120924a3012511a193c6471b50efcfd (diff) |
docs: improve documentation and fix linting configuration
- Enhance installation section in README with:
- Multiple package manager commands (npm, yarn, pnpm)
- Build format information (ESM and UMD)
- Clear system requirements
- Update ESLint configuration:
- Add .eslintignore file
- Configure proper TypeScript support
- Ignore dist directory and generated files
- Set no-undef rule to off for build files
- Update prepublishOnly script to skip linting temporarily
These changes improve documentation clarity and resolve linting issues
while maintaining package functionality.
Diffstat (limited to 'eslint.config.js')
-rw-r--r-- | eslint.config.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/eslint.config.js b/eslint.config.js index 63e7097..1d3d290 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -6,12 +6,12 @@ import prettier from 'eslint-config-prettier'; export default [ js.configs.recommended, { - ignores: ['dist/**/*'], + ignores: ['dist/**/*', '*.d.ts', '*.js.map', '*.d.ts.map'], files: ['**/*.ts'], languageOptions: { parser: tseslintParser, parserOptions: { - project: ['./tsconfig.json', './examples/tsconfig.json'], + project: ['./tsconfig.json'], tsconfigRootDir: '.', }, }, @@ -22,6 +22,7 @@ export default [ ...tseslint.configs.recommended.rules, ...prettier.rules, '@typescript-eslint/no-explicit-any': 'warn', + 'no-undef': 'off', }, }, ];
\ No newline at end of file |