* Move "dependencies" close to "devDependencies" Makes it easier to have a quick overview * Upgrade "react-scripts" to latest version With new versions of node (> v16) the build scripts fails with the following error "error:0308010C:digital envelope routines::unsupported" * Upgrade "react-scripts" to v5 - Fix import * Upgrade "eslint" dependencies The latest version of "react-scripts" uses eslint v8 causing the following error "... ERROR in Plugin "react" was conflicted between ".eslintrc.js" >> eslint-config-airbnb ..." * Upgrade "eslint" dependencies - Allow nested components as props * Upgrade "eslint" dependencies - Fix lint issues
34 lines
890 B
JavaScript
34 lines
890 B
JavaScript
module.exports = {
|
|
extends: ['airbnb', 'airbnb-typescript', 'prettier'],
|
|
plugins: ['@typescript-eslint', 'no-relative-import-paths', 'prettier'],
|
|
parserOptions: {
|
|
project: './tsconfig.json',
|
|
},
|
|
rules: {
|
|
'prettier/prettier': 'error',
|
|
|
|
'no-plusplus': ['error', { allowForLoopAfterthoughts: true }],
|
|
|
|
// just why
|
|
'react/jsx-no-bind': 'off',
|
|
'react/jsx-props-no-spreading': 'off',
|
|
'react/require-default-props': 'off',
|
|
'react/function-component-definition': 'off',
|
|
|
|
'react/no-unstable-nested-components': [
|
|
'error',
|
|
{
|
|
allowAsProps: true,
|
|
},
|
|
],
|
|
|
|
'no-relative-import-paths/no-relative-import-paths': [
|
|
'error',
|
|
{
|
|
rootDir: 'src',
|
|
prefix: false,
|
|
},
|
|
],
|
|
},
|
|
};
|