2020-12-24 14:19:43 +01:00
|
|
|
module.exports = {
|
2020-12-24 16:50:50 +01:00
|
|
|
extends: ['airbnb-typescript'],
|
|
|
|
plugins: ['@typescript-eslint'],
|
2020-12-24 14:49:49 +01:00
|
|
|
parserOptions: {
|
2020-12-24 16:50:50 +01:00
|
|
|
project: './tsconfig.json',
|
2020-12-24 14:49:49 +01:00
|
|
|
},
|
|
|
|
rules: {
|
|
|
|
// Indent with 4 spaces
|
2020-12-24 16:50:50 +01:00
|
|
|
'@typescript-eslint/indent': ['error', 4],
|
2020-12-24 14:49:49 +01:00
|
|
|
|
|
|
|
// Indent JSX with 4 spaces
|
|
|
|
'react/jsx-indent': ['error', 4],
|
|
|
|
|
|
|
|
// Indent props with 4 spaces
|
|
|
|
'react/jsx-indent-props': ['error', 4],
|
2021-03-09 14:14:09 +01:00
|
|
|
|
|
|
|
'no-plusplus': ['error', { 'allowForLoopAfterthoughts': true }]
|
2020-12-24 14:19:43 +01:00
|
|
|
},
|
|
|
|
};
|