mirror of
https://github.com/zebrajr/react.git
synced 2025-12-06 12:20:20 +01:00
* Replace Babel plugin with an ESLint plugin * Fix ESLint rule violations * Move shared conditions higher * Test formatting nits * Tweak ESLint rule * Bugfix: inside else branch, 'if' tests are not satisfactory * Use a stricter check for exactly if (__DEV__) This makes it easier to see what's going on and matches dominant style in the codebase. * Fix remaining files after stricter check
11 lines
349 B
JavaScript
11 lines
349 B
JavaScript
'use strict';
|
|
|
|
module.exports = {
|
|
rules: {
|
|
'no-primitive-constructors': require('./no-primitive-constructors'),
|
|
'no-to-warn-dev-within-to-throw': require('./no-to-warn-dev-within-to-throw'),
|
|
'warning-and-invariant-args': require('./warning-and-invariant-args'),
|
|
'no-production-logging': require('./no-production-logging'),
|
|
},
|
|
};
|