Add sort keys and sort imports lint rules, and enable fix+format on save (#1209)

* Add sort keys rule and update configs so it works

Bump version of flowtype eslint plugin to fix bugs with autofixing

* Add sort imports fixable lint rule

* Run lint fix and prettier on whole repo 

* Fix unit tests broken by key sorting
This commit is contained in:
Justin Haaheim
2022-02-10 17:53:54 -08:00
committed by acywatson
parent 9d556a360e
commit 1c856e80ec
154 changed files with 3028 additions and 2737 deletions

View File

@ -14,7 +14,6 @@ const evalToString = require('./evalToString');
const invertObject = require('./invertObject');
const babylonOptions = {
sourceType: 'module',
// As a parser, babylon has its own options and we can't directly
// import/require a babel preset. It should be kept **the same** as
// the `babel-plugin-syntax-*` ones specified in
@ -26,6 +25,8 @@ const babylonOptions = {
'trailingFunctionCommas',
'objectRestSpread',
],
sourceType: 'module',
};
module.exports = function (opts) {