Skip to content

Commit 5e06bbb

Browse files
committed
fix(config): make import/no-cycle config serialisable to JSON
1 parent 6372d93 commit 5e06bbb

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/__snapshots__/semver.test.js.snap

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ Object {
2222
"id-length": Array [
2323
0,
2424
],
25+
"import/no-cycle": Array [
26+
2,
27+
],
2528
"import/no-extraneous-dependencies": Array [
2629
2,
2730
Object {

src/base.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ module.exports = {
4646
// Does not work at the moment for nested fields.
4747
// https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/label-has-for.md
4848
"jsx-a11y/label-has-for": [0],
49+
// Override airbnb config to make it serialisable to JSON.
50+
// https://github.com/airbnb/javascript/blob/32a7bf44c2e5b3d2a5d05af46716fbe45bc09bec/packages/eslint-config-airbnb-base/rules/imports.js#L230
51+
"import/no-cycle": [2],
4952
},
5053

5154
// http://eslint.org/docs/user-guide/configuring#specifying-environments

0 commit comments

Comments
 (0)