commit b53580e256030d0d6ea50cc1e202ce6ee0f7257e
parent 0b3c1228925e7f2899ec57da10dffb8dae5f911b
Author: MTRNord <mtrnord1@gmail.com>
Date: Tue, 4 Jan 2022 01:30:39 +0100
Add a11y eslint rules and remove the advertisment nextjs by default shows as a lint rule
Diffstat:
3 files changed, 16 insertions(+), 4 deletions(-)
diff --git a/.eslintrc.json b/.eslintrc.json
@@ -1,3 +1,12 @@
{
- "extends": "next/core-web-vitals"
-}
+ "plugins": [
+ "jsx-a11y"
+ ],
+ "extends": [
+ "next/core-web-vitals",
+ "plugin:jsx-a11y/recommended"
+ ],
+ "rules": {
+ "@next/next/no-img-element": "off"
+ }
+}
+\ No newline at end of file
diff --git a/package-lock.json b/package-lock.json
@@ -27,8 +27,9 @@
"@types/react": "17.0.38",
"autoprefixer": "^10.4.0",
"cross-env": "^7.0.3",
- "eslint": "8.5.0",
+ "eslint": "^8.5.0",
"eslint-config-next": "12.0.7",
+ "eslint-plugin-jsx-a11y": "^6.5.1",
"postcss": "^8.4.5",
"tailwindcss": "^3.0.7",
"typescript": "4.5.4"
diff --git a/package.json b/package.json
@@ -32,8 +32,9 @@
"@types/react": "17.0.38",
"autoprefixer": "^10.4.0",
"cross-env": "^7.0.3",
- "eslint": "8.5.0",
+ "eslint": "^8.5.0",
"eslint-config-next": "12.0.7",
+ "eslint-plugin-jsx-a11y": "^6.5.1",
"postcss": "^8.4.5",
"tailwindcss": "^3.0.7",
"typescript": "4.5.4"