Skip to content

Commit

Permalink
Change load order
Browse files Browse the repository at this point in the history
  • Loading branch information
David Bradshaw committed Jun 11, 2020
1 parent 289eb7d commit e9d4b09
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions configs.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ const { hasAnyDep } = require('./lib/utils')

const configs = []

if (hasAnyDep('typescript'))
configs.push('@typescript-eslint/eslint-plugin', 'airbnb-typescript')
else configs.push(hasAnyDep('react') ? 'airbnb' : 'airbnb-base')
if (hasAnyDep('typescript')) configs.push('@typescript-eslint/eslint-plugin')

configs.push(hasAnyDep('react') ? 'airbnb' : 'airbnb-base')

if (hasAnyDep('typescript')) configs.push('airbnb-typescript')

configs.push('adjunct')

Expand Down

0 comments on commit e9d4b09

Please sign in to comment.