Skip to content

Commit

Permalink
Update to latest NPM packages
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgeary committed Aug 8, 2024
1 parent 37b05c0 commit 6c3dd1b
Show file tree
Hide file tree
Showing 4 changed files with 14,142 additions and 12,279 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
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 6c3dd1b

Please sign in to comment.