Skip to content

Commit ae5943f

Browse files
committed
Update eslint
1 parent 23a0ccc commit ae5943f

264 files changed

Lines changed: 13740 additions & 10346 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

backend/.eslintrc.json

Lines changed: 0 additions & 33 deletions
This file was deleted.

backend/eslint.config.mjs

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
// @ts-check
2+
3+
import eslint from '@eslint/js';
4+
import { defineConfig } from 'eslint/config';
5+
import tseslint from 'typescript-eslint';
6+
import globals from 'globals';
7+
import stylistic from '@stylistic/eslint-plugin';
8+
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
9+
10+
export default defineConfig(
11+
{
12+
languageOptions: {
13+
globals: globals['shared-node-browser'],
14+
parserOptions: {
15+
projectService: true,
16+
tsconfigRootDir: import.meta.dirname,
17+
},
18+
},
19+
},
20+
{
21+
extends: [
22+
eslint.configs.recommended,
23+
...tseslint.configs.recommended,
24+
...tseslint.configs.stylistic,
25+
],
26+
plugins: {
27+
'@stylistic': stylistic,
28+
},
29+
rules: {
30+
'quotes': [
31+
'error',
32+
'single'
33+
],
34+
'semi': [
35+
'error',
36+
'always'
37+
]
38+
},
39+
},
40+
eslintPluginPrettierRecommended,
41+
);

0 commit comments

Comments
 (0)