Move camelcase linting exception to linting config

Ref: https://github.com/transloadit/uppy/pull/1673

Q: Should we just name those vars `locale` or `obj` or whatever? No need to have the locale name in it i think?

So no `const fr_FR = {}` but `const locale = {}` ?

/cc @arturi
This commit is contained in:
Kevin van Zonneveld 2019-06-18 21:22:36 +02:00
parent 324ba3d066
commit fe0e9143fd
17 changed files with 9 additions and 34 deletions

View file

@ -41,5 +41,12 @@
"rules": {
"compat/compat": "off"
}
},{
"files": [
"packages/@uppy/locales/src/*.js"
],
"rules": {
"camelcase": 0
}
}]
}

View file

@ -1,6 +1,4 @@
/* eslint camelcase: 0 */
var de_DE = {}
const de_DE = {}
de_DE.strings = {
addMoreFiles: 'Dateien hinzufügen',

View file

@ -1,5 +1,3 @@
/* eslint camelcase: 0 */
const en_US = {}
en_US.strings = {

View file

@ -1,5 +1,3 @@
/* eslint camelcase: 0 */
const es_ES = {}
es_ES.strings = {

View file

@ -1,6 +1,4 @@
/* eslint camelcase: 0 */
var es_GL = {}
const es_GL = {}
es_GL.strings = {
addMoreFiles: 'Agregar máis arquivos',

View file

@ -1,5 +1,3 @@
/* eslint camelcase: 0 */
const fa_IR = {}
fa_IR.strings = {

View file

@ -1,5 +1,3 @@
/* eslint camelcase: 0 */
const fr_FR = {}
fr_FR.strings = {

View file

@ -1,5 +1,3 @@
/* eslint camelcase: 0 */
const hu_HU = {}
hu_HU.contributors = ['nagyv']

View file

@ -1,5 +1,3 @@
/* eslint camelcase: 0 */
const it_IT = {}
it_IT.strings = {

View file

@ -1,5 +1,3 @@
/* eslint camelcase: 0 */
const ja_JP = {}
ja_JP.strings = {

View file

@ -1,5 +1,3 @@
/* eslint camelcase: 0 */
const nl_NL = {}
nl_NL.strings = {

View file

@ -1,5 +1,3 @@
/* eslint camelcase: 0 */
const pt_BR = {}
pt_BR.strings = {

View file

@ -1,5 +1,3 @@
/* eslint camelcase: 0 */
const ru_RU = {}
ru_RU.strings = {

View file

@ -1,5 +1,3 @@
/* eslint camelcase: 0 */
const sr_RS_Latin = {}
sr_RS_Latin.strings = {

View file

@ -1,5 +1,3 @@
/* eslint camelcase: 0 */
const tr_TR = {}
tr_TR.strings = {

View file

@ -1,5 +1,3 @@
/* eslint camelcase: 0 */
const zh_CN = {}
zh_CN.strings = {

View file

@ -1,5 +1,3 @@
/* eslint camelcase: 0 */
const zh_TW = {}
zh_TW.strings = {