feat(eslint): add eslint config conventions among typescript & prettier

This commit is contained in:
Walid 2022-03-17 12:05:00 +01:00
parent 095627d408
commit 70e227b824
No known key found for this signature in database
GPG Key ID: 50CE2725C6AF36B0
3 changed files with 530 additions and 198 deletions

View File

@ -1,6 +1,7 @@
{ {
"extends": ["next/core-web-vitals", "prettier"], "extends": ["next/core-web-vitals", "prettier"],
"plugins": ["prettier"], "plugins": ["prettier"],
"parserOptions": { "project": "./tsconfig.json" },
"rules": { "rules": {
"prettier/prettier": "error", "prettier/prettier": "error",
"no-unused-vars": "warn", "no-unused-vars": "warn",

718
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -7,7 +7,8 @@
"start": "next start", "start": "next start",
"lint:next": "next lint", "lint:next": "next lint",
"lint:scss": "stylelint \"**/*.scss\"", "lint:scss": "stylelint \"**/*.scss\"",
"lint:prettier": "prettier \".\" --check" "lint:prettier": "prettier \".\" --check --ignore-path \".gitignore\"",
"lint:typescript": "eslint \"**/*.{js,jsx,ts,tsx}\" --ignore-path \".gitignore\""
}, },
"dependencies": { "dependencies": {
"next": "12.0.10", "next": "12.0.10",
@ -18,10 +19,16 @@
"devDependencies": { "devDependencies": {
"@types/node": "17.0.17", "@types/node": "17.0.17",
"@types/react": "17.0.39", "@types/react": "17.0.39",
"@typescript-eslint/eslint-plugin": "^5.12.0",
"@typescript-eslint/parser": "^5.12.0",
"eslint": "^8.2.0", "eslint": "^8.2.0",
"eslint-config-conventions": "^1.1.1",
"eslint-config-next": "12.0.10", "eslint-config-next": "12.0.10",
"eslint-config-prettier": "^8.5.0", "eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-prettier": "^4.0.0", "eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-promise": "^6.0.0",
"eslint-plugin-unicorn": "^41.0.0",
"prettier": "^2.6.0", "prettier": "^2.6.0",
"stylelint": "^14.5.0", "stylelint": "^14.5.0",
"stylelint-config-prettier": "^9.0.3", "stylelint-config-prettier": "^9.0.3",