2020-12-24 16:49:43 +03:30
|
|
|
module.exports = {
|
2021-09-09 17:05:07 +04:30
|
|
|
extends: [
|
|
|
|
|
'airbnb',
|
|
|
|
|
'airbnb-typescript'
|
|
|
|
|
],
|
2023-02-05 16:15:20 +01:00
|
|
|
plugins: ['@typescript-eslint', 'no-relative-import-paths'],
|
2020-12-24 17:19:49 +03:30
|
|
|
parserOptions: {
|
2020-12-24 16:50:50 +01:00
|
|
|
project: './tsconfig.json',
|
2020-12-24 17:19:49 +03:30
|
|
|
},
|
|
|
|
|
rules: {
|
|
|
|
|
// Indent with 4 spaces
|
2020-12-24 16:50:50 +01:00
|
|
|
'@typescript-eslint/indent': ['error', 4],
|
2020-12-24 17:19:49 +03:30
|
|
|
|
|
|
|
|
// Indent JSX with 4 spaces
|
|
|
|
|
'react/jsx-indent': ['error', 4],
|
|
|
|
|
|
|
|
|
|
// Indent props with 4 spaces
|
|
|
|
|
'react/jsx-indent-props': ['error', 4],
|
2021-03-09 16:44:09 +03:30
|
|
|
|
2021-09-09 17:51:22 +04:30
|
|
|
'no-plusplus': ['error', { 'allowForLoopAfterthoughts': true }],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// just why
|
|
|
|
|
'react/jsx-no-bind' : 'off',
|
2022-11-24 09:41:03 +01:00
|
|
|
'react/jsx-props-no-spreading': 'off',
|
|
|
|
|
'react/require-default-props': 'off',
|
2023-02-05 16:15:20 +01:00
|
|
|
|
|
|
|
|
"no-relative-import-paths/no-relative-import-paths": [
|
|
|
|
|
"error",
|
|
|
|
|
{
|
|
|
|
|
rootDir: "src",
|
|
|
|
|
prefix: false,
|
|
|
|
|
},
|
|
|
|
|
],
|
2020-12-24 16:49:43 +03:30
|
|
|
},
|
|
|
|
|
};
|