cinny/.eslintrc.js
ajbura e5b57e5ff9 Add react/no-unstable-nested-components rule in eslintrc
Signed-off-by: ajbura <ajbura@gmail.com>
2022-02-05 17:49:51 +05:30

28 lines
453 B
JavaScript

module.exports = {
env: {
browser: true,
es2021: true,
},
extends: [
'plugin:react/recommended',
'airbnb',
],
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 12,
sourceType: 'module',
},
plugins: [
'react',
],
rules: {
'linebreak-style': 0,
'no-underscore-dangle': 0,
'react/no-unstable-nested-components': [
'error',
{ allowAsProps: true },
],
},
};