Skip to content

Commit

Permalink
Code style update
Browse files Browse the repository at this point in the history
Also a security update in dependencies
  • Loading branch information
haukex committed Sep 29, 2024
1 parent 1c444fd commit 42a201f
Show file tree
Hide file tree
Showing 11 changed files with 446 additions and 22 deletions.
5 changes: 5 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';
import stylistic from '@stylistic/eslint-plugin';

export default tseslint.config({
files: ['**/*.ts'],
Expand All @@ -11,11 +12,15 @@ export default tseslint.config({
...tseslint.configs.strict,
//...tseslint.configs.stylistic,
],
plugins: {
'@stylistic': stylistic
},
rules: {
"linebreak-style": [ "error", "unix" ],
"semi": [ "warn", "never" ],
"indent": [ "error", 2 ],
"quotes": [ "warn", "single" ],
"@stylistic/arrow-parens": [ "error", "as-needed" ],
// https://stackoverflow.com/a/78734642
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
Expand Down
Loading

0 comments on commit 42a201f

Please sign in to comment.