mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-12 20:18:41 -09:00
Add trailingComma rule for config-default.js (#2372)
This commit is contained in:
parent
ba5172f9b5
commit
a53875f208
2 changed files with 24 additions and 5 deletions
|
|
@ -70,7 +70,7 @@ module.exports = {
|
|||
lightBlue: '#0066ff',
|
||||
lightMagenta: '#cc00ff',
|
||||
lightCyan: '#00ffff',
|
||||
lightWhite: '#ffffff'
|
||||
lightWhite: '#ffffff',
|
||||
},
|
||||
|
||||
// the shell to run when spawning a new session (i.e. /usr/local/bin/fish)
|
||||
|
|
@ -98,11 +98,11 @@ module.exports = {
|
|||
bell: 'SOUND',
|
||||
|
||||
// if true, selected text will automatically be copied to the clipboard
|
||||
copyOnSelect: false
|
||||
copyOnSelect: false,
|
||||
|
||||
// if true, on right click selected text will be copied or pasted if no
|
||||
// selection is present (true by default on Windows)
|
||||
// quickEdit: true
|
||||
// quickEdit: true,
|
||||
|
||||
// URL to custom bell
|
||||
// bellSoundURL: 'http://example.com/bell.mp3',
|
||||
|
|
@ -126,5 +126,5 @@ module.exports = {
|
|||
keymaps: {
|
||||
// Example
|
||||
// 'window:devtools': 'cmd+alt+o',
|
||||
}
|
||||
},
|
||||
};
|
||||
|
|
|
|||
21
package.json
21
package.json
|
|
@ -61,7 +61,26 @@
|
|||
"jsxBracketSameLine": false
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"overrides": [{
|
||||
"files": "app/config/config-default.js",
|
||||
"rules": {
|
||||
"prettier/prettier": [
|
||||
"error",
|
||||
{
|
||||
"printWidth": 120,
|
||||
"tabWidth": 2,
|
||||
"singleQuote": true,
|
||||
"trailingComma": "es5",
|
||||
"bracketSpacing": false,
|
||||
"semi": true,
|
||||
"useTabs": false,
|
||||
"parser": "babylon",
|
||||
"jsxBracketSameLine": false
|
||||
}
|
||||
]
|
||||
}
|
||||
}]
|
||||
},
|
||||
"babel": {
|
||||
"presets": ["react"],
|
||||
|
|
|
|||
Loading…
Reference in a new issue