Files
TheGame/.eslintrc.json
Michiel Quellhorst 1d74d7beea Quest Editor Implemented (#760)
* added WYSIWYG Editor for quest description
rebased

* remove console output

* completed quest editor

* removed html-to-draftjs

* fix: file directory updates

* feat: js-dom added
rebase

* fix: fixed UI bugs

* fix: toast error message added for insufficient pSEED

* fix: replaced text with Box

* fix: limit description to 4 lines

* fix: removed incorrect condition from useUser hook

* fix: webpack 5 added in next.config

* fix: next.config webpack bug and rebased

* chore: remove comment

Co-authored-by: Udit Takkar <udit.07814802719@cse.mait.ac.in>
2021-12-01 15:57:32 -05:00

84 lines
2.3 KiB
JSON

{
"root": true,
"extends": [
"airbnb-base",
"airbnb-typescript/base",
"airbnb/hooks",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:jest/recommended",
"prettier"
],
"parserOptions": {
"project": "./tsconfig.json",
"ecmaVersion": 6
},
"ignorePatterns": ["packages/web/next.config.js"],
"plugins": ["simple-import-sort"],
"settings": {
"import/resolver": {
"typescript": {}
}
},
"rules": {
"@typescript-eslint/explicit-function-return-type": "off",
// Doesn't work for FC: https://github.com/yannickcr/eslint-plugin-react/issues/2353
"react/prop-types": "off",
// Prefer non-default exports
"import/no-default-export": "off",
"import/prefer-default-export": "off",
// Auto-sort imports
"sort-imports": "off",
"import/order": "off",
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
// unary operators are ok
"no-plusplus": "off",
// Using a type system makes it safe enough to spread props
"react/jsx-props-no-spreading": "off",
// we want to be able to use functions before definition
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/ban-ts-comment": [
"error",
{
"ts-expect-error": "allow-with-description",
"minimumDescriptionLength": 5
}
],
"no-bitwise": "off"
},
"ignorePatterns": ["next.config.js"],
"overrides": [
{
// assuming Next.js application
"files": "**/pages/**/*.{ts,tsx}",
"rules": {
"react/react-in-jsx-scope": "off", // react is a global in this folder
"import/no-default-export": "off", // pages have to have a default export
"import/prefer-default-export": "off",
"@typescript-eslint/explicit-module-boundary-types": [
// So we can infer prop types
"warn",
{ "allowedNames": ["getStaticProps"] }
]
}
},
{
"files": ["**/*.stories.*"],
"rules": {
// Storybook requires default exports for stories
"import/no-default-export": "off",
"@typescript-eslint/explicit-module-boundary-types": "off"
}
}
],
"parser": "@typescript-eslint/parser"
}