@doczilla/node
Version:
Doczilla API wrapper
95 lines (94 loc) • 1.91 kB
JSON
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module"
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"plugins": [
"@typescript-eslint",
"simple-import-sort"
],
"overrides": [
{
"files": [
"*.ts"
],
"rules": {
"no-unneeded-ternary": [
"error"
],
"no-nested-ternary": [
"error"
],
"multiline-ternary": [
"error",
"always-multiline"
],
"operator-linebreak": [
"error",
"before"
],
"simple-import-sort/imports": [
"warn",
{
"groups": [
[
"^@?\\w"
],
// "type" imports.
[
"^.*\\u0000$"
],
// Absolute imports and other imports such as Vue-style `@/foo`.
// Anything not matched in another group.
[
"^"
],
// Relative imports.
// Anything that starts with a dot.
[
"^\\."
]
]
}
],
"simple-import-sort/exports": "warn",
"object-curly-spacing": [
"error",
"always"
],
"quotes": [
"warn",
"single"
],
"func-style": [
"warn",
"declaration"
]
}
},
{
"files": [
"*.spec.ts",
"*.spec.tsx",
"*.spec.js",
"*.spec.jsx"
],
"env": {
"jest": true
},
"rules": {}
},
{
"files": "*.json",
"parser": "jsonc-eslint-parser",
"rules": {}
}
]
}