Files
suwayomi-material-you-webui/.eslintrc.js
Daniel 4e0a860dfd add prettier for auto formatting (#231)
* [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
2023-02-06 12:36:33 +03:30

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,
},
],
},
};