@guestbell/react-page-plugins
Version:
Plugins we use in GuestBell for working with amazing react-page package
64 lines (60 loc) • 1.74 kB
JavaScript
module.exports = {
parser: '@typescript-eslint/parser',
// Specifies the ESLint parser
parserOptions: {
ecmaVersion: 2020,
// Allows for the parsing of modern ECMAScript features
sourceType: 'module',
// Allows for the use of imports
ecmaFeatures: {
jsx: true, // Allows for the parsing of JSX
},
},
settings: {
react: {
version: 'detect', // Tells eslint-plugin-react to automatically detect the version of React to use
},
},
plugins: ['react-hooks'],
extends: [
'plugin:react/recommended',
'plugin:@typescript-eslint/recommended',
'prettier',
'plugin:prettier/recommended',
'plugin:storybook/recommended',
'plugin:storybook/recommended',
],
rules: {
'react/no-children-prop': 'off',
'react/prop-types': 'off',
'react/no-unescaped-entities': 'off',
'react/display-name': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/no-empty-interface': 'off',
'@typescript-eslint/no-unused-vars': [
'error',
{
vars: 'all',
args: 'none',
ignoreRestSiblings: false,
},
],
'prettier/prettier': [
'error',
{
endOfLine: 'auto',
},
],
'no-restricted-imports': [
'error',
{
patterns: ['@mui/*/*/*'],
},
],
'react-hooks/rules-of-hooks': 'error', // For checking rules of hooks
'react-hooks/exhaustive-deps': 'warn', // For checking hook dependencies
},
};