chore: edited tsconfig and eslint config
This commit is contained in:
parent
63eee81b54
commit
fca1cf0321
|
@ -31,5 +31,61 @@
|
||||||
"extends": ["plugin:@nrwl/nx/javascript"],
|
"extends": ["plugin:@nrwl/nx/javascript"],
|
||||||
"rules": {}
|
"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
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,9 +10,14 @@
|
||||||
"importHelpers": true,
|
"importHelpers": true,
|
||||||
"target": "es2015",
|
"target": "es2015",
|
||||||
"module": "esnext",
|
"module": "esnext",
|
||||||
"lib": ["es2017", "dom"],
|
"lib": ["es2017", "dom", "dom.iterable", "esnext"],
|
||||||
"skipLibCheck": true,
|
"skipLibCheck": true,
|
||||||
"skipDefaultLibCheck": true,
|
"skipDefaultLibCheck": true,
|
||||||
|
"allowJs": true,
|
||||||
|
"esModuleInterop": true,
|
||||||
|
"allowSyntheticDefaultImports": true,
|
||||||
|
"strict": false,
|
||||||
|
"noFallthroughCasesInSwitch": false,
|
||||||
"baseUrl": ".",
|
"baseUrl": ".",
|
||||||
"paths": {
|
"paths": {
|
||||||
"@nitro/renderer": ["libs/renderer/src/index.ts"]
|
"@nitro/renderer": ["libs/renderer/src/index.ts"]
|
||||||
|
|
Loading…
Reference in New Issue