2020-12-24 16:49:43 +03:30
|
|
|
module.exports = {
|
2020-12-24 16:50:50 +01:00
|
|
|
extends: ['airbnb-typescript'],
|
|
|
|
plugins: ['@typescript-eslint'],
|
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
|
|
|
|
|
|
|
'no-plusplus': ['error', { 'allowForLoopAfterthoughts': true }]
|
2020-12-24 16:49:43 +03:30
|
|
|
},
|
|
|
|
};
|