mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-22 22:59:35 +02:00
54 lines
1.9 KiB
JSON
54 lines
1.9 KiB
JSON
{
|
|
"env": {
|
|
"es2021": true,
|
|
"node": true
|
|
},
|
|
"extends": ["eslint:recommended", "plugin:@stylistic/all-extends"],
|
|
"ignorePatterns": ["node_modules", "*example.js"],
|
|
"parserOptions": {
|
|
"ecmaVersion": 2021,
|
|
"sourceType": "module"
|
|
},
|
|
"rules": {
|
|
"curly": "error",
|
|
"no-implicit-coercion": "error",
|
|
"no-unused-vars": [
|
|
"error",
|
|
{
|
|
"vars": "all",
|
|
"args": "none",
|
|
"ignoreRestSiblings": false
|
|
}
|
|
],
|
|
"@stylistic/array-bracket-newline": ["error", "consistent"],
|
|
"@stylistic/array-element-newline": ["error", "consistent"],
|
|
"@stylistic/arrow-parens": "off",
|
|
"@stylistic/comma-dangle": ["error", "always-multiline"],
|
|
"@stylistic/dot-location": ["error", "property"],
|
|
"@stylistic/function-call-argument-newline": ["error", "consistent"],
|
|
"@stylistic/function-paren-newline": "off",
|
|
"@stylistic/indent": ["error", "tab"],
|
|
"@stylistic/indent-binary-ops": ["error", "tab"],
|
|
"@stylistic/max-len": "off",
|
|
"@stylistic/multiline-ternary": ["error", "always-multiline"],
|
|
"@stylistic/newline-per-chained-call": ["error", { "ignoreChainWithDepth": 1 }],
|
|
"@stylistic/no-mixed-operators": "off",
|
|
"@stylistic/no-tabs": "off",
|
|
"@stylistic/object-property-newline": "off",
|
|
"@stylistic/one-var-declaration-per-line": "off",
|
|
"@stylistic/operator-linebreak": ["error", "before"],
|
|
"@stylistic/padded-blocks": "off",
|
|
"@stylistic/quote-props": ["error", "consistent-as-needed"],
|
|
"@stylistic/quotes": ["error", "single"]
|
|
},
|
|
"overrides": [
|
|
{
|
|
"files": [
|
|
"test/**"
|
|
],
|
|
"rules": {
|
|
"no-unused-vars": "off"
|
|
}
|
|
}
|
|
]
|
|
}
|