chore(v2): tweak eslint config (#1445)

This commit is contained in:
Endi 2019-05-09 20:01:48 +07:00 committed by GitHub
parent 56cd3a22ce
commit 64fb7a2d0c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 21 additions and 12 deletions

View file

@ -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.