mirror of https://github.com/status-im/metro.git
Fold .eslintrc's into the root eslintrc
Reviewed By: davidaurelio Differential Revision: D6996960 fbshipit-source-id: f05c76b7356b21ecb8db4489920fd3a1fc34f1d9
This commit is contained in:
parent
b958c400f0
commit
581623ed11
|
@ -1,3 +1,4 @@
|
|||
!.eslintrc.js
|
||||
**/coverage/**
|
||||
**/node_modules/**
|
||||
**/vendor/**
|
||||
|
|
17
.eslintrc.js
17
.eslintrc.js
|
@ -23,4 +23,21 @@ module.exports = {
|
|||
'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',
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
{
|
||||
"rules": {
|
||||
"operator-assignment": ["error", "never"]
|
||||
},
|
||||
"env": {
|
||||
"node": true
|
||||
}
|
||||
}
|
|
@ -1,5 +0,0 @@
|
|||
{
|
||||
"rules": {
|
||||
"babel/func-params-comma-dangle": 0
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue