فهرست منبع

exclude jsx-a11y rules

Yuki Takei 7 سال پیش
والد
کامیت
fb01ee5a20
1فایلهای تغییر یافته به همراه2 افزوده شده و 5 حذف شده
  1. 2 5
      .eslintrc.js

+ 2 - 5
.eslintrc.js

@@ -6,8 +6,8 @@ module.exports = {
     }
     }
   },
   },
   extends: [
   extends: [
-    'airbnb',
-    'plugin:react/recommended',
+    'airbnb-base',
+    'airbnb/rules/react',
   ],
   ],
   env: {
   env: {
     browser: true,
     browser: true,
@@ -118,9 +118,6 @@ module.exports = {
     'react/require-default-props': 'off',
     'react/require-default-props': 'off',
     'react/self-closing-comp': 'off',
     'react/self-closing-comp': 'off',
     'react/sort-comp': 'off',
     'react/sort-comp': 'off',
-    'jsx-a11y/img-redundant-alt': 'off',
-    'jsx-a11y/label-has-associated-control': 'off',
-    'jsx-a11y/label-has-for': 'off',
     // eslint-plugin-import rules
     // eslint-plugin-import rules
     'import/no-extraneous-dependencies': 'off',
     'import/no-extraneous-dependencies': 'off',
     'import/no-dynamic-require': 'off',
     'import/no-dynamic-require': 'off',