Skip to content

Commit f32ef85

Browse files
committed
[Change] eslint 설정 변경
jsx-eslint/eslint-plugin-jsx-a11y#402 next.js의 link컴포넌트를 사용하기 위해서 eslint 설정변경
1 parent 34fd2f1 commit f32ef85

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.eslintrc.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@
1111
"no-underscore-dangle": ["error", { "allowAfterThis": true }],
1212
"import/no-extraneous-dependencies": 0,
1313
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
14+
"jsx-a11y/anchor-is-valid": [
15+
"error",
16+
{
17+
"components": ["Link"],
18+
"specialLink": ["hrefLeft", "hrefRight"],
19+
"aspects": ["invalidHref", "preferButton"]
20+
}
21+
],
1422
"react/react-in-jsx-scope": "off"
1523
}
1624
}

0 commit comments

Comments
 (0)