2017-12-11 20:15:59 +00:00
|
|
|
/**
|
|
|
|
* Copyright 2004-present Facebook. All Rights Reserved.
|
|
|
|
*
|
|
|
|
* @format
|
|
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
env: {
|
|
|
|
node: true,
|
|
|
|
},
|
|
|
|
extends: 'eslint-config-fb-strict',
|
|
|
|
plugins: ['babel', 'flowtype', 'prettier'],
|
|
|
|
parser: 'babel-eslint',
|
|
|
|
rules: {
|
2018-02-09 18:59:42 +00:00
|
|
|
'lint/extra-arrow-initializer': 'off',
|
2017-12-11 20:15:59 +00:00
|
|
|
'max-len': 'off',
|
|
|
|
'no-alert': 'off',
|
|
|
|
'no-console-disallow': 'off',
|
|
|
|
'no-var': 'off',
|
|
|
|
'prefer-arrow-callback': 'off',
|
|
|
|
'prefer-const': ['warn', {destructuring: 'all'}],
|
|
|
|
'prettier/prettier': ['error', 'fb', '@format'],
|
|
|
|
'sort-keys': 'off',
|
|
|
|
},
|
2018-02-15 16:11:35 +00:00
|
|
|
overrides: [
|
|
|
|
{
|
|
|
|
files: ['packages/metro-source-map/**/*.js'],
|
|
|
|
rules: {
|
|
|
|
'operator-assignment': ['error', 'never'],
|
|
|
|
},
|
|
|
|
env: {
|
|
|
|
node: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
files: ['scripts/**/*.js'],
|
|
|
|
rules: {
|
|
|
|
'babel/func-params-comma-dangle': 'off',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
2017-12-11 20:15:59 +00:00
|
|
|
};
|