mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-28 16:37:07 +02:00
chore(v2): tweak eslint config (#1445)
This commit is contained in:
parent
56cd3a22ce
commit
64fb7a2d0c
7 changed files with 21 additions and 12 deletions
10
.eslintrc.js
10
.eslintrc.js
|
@ -25,7 +25,11 @@ module.exports = {
|
|||
rules: {
|
||||
'class-methods-use-this': OFF, // It's a way of allowing private variables.
|
||||
'func-names': OFF,
|
||||
'import/no-unresolved': WARNING, // Because it couldn't resolve webpack alias.
|
||||
// Ignore certain webpack alias because it can't be resolved
|
||||
'import/no-unresolved': [
|
||||
ERROR,
|
||||
{ignore: ['^@theme', '^@docusaurus', '^@generated']},
|
||||
],
|
||||
'header/header': [
|
||||
ERROR,
|
||||
'block',
|
||||
|
@ -42,8 +46,8 @@ module.exports = {
|
|||
' ',
|
||||
],
|
||||
],
|
||||
'jsx-a11y/click-events-have-key-events': OFF, // Revisit in future™
|
||||
'jsx-a11y/no-noninteractive-element-interactions': OFF, // Revisit in future™
|
||||
'jsx-a11y/click-events-have-key-events': WARNING,
|
||||
'jsx-a11y/no-noninteractive-element-interactions': WARNING,
|
||||
'no-console': OFF,
|
||||
'no-underscore-dangle': OFF,
|
||||
'react/jsx-closing-bracket-location': OFF, // Conflicts with Prettier.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue