Skip to content

Commit f1003bc

Browse files
committed
thjs-122: * fix vs-code eslint configuration for workspaces
1 parent a846666 commit f1003bc

File tree

5 files changed

+14
-13
lines changed

5 files changed

+14
-13
lines changed

.lintstagedrc.yml

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

apps/frontend/src/modules/auth/slices/auth.slice.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const initialState: State = {
1616
user: null
1717
};
1818

19-
const { actions, name, reducer } = createSlice({
19+
const { actions, reducer } = createSlice({
2020
extraReducers(builder) {
2121
builder
2222
.addMatcher(isAnyOf(signUp.pending), state => {

eslint.config.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ import explicitGenerics from 'eslint-plugin-require-explicit-generics';
1010
import sonarjs from 'eslint-plugin-sonarjs';
1111
import unicorn from 'eslint-plugin-unicorn';
1212
import globals from 'globals';
13+
import { dirname } from 'node:path';
14+
import { fileURLToPath } from 'node:url';
1315

1416
const JS_MAX_PARAMS_ALLOWED = 3;
1517

@@ -140,11 +142,8 @@ const typescriptConfig = {
140142
languageOptions: {
141143
parser: /** @type {ParserModule} */ (tsParser),
142144
parserOptions: {
143-
project: [
144-
'./tsconfig.json',
145-
'./packages/**/tsconfig.json',
146-
'./apps/**/tsconfig.json'
147-
]
145+
project: true,
146+
tsconfigRootDir: dirname(fileURLToPath(import.meta.url))
148147
}
149148
},
150149
plugins: {
@@ -230,7 +229,7 @@ const overridesConfigs = [
230229
{
231230
files: [
232231
'commitlint.config.ts',
233-
'prettier.config.ts',
232+
'prettier.config.mjs',
234233
'stylelint.config.js',
235234
'knip.config.ts',
236235
'packages.d.ts',

package-lock.json

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
"@ls-lint/ls-lint": "2.2.2",
3535
"@types/eslint": "8.56.10",
3636
"@types/eslint__js": "8.42.3",
37+
"@types/lint-staged": "13.3.0",
3738
"@typescript-eslint/eslint-plugin": "6.14.0",
3839
"@typescript-eslint/parser": "6.14.0",
3940
"concurrently": "8.2.2",

0 commit comments

Comments
 (0)