Add trailingComma rule for config-default.js (#2372)

This commit is contained in:
Oswaldo Acauan 2017-10-18 16:17:55 -02:00 committed by CHaBou
parent ba5172f9b5
commit a53875f208
2 changed files with 24 additions and 5 deletions

View file

@ -70,7 +70,7 @@ module.exports = {
lightBlue: '#0066ff', lightBlue: '#0066ff',
lightMagenta: '#cc00ff', lightMagenta: '#cc00ff',
lightCyan: '#00ffff', lightCyan: '#00ffff',
lightWhite: '#ffffff' lightWhite: '#ffffff',
}, },
// the shell to run when spawning a new session (i.e. /usr/local/bin/fish) // the shell to run when spawning a new session (i.e. /usr/local/bin/fish)
@ -98,11 +98,11 @@ module.exports = {
bell: 'SOUND', bell: 'SOUND',
// if true, selected text will automatically be copied to the clipboard // 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 // if true, on right click selected text will be copied or pasted if no
// selection is present (true by default on Windows) // selection is present (true by default on Windows)
// quickEdit: true // quickEdit: true,
// URL to custom bell // URL to custom bell
// bellSoundURL: 'http://example.com/bell.mp3', // bellSoundURL: 'http://example.com/bell.mp3',
@ -126,5 +126,5 @@ module.exports = {
keymaps: { keymaps: {
// Example // Example
// 'window:devtools': 'cmd+alt+o', // 'window:devtools': 'cmd+alt+o',
} },
}; };

View file

@ -61,7 +61,26 @@
"jsxBracketSameLine": false "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": { "babel": {
"presets": ["react"], "presets": ["react"],