Added Next.js eslint

This commit is contained in:
Luis Alvarez 2021-07-29 21:55:14 -05:00
parent fe6c0d8ed5
commit efd0b2ac68
3 changed files with 956 additions and 16 deletions

6
.eslintrc Normal file
View File

@ -0,0 +1,6 @@
{
"extends": "next",
"rules": {
"react/no-unescaped-entities": "off"
}
}

View File

@ -6,6 +6,7 @@
"build": "next build", "build": "next build",
"start": "next start", "start": "next start",
"analyze": "BUNDLE_ANALYZE=both yarn build", "analyze": "BUNDLE_ANALYZE=both yarn build",
"lint": "next lint",
"prettier-fix": "prettier --write .", "prettier-fix": "prettier --write .",
"find:unused": "npx next-unused", "find:unused": "npx next-unused",
"generate": "graphql-codegen", "generate": "graphql-codegen",
@ -63,6 +64,8 @@
"@types/node": "^15.12.4", "@types/node": "^15.12.4",
"@types/react": "^17.0.8", "@types/react": "^17.0.8",
"deepmerge": "^4.2.2", "deepmerge": "^4.2.2",
"eslint": "^7.31.0",
"eslint-config-next": "^11.0.1",
"graphql": "^15.5.1", "graphql": "^15.5.1",
"husky": "^6.0.0", "husky": "^6.0.0",
"lint-staged": "^11.0.0", "lint-staged": "^11.0.0",

963
yarn.lock

File diff suppressed because it is too large Load Diff