diff --git a/.eslintrc.json b/.eslintrc.json index 06cc47d..b902ec5 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -31,5 +31,61 @@ "extends": ["plugin:@nrwl/nx/javascript"], "rules": {} } - ] + ], + "rules": { + "linebreak-style": ["off"], + "quotes": ["error", "single"], + "@typescript-eslint/indent": [ + "error", + 4, + { + "SwitchCase": 1 + } + ], + "array-bracket-spacing": ["error", "always"], + "brace-style": ["error", "allman"], + "template-curly-spacing": ["error", "always"], + "no-multi-spaces": ["error"], + "@typescript-eslint/object-curly-spacing": [ + "error", + "always", + { + "arraysInObjects": true, + "objectsInObjects": false + } + ], + "@typescript-eslint/ban-types": [ + "error", + { + "types": { + "String": true, + "Boolean": true, + "Number": true, + "Symbol": true, + "{}": false, + "Object": false, + "object": false, + "Function": false + }, + "extendDefaults": true + } + ], + "no-switch-case-fall-through": ["off"], + "jsx-quotes": ["error"], + "react/prop-types": ["off"], + "react/jsx-curly-spacing": [ + "error", + { + "when": "always", + "children": true + } + ], + "react/jsx-equals-spacing": ["error"], + "react/jsx-newline": [ + "error", + { + "prevent": true + } + ] + } } diff --git a/tsconfig.base.json b/tsconfig.base.json index c0e83f6..f2f9273 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -10,9 +10,14 @@ "importHelpers": true, "target": "es2015", "module": "esnext", - "lib": ["es2017", "dom"], + "lib": ["es2017", "dom", "dom.iterable", "esnext"], "skipLibCheck": true, "skipDefaultLibCheck": true, + "allowJs": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "strict": false, + "noFallthroughCasesInSwitch": false, "baseUrl": ".", "paths": { "@nitro/renderer": ["libs/renderer/src/index.ts"]