eslint
This commit is contained in:
16
eslint.config.mjs
Normal file
16
eslint.config.mjs
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
import { dirname } from 'path';
|
||||||
|
import { fileURLToPath } from 'url';
|
||||||
|
import { FlatCompat } from '@eslint/eslintrc';
|
||||||
|
|
||||||
|
const __filename = fileURLToPath(import.meta.url);
|
||||||
|
const __dirname = dirname(__filename);
|
||||||
|
|
||||||
|
const compat = new FlatCompat({
|
||||||
|
baseDirectory: __dirname,
|
||||||
|
});
|
||||||
|
|
||||||
|
const eslintConfig = [
|
||||||
|
...compat.extends('next/core-web-vitals', 'next/typescript', 'plugin:prettier/recommended'),
|
||||||
|
];
|
||||||
|
|
||||||
|
export default eslintConfig;
|
||||||
8769
package-lock.json
generated
8769
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
57
package.json
57
package.json
@@ -1,27 +1,34 @@
|
|||||||
{
|
{
|
||||||
"private": true,
|
"name": "tarokka",
|
||||||
"scripts": {
|
"version": "0.1.0",
|
||||||
"dev": "nodemon",
|
"private": true,
|
||||||
"build": "next build && tsc --project tsconfig.server.json",
|
"scripts": {
|
||||||
"start": "cross-env NODE_ENV=production node build/server.js"
|
"dev": "nodemon",
|
||||||
},
|
"build": "next build && tsc --project tsconfig.server.json",
|
||||||
"dependencies": {
|
"start": "cross-env NODE_ENV=production node build/server.js"
|
||||||
"cross-env": "^7.0.3",
|
},
|
||||||
"next": "latest",
|
"dependencies": {
|
||||||
"react": "^19.1.0",
|
"cross-env": "^7.0.3",
|
||||||
"react-dom": "^19.1.0",
|
"next": "latest",
|
||||||
"socket.io": "^4.8.1",
|
"react": "^19.1.0",
|
||||||
"socket.io-client": "^4.8.1"
|
"react-dom": "^19.1.0",
|
||||||
},
|
"socket.io": "^4.8.1",
|
||||||
"devDependencies": {
|
"socket.io-client": "^4.8.1"
|
||||||
"@tailwindcss/postcss": "^4",
|
},
|
||||||
"@types/node": "^22.14.1",
|
"devDependencies": {
|
||||||
"@types/react": "^19.1.1",
|
"@eslint/eslintrc": "^3",
|
||||||
"@types/react-dom": "^19.1.2",
|
"@tailwindcss/postcss": "^4",
|
||||||
"nodemon": "^3.1.9",
|
"@types/node": "^22.14.1",
|
||||||
"prettier": "^3.5.3",
|
"@types/react": "^19.1.1",
|
||||||
"tailwindcss": "^4",
|
"@types/react-dom": "^19.1.2",
|
||||||
"ts-node": "^10.9.2",
|
"eslint": "^9.24.0",
|
||||||
"typescript": "^5.8.3"
|
"eslint-config-next": "15.2.4",
|
||||||
}
|
"eslint-config-prettier": "^10.1.2",
|
||||||
|
"eslint-plugin-prettier": "^5.2.6",
|
||||||
|
"nodemon": "^3.1.9",
|
||||||
|
"prettier": "^3.5.3",
|
||||||
|
"tailwindcss": "^4",
|
||||||
|
"ts-node": "^10.9.2",
|
||||||
|
"typescript": "^5.8.3"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user