metro/.eslintrc.js

44 lines
904 B
JavaScript

/**
* 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: {
'lint/extra-arrow-initializer': 'off',
'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',
},
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',
},
},
],
};