refactor: integrate @walidoux/[prettier/eslint]-config

This commit is contained in:
Walid 2022-08-27 21:37:50 +01:00
parent 977474a550
commit 9f742a613b
No known key found for this signature in database
GPG Key ID: 7DF9215FC4E48853
5 changed files with 342 additions and 492 deletions

View File

@ -1,20 +1,7 @@
{
"plugins": ["prettier", "simple-import-sort"],
"extends": ["standard-with-typescript", "prettier"],
"env": {
"node": true,
"browser": true,
"jest": true
},
"parserOptions": {
"ecmaVersion": "latest",
"project": ["./tsconfig.json"]
},
"extends": ["@walidoux/eslint-config"],
"ignorePatterns": ["out", "**/*.config.js", "**/*.d.ts", "plopfile.js"],
"rules": {
"prettier/prettier": "error",
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"@next/next/no-img-element": "off"
}
}

View File

@ -1,2 +0,0 @@
.next
*.hbs

View File

@ -1,7 +0,0 @@
{
"singleQuote": true,
"jsxSingleQuote": true,
"semi": false,
"trailingComma": "none",
"bracketSameLine": true
}

View File

@ -1,6 +1,7 @@
{
"name": "next-app-boilerplate",
"version": "0.0.0-development",
"version": "0.0.0",
"prettier": "@walidoux/prettier-config",
"license": "MIT",
"keywords": [
"template",
@ -17,6 +18,7 @@
],
"author": {
"name": "Walid",
"email": "contact@walidkorchi.com",
"url": "https://walidkorchi.com"
},
"scripts": {
@ -26,7 +28,7 @@
"check-types": "tsc --noemit",
"lint:next": "next lint",
"lint:editorconfig": "editorconfig-checker",
"lint:prettier": "prettier \".\" --check",
"lint:prettier": "prettier \".\" --check --ignore-unknown '!**/*.hbs' --ignore-path \".gitignore\"",
"lint:commit": "commitlint",
"lint:staged": "lint-staged",
"release": "semantic-release",
@ -47,19 +49,19 @@
"@types/js-cookie": "^3.0.2",
"@types/node": "18.7.2",
"@types/react": "18.0.17",
"@typescript-eslint/eslint-plugin": "^5.33.0",
"@typescript-eslint/parser": "^5.33.0",
"@typescript-eslint/eslint-plugin": "^5.35.1",
"@typescript-eslint/parser": "^5.35.1",
"@walidoux/eslint-config": "^1.0.0",
"@walidoux/prettier-config": "^1.0.0",
"autoprefixer": "^10.4.8",
"editorconfig-checker": "^4.0.2",
"eslint": "^8.21.0",
"eslint-config-conventions": "^3.0.0",
"eslint-config-next": "12.2.5",
"eslint-config-prettier": "^8.5.0",
"eslint-config-standard-with-typescript": "^22.0.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-n": "^15.2.4",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-promise": "^6.0.0",
"eslint-plugin-simple-import-sort": "^7.0.0",
"eslint-plugin-promise": "^6.0.1",
"eslint-plugin-unicorn": "^43.0.2",
"husky": "^8.0.1",
"lint-staged": "^13.0.3",
@ -82,9 +84,5 @@
"homepage": "https://next-app-boilerplate.vercel.app",
"publishConfig": {
"access": "public"
},
"private": true,
"branches": [
"master"
]
}
}

786
yarn.lock

File diff suppressed because it is too large Load Diff