Skip to content

Commit

Permalink
add eslint stylistic rules
Browse files Browse the repository at this point in the history
  • Loading branch information
kcinay055679 committed Nov 22, 2024
1 parent ee435f2 commit aedf045
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 12 deletions.
22 changes: 11 additions & 11 deletions frontend/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@

import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';
import eslint from "@eslint/js";
import tsEslint from "typescript-eslint";
import unusedImports from "eslint-plugin-unused-imports";
import stylistic from '@stylistic/eslint-plugin'
import stylistic from "@stylistic/eslint-plugin";



export default tseslint.config(
export default tsEslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
{
files: ['**/*.spec.ts'],
rules: {
"@typescript-eslint/no-explicit-any": "off"
...tsEslint.configs.recommended,
stylistic.configs['all-flat'],
{
files: ['**/*.spec.ts'],
rules: {
"@typescript-eslint/no-explicit-any": "off"
},
},
{
plugins: {
'unused-imports': unusedImports,
'@stylistic': stylistic
'@stylistic': stylistic
},
rules: {
'unused-imports/no-unused-imports': 'error',
Expand Down
21 changes: 20 additions & 1 deletion frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"@angular/router": "^18.2.8",
"@ngx-translate/core": "^16.0.0",
"@ngx-translate/http-loader": "^16.0.0",
"@stylistic/eslint-plugin": "^2.11.0",
"@typescript-eslint/eslint-plugin": "^8.15.0",
"angular-oauth2-oidc": "^17.0.2",
"bootstrap": "^5.3.3",
Expand Down

0 comments on commit aedf045

Please sign in to comment.