Skip to content

Commit

Permalink
Implement LocalStorageAppender
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgeary committed Aug 8, 2024
2 parents e9825f8 + 6c3dd1b commit 5366f19
Show file tree
Hide file tree
Showing 21 changed files with 14,662 additions and 12,294 deletions.
5 changes: 5 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# template.angular
# Editor configuration, see https://editorconfig.org
root = true

Expand All @@ -14,3 +15,7 @@ quote_type = single
[*.md]
max_line_length = off
trim_trailing_whitespace = false

[*.{htm,html}]
indent_style = tab
indent_size = 3
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
log4ngx is a Typescript logging framework for Angular projects, based on concepts used in Log4j, Log4net, etc.

> **Current Status**
> The library is now complete enough to be used in production if the `ConsoleAppender` is sufficient for your needs.
> The library is now complete enough to be used in production if the `ConsoleAppender` and `LocalStorageAppender` are sufficient
for your needs.
> Documentation is being completed in the repository's Github Pages and will be updated as progress is made - as soon as it is in a reasonably complete state, a proper link will be made available here.
## Concepts
Expand Down
18 changes: 12 additions & 6 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const eslintPluginUnicorn = require('eslint-plugin-unicorn');
// TODO: this seems to be CommonJS, not ESM (see https://github.com/sindresorhus/eslint-plugin-unicorn/tree/main)
// TODO: see https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2324
// TODO: do we still want prefer-arrow plugin??
// TODO: remove tsconfig.eslint.json when implemented in each project
// TODO: work out why `ignores` for '.unused' isn't working

module.exports = tseslint.config(
Expand All @@ -21,12 +22,11 @@ module.exports = tseslint.config(
},
{
files: ['**/*.ts'],
// ignores: [
// 'node_modules/', // don't ever lint node_modules
// 'dist/', // don't lint build output
// '**/.unused/', // WRONG? FYI, dot-files and dot-folders are ignored by default
// '**/*.unused.ts'
// ],
ignores: [
// TODO: why doesn't this work?
'**/.unused/',
'**/*.unused.ts'
],
extends: [
eslint.configs.recommended, // https://github.com/eslint/eslint/blob/main/packages/js/src/configs/eslint-recommended.js
stylistic.configs['recommended-flat'],
Expand Down Expand Up @@ -386,6 +386,12 @@ module.exports = tseslint.config(
}
],
'no-underscore-dangle': 'off',
'@typescript-eslint/no-unused-expressions': [
'warn',
{
"allowTernary": true
}
],
'@typescript-eslint/no-unused-vars': [ /* Overrides the 'recommended' setting */
'warn',
{
Expand Down
Loading

0 comments on commit 5366f19

Please sign in to comment.