Skip to content

Commit

Permalink
install eslint for formating
Browse files Browse the repository at this point in the history
  • Loading branch information
kcinay055679 committed Nov 18, 2024
1 parent ab0f210 commit b0d6ef4
Show file tree
Hide file tree
Showing 5 changed files with 1,949 additions and 3,093 deletions.
33 changes: 0 additions & 33 deletions backend/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -256,39 +256,6 @@
</importOrder>
<formatAnnotations />
</java>

<typescript>
<includes> <!-- You have to set the target manually -->
<include>../frontend/src/app/**/*.ts</include>
</includes>

<eslint>
<!-- Specify at most one of the following 3 configs: either 'eslintVersion', 'devDependencies' or 'devDependencyProperties' -->
<eslintVersion>8.30.0</eslintVersion>
<!-- mandatory: provide either a configFile or a configJs object -->
<!-- <configFile>${project.basedir}/.eslintrc.js</configFile>-->
<configJs>
{
env: {
browser: true,
es2021: true
},
extends: 'standard-with-typescript',
overrides: [
],
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: '../../frontend/tsconfig.json',
},
rules: {
}
}
</configJs>
<!-- recommended: provide a tsconfigFile - especially when using the styleguides -->
<tsconfigFile>${project.basedir}/../frontend/tsconfig.json</tsconfigFile>
</eslint>
</typescript>
</configuration>
</plugin>
</plugins>
Expand Down
8 changes: 8 additions & 0 deletions frontend/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

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

export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
);
Loading

0 comments on commit b0d6ef4

Please sign in to comment.