Fold .eslintrc's into the root eslintrc

Reviewed By: davidaurelio

Differential Revision: D6996960

fbshipit-source-id: f05c76b7356b21ecb8db4489920fd3a1fc34f1d9
This commit is contained in:
Andres Suarez 2018-02-15 08:11:35 -08:00 committed by Facebook Github Bot
parent b958c400f0
commit 581623ed11
4 changed files with 18 additions and 13 deletions

View File

@ -1,3 +1,4 @@
!.eslintrc.js
**/coverage/** **/coverage/**
**/node_modules/** **/node_modules/**
**/vendor/** **/vendor/**

View File

@ -23,4 +23,21 @@ module.exports = {
'prettier/prettier': ['error', 'fb', '@format'], 'prettier/prettier': ['error', 'fb', '@format'],
'sort-keys': 'off', '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',
},
},
],
}; };

View File

@ -1,8 +0,0 @@
{
"rules": {
"operator-assignment": ["error", "never"]
},
"env": {
"node": true
}
}

View File

@ -1,5 +0,0 @@
{
"rules": {
"babel/func-params-comma-dangle": 0
}
}