@codemein/eslint-config-tesco-react
Version:
Tesco's ESLint config with React, following Tesco's styleguide
54 lines (53 loc) • 1.1 kB
JavaScript
/**
* @module Eslint configuration with React
*/
/**
* Basic Eslint configuration with React which extends the base JS Tesco one and the airbnb for React.
*/
module.exports = {
env: {
browser: true,
jest: true,
node: true,
},
extends: ['airbnb'],
rules: {
'react/destructuring-assignment': 0,
'react/jsx-one-expression-per-line': 0,
'react/jsx-sort-default-props': [
2,
{
ignoreCase: true,
},
],
'react/jsx-sort-props': [
2,
{
callbacksLast: false,
shorthandFirst: false,
shorthandLast: false,
ignoreCase: true,
noSortAlphabetically: false,
reservedFirst: false,
},
],
'react/no-array-index-key': 0,
'react/prefer-stateless-function': 0,
'react/sort-comp': 0,
'react/sort-prop-types': [
2,
{
callbacksLast: false,
ignoreCase: true,
requiredFirst: false,
sortShapeProp: true,
noSortAlphabetically: false,
},
],
},
settings: {
react: {
version: '16.0',
},
},
};