eslint-config-concierge-auctions-react
Version:
ConciergeAuctions's React JS ESLint config
67 lines (64 loc) • 1.37 kB
JavaScript
module.exports = {
extends: 'concierge-auctions-base',
ecmaFeatures: {
jsx: true,
},
globals: {
React$Element: false,
React$Component: false,
ReactClass: false,
},
rules: {
// Vanilla
'jsx-quotes': 'off',
// React
'react/jsx-closing-bracket-location': 'off',
'react/react-in-jsx-scope': 'off',
'react/require-default-props': 'off',
'react/forbid-prop-types': [
'warn',
{
forbid: [
'array',
'object',
'objectOf',
'instanceOf',
'oneOf',
'node',
'element',
'symbol',
'arrayOf',
'shape',
'bool',
'string',
'number',
'node',
'func',
'any',
],
},
],
'react/prop-types': 'off',
'react/no-unused-prop-types': 'off',
'react/sort-comp': ['error', {
order: [
'type-annotations',
'static-methods',
'lifecycle',
'everything-else',
'render'
]
}],
'react/no-string-refs': 'warn',
'react/jsx-filename-extension': 'off',
'react/prefer-stateless-function': [
'error',
{
ignorePureComponents: true,
},
],
// JSX-A11y
'jsx-a11y/no-static-element-interactions': 'off',
'jsx-a11y/tabindex-no-positive': 'off',
},
};