Skip to content

Commit

Permalink
Use 'plugin:unicorn/all' in integration test (#1519)
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker authored Sep 22, 2021
1 parent dc7c3e8 commit 7ed1a0f
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions test/integration/config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
'use strict';
const unicorn = require('eslint-plugin-unicorn');

const enableAllRules = Object.fromEntries(
Object.entries(unicorn.configs.recommended.rules)
.filter(([id]) => id.startsWith('unicorn/'))
.map(([id]) => [id, 'error']),
);

module.exports = {
root: true,
Expand All @@ -31,10 +24,8 @@ module.exports = {
plugins: [
'unicorn',
],
extends: 'plugin:unicorn/recommended',
extends: 'plugin:unicorn/all',
rules: {
...enableAllRules,

// This rule crashing on replace string inside `jsx` or `Unicode escape sequence`
'unicorn/string-content': 'off',
},
Expand Down

0 comments on commit 7ed1a0f

Please sign in to comment.