mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
chore: config
This commit is contained in:
parent
d98c46a275
commit
988c5c6a25
@ -18,7 +18,8 @@ module.exports = {
|
|||||||
parser: 'jsonc-eslint-parser',
|
parser: 'jsonc-eslint-parser',
|
||||||
rules: {
|
rules: {
|
||||||
'jsonc/sort-keys': [
|
'jsonc/sort-keys': [
|
||||||
'error',
|
// here is rule (to be deleted)
|
||||||
|
'off',
|
||||||
{
|
{
|
||||||
pathPattern: '^$',
|
pathPattern: '^$',
|
||||||
order: [
|
order: [
|
||||||
@ -135,7 +136,8 @@ module.exports = {
|
|||||||
'no-inner-declarations': 'off',
|
'no-inner-declarations': 'off',
|
||||||
|
|
||||||
// prettier
|
// prettier
|
||||||
'prettier/prettier': ['error', { endOfLine: 'auto' }],
|
// all about formating, it might take a while to excute it. you can change the config in .prettierrc.js (to be deleted)
|
||||||
|
'prettier/prettier': ['off', { endOfLine: 'auto' }],
|
||||||
|
|
||||||
// airbnb-base
|
// airbnb-base
|
||||||
'no-console': 'off',
|
'no-console': 'off',
|
||||||
@ -211,5 +213,6 @@ module.exports = {
|
|||||||
'import/no-named-as-default-member': 'off',
|
'import/no-named-as-default-member': 'off',
|
||||||
yoda: 'off',
|
yoda: 'off',
|
||||||
'no-script-url': 'off',
|
'no-script-url': 'off',
|
||||||
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
@ -2,6 +2,9 @@
|
|||||||
"[javascript]": {
|
"[javascript]": {
|
||||||
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
|
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
|
||||||
},
|
},
|
||||||
|
"[json]": {
|
||||||
|
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
|
||||||
|
},
|
||||||
"editor.formatOnSave": true,
|
"editor.formatOnSave": true,
|
||||||
"eslint.format.enable": true,
|
"eslint.format.enable": true,
|
||||||
"eslint.probe": [
|
"eslint.probe": [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user