I want to disable eslint and prettier completely in my React app project. These errors are causing havoc in development.
There are errors coming because of eslint/prettier/jsx-ally and I am stuck with it -
Visible, non-interactive elements with click handlers must have at least one keyboard listener jsx-a11y/click-events-have-key-events
<span onClick={() => connect()}>
<Link
to='/'
className={location.pathname.toLowerCase().includes('/docs') ? 'active' : 'passive'}
>
{' '}Connect API
</Link>
</span>
.eslintrc.js :-
module.exports = {
root: true,
env: {
browser: true,
es2021: true,
},
extends: ['plugin:react/recommended', 'airbnb', 'prettier'],
parserOptions: {
ecmaFeatures: {
jsx: false,
},
ecmaVersion: 13,
sourceType: 'module',
},
plugins: ['react'],
rules: {
semi: 'error',
'no-console': 'warn',
'no-undef': 'error',
'no-unused-vars': 'error',
'no-use-before-define': 'error',
'newline-before-return': 'error',
'react/prop-types': 'off',
'linebreak-style': 'off',
'prettier/prettier': 0,
'react/react-in-jsx-scope': 'off',
'react/function-component-definition': 'off',
'jsx-quotes': ['error', 'prefer-single'],
'react/jsx-filename-extension': 'off',
'jsx-a11y/label-has-associated-control': 'off',
},
};
.prettierrc.js :-
module.exports = {
"semi": true,
"tabSize": 2,
"tabWidth": 2,
"singleQuote": true,
"trailingComma": "es5",
"arrowParens": "always",
"bracketSpacing": true,
"jsxSingleQuote": true,
"useTabs": false,
"printWidth": 100,
"endOfLine": "auto"
};