* [Prettier] Add "prettier" Makes the formatting of the code consistent. By using the eslint-plugin-prettier formatting issues will be highlighted as a lint error. These errors will be auto fixed by running "lint --fix" (which can be done automatically on file save) * [Prettier] Add "prettier" - Fix formatting
26 lines
689 B
JavaScript
26 lines
689 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',
|
|
|
|
"no-relative-import-paths/no-relative-import-paths": [
|
|
"error",
|
|
{
|
|
rootDir: "src",
|
|
prefix: false,
|
|
},
|
|
],
|
|
},
|
|
};
|