Skip to content

Commit e524506

Browse files
remove files and fix lint errors
1 parent 3f8aecb commit e524506

File tree

9 files changed

+16
-106
lines changed

9 files changed

+16
-106
lines changed

React/.eslintrc.cjs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,5 @@ module.exports = {
2929
'forbidExtraProps',
3030
],
3131
},
32-
}, {
33-
files: ['*.test.tsx'],
34-
extends: ['devextreme/jest'],
35-
settings: {
36-
jest: {
37-
version: 29
38-
}
39-
}
4032
}]
4133
};

React/kek.config.js

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

React/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"build": "tsc -b && vite build",
99
"test": "vitest",
1010
"test:watch": "vitest --watch",
11-
"lint-js": "eslint .",
11+
"lint-js": "eslint . --fix",
1212
"lint-css": "stylelint src/**/*.css --allow-empty-input",
1313
"lint": "npm-run-all -p -c lint-js lint-css",
1414
"preview": "vite preview"
@@ -45,7 +45,8 @@
4545
"npm-run-all": "^4.1.5",
4646
"stylelint": "^15.6.1",
4747
"stylelint-config-standard": "^33.0.0",
48-
"typescript": "5.4.5",
48+
"typescript": "~5.6.2",
49+
"typescript-eslint": "^8.18.2",
4950
"vite": "^6.3.5",
5051
"ts-node": "10.9.2",
5152
"vitest": "^1.5.0"

React/src/main.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import { StrictMode } from 'react'
2-
import { createRoot } from 'react-dom/client'
3-
import './index.css'
4-
import App from './App.tsx'
1+
import React, { StrictMode } from 'react';
2+
import { createRoot } from 'react-dom/client';
3+
import './index.css';
4+
import App from './App.tsx';
55

66
createRoot(document.getElementById('root')!).render(
77
<StrictMode>
88
<App />
99
</StrictMode>,
10-
)
10+
);

React/src/react-app-env.d.ts

Whitespace-only changes.

React/tsconfig.app.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
"types": ["node", "estree"],
88
"module": "ESNext",
99
"skipLibCheck": true,
10-
1110
/* Bundler mode */
1211
"moduleResolution": "bundler",
1312
"allowImportingTsExtensions": true,
@@ -18,6 +17,7 @@
1817

1918
/* Linting */
2019
"strict": true,
20+
"strictNullChecks": true,
2121
"noUnusedLocals": true,
2222
"noUnusedParameters": true,
2323
"erasableSyntaxOnly": true,

React/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"files": [],
3+
34
"references": [
45
{ "path": "./tsconfig.app.json" },
56
{ "path": "./tsconfig.node.json" }

React/tsconfig.node.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,12 @@
1616

1717
/* Linting */
1818
"strict": true,
19+
"strictNullChecks": true,
1920
"noUnusedLocals": true,
2021
"noUnusedParameters": true,
2122
"erasableSyntaxOnly": true,
2223
"noFallthroughCasesInSwitch": true,
2324
"noUncheckedSideEffectImports": true
2425
},
25-
"include": ["vite.config.ts"]
26+
"include": ["vite.config.ts","vitest.config.ts"],
2627
}

React/vite.config.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { defineConfig } from 'vite'
2-
import react from '@vitejs/plugin-react'
1+
import { defineConfig } from 'vite';
2+
import React from '@vitejs/plugin-react';
33

44
// https://vite.dev/config/
55
export default defineConfig({
6-
plugins: [react()],
7-
})
6+
plugins: [React()],
7+
});

0 commit comments

Comments
 (0)