From aa3aeccae8a4bf4b8a627276699acf033e2be3f8 Mon Sep 17 00:00:00 2001 From: prjctimg Date: Wed, 11 Oct 2023 12:58:40 +0200 Subject: [PATCH] Removed lint scripts --- .eslintignore | 1 - .eslintrc.js | 17 ----------------- .husky/.gitignore | 1 - .husky/pre-commit | 4 ---- package.json | 13 +------------ 5 files changed, 1 insertion(+), 35 deletions(-) delete mode 100644 .eslintignore delete mode 100644 .eslintrc.js delete mode 100644 .husky/.gitignore delete mode 100755 .husky/pre-commit diff --git a/.eslintignore b/.eslintignore deleted file mode 100644 index 3c3629e6..00000000 --- a/.eslintignore +++ /dev/null @@ -1 +0,0 @@ -node_modules diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index db10a94e..00000000 --- a/.eslintrc.js +++ /dev/null @@ -1,17 +0,0 @@ -module.exports = { - root: true, - env: { - browser: true, - amd: true, - node: true, - es6: true, - }, - extends: ['eslint:recommended', 'plugin:prettier/recommended', 'next', 'next/core-web-vitals'], - rules: { - 'prettier/prettier': 'error', - 'react/react-in-jsx-scope': 'off', - 'react/prop-types': 0, - 'no-unused-vars': 0, - 'react/no-unescaped-entities': 0, - }, -} diff --git a/.husky/.gitignore b/.husky/.gitignore deleted file mode 100644 index 31354ec1..00000000 --- a/.husky/.gitignore +++ /dev/null @@ -1 +0,0 @@ -_ diff --git a/.husky/pre-commit b/.husky/pre-commit deleted file mode 100755 index d37daa07..00000000 --- a/.husky/pre-commit +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - -npx --no-install lint-staged diff --git a/package.json b/package.json index c4e305ad..e2cbf008 100644 --- a/package.json +++ b/package.json @@ -8,9 +8,7 @@ "dev": "next dev", "build": "next build && node ./scripts/generate-sitemap && next export", "serve": "next start", - "analyze": "cross-env ANALYZE=true next build", - "lint": "next lint --fix --dir pages --dir components --dir lib --dir layouts --dir scripts", - "prepare": "husky install" + "analyze": "cross-env ANALYZE=true next build" }, "dependencies": { "@emotion/react": "^11.10.6", @@ -74,15 +72,6 @@ "socket.io": "^4.4.0", "socket.io-client": "^4.4.0" }, - "lint-staged": { - "*.+(js|jsx|ts|tsx)": [ - "eslint --fix" - ], - "*.+(js|jsx|ts|tsx|json|css|md|mdx)": [ - "prettier --write" - ] - }, - "main": ".eslintrc.js", "directories": { "lib": "lib" },