mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-22 15:15:12 +08:00
fix(linter): object-shorthand, quote-props
object-shorthand got turned off. We think it's fine to say {foo: foo} if you want quote-props is error consistent as neeeded. Use custom file-by-file rules for global-require
This commit is contained in:
parent
b91ebd5504
commit
bd444864c8
2 changed files with 15 additions and 11 deletions
|
@ -27,9 +27,11 @@
|
|||
"no-loop-func": "off",
|
||||
"no-shadow": "error",
|
||||
"no-underscore-dangle": "off",
|
||||
"object-shorthand": "off",
|
||||
"quotes": "off",
|
||||
"quote-props": ["error", "consistent-as-needed", { "keywords": true }],
|
||||
"semi": "off",
|
||||
"import/no-unresolved": ["error", {"ignore": ["nylas-exports"]}],
|
||||
"import/no-unresolved": ["error", {"ignore": ["nylas-exports", "nylas-component-kit"]}],
|
||||
"react/no-multi-comp": "off",
|
||||
"react/prop-types": ["error", {"ignore": ["children"]}],
|
||||
"react/sort-comp": "error"
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/* eslint global-require: "off" */
|
||||
|
||||
// // Translation Plugin
|
||||
// Last Revised: Feb. 29, 2016 by Ben Gotow
|
||||
|
||||
|
@ -22,16 +24,16 @@ import {
|
|||
const YandexTranslationURL = 'https://translate.yandex.net/api/v1.5/tr.json/translate';
|
||||
const YandexTranslationKey = 'trnsl.1.1.20150415T044616Z.24814c314120d022.0a339e2bc2d2337461a98d5ec9863fc46e42735e';
|
||||
const YandexLanguages = {
|
||||
'English': 'en',
|
||||
'Spanish': 'es',
|
||||
'Russian': 'ru',
|
||||
'Chinese': 'zh',
|
||||
'French': 'fr',
|
||||
'German': 'de',
|
||||
'Italian': 'it',
|
||||
'Japanese': 'ja',
|
||||
'Portuguese': 'pt',
|
||||
'Korean': 'ko',
|
||||
English: 'en',
|
||||
Spanish: 'es',
|
||||
Russian: 'ru',
|
||||
Chinese: 'zh',
|
||||
French: 'fr',
|
||||
German: 'de',
|
||||
Italian: 'it',
|
||||
Japanese: 'ja',
|
||||
Portuguese: 'pt',
|
||||
Korean: 'ko',
|
||||
};
|
||||
|
||||
class TranslateButton extends React.Component {
|
||||
|
|
Loading…
Reference in a new issue