Skip to content

Commit

Permalink
fix: stop using the legacy prettier configs
Browse files Browse the repository at this point in the history
BREAKING CHANGE: recently published versions are broken
  • Loading branch information
rfgamaral committed Apr 24, 2021
1 parent fb75b8c commit 9c57202
Show file tree
Hide file tree
Showing 19 changed files with 2 additions and 35 deletions.
1 change: 0 additions & 1 deletion airbnb-react.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ module.exports = {
extends: [
'airbnb',
...airbnbConfiguration.extends.slice(1, airbnbConfiguration.extends.length),
'prettier/react',
],
rules: {
...airbnbConfiguration.rules,
Expand Down
6 changes: 1 addition & 5 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
'use strict';

module.exports = {
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
'prettier/@typescript-eslint',
],
extends: ['plugin:@typescript-eslint/recommended', 'plugin:prettier/recommended'],
parser: '@typescript-eslint/parser',
parserOptions: {
project: './tsconfig.json',
Expand Down
1 change: 0 additions & 1 deletion recommended-react.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ module.exports = {
extends: [
'airbnb',
...recommendedConfiguration.extends.slice(1, recommendedConfiguration.extends.length),
'prettier/react',
],
rules: {
...recommendedConfiguration.rules,
Expand Down
2 changes: 0 additions & 2 deletions tests/airbnb-react-hooks-semantics.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ describe('Airbnb (React + Hooks)', () => {
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
'plugin:prettier/recommended',
'prettier/@typescript-eslint',
'prettier/react',
],
parser: '@typescript-eslint/parser',
parserOptions: { project: './tsconfig.json' },
Expand Down
2 changes: 0 additions & 2 deletions tests/airbnb-react-hooks.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ describe('Airbnb (React + Hooks)', () => {
'plugin:import/typescript',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
'prettier/@typescript-eslint',
'prettier/react',
],
parser: '@typescript-eslint/parser',
parserOptions: { project: './tsconfig.json' },
Expand Down
2 changes: 0 additions & 2 deletions tests/airbnb-react-semantics.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ describe('Airbnb (React)', () => {
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
'plugin:prettier/recommended',
'prettier/@typescript-eslint',
'prettier/react',
],
parser: '@typescript-eslint/parser',
parserOptions: { project: './tsconfig.json' },
Expand Down
2 changes: 0 additions & 2 deletions tests/airbnb-react.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ describe('Airbnb (React)', () => {
'plugin:import/typescript',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
'prettier/@typescript-eslint',
'prettier/react',
],
parser: '@typescript-eslint/parser',
parserOptions: { project: './tsconfig.json' },
Expand Down
1 change: 0 additions & 1 deletion tests/airbnb-semantics.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ describe('Airbnb', () => {
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
'plugin:prettier/recommended',
'prettier/@typescript-eslint',
],
parser: '@typescript-eslint/parser',
parserOptions: { project: './tsconfig.json' },
Expand Down
1 change: 0 additions & 1 deletion tests/airbnb.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ describe('Airbnb', () => {
'plugin:import/typescript',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
'prettier/@typescript-eslint',
],
parser: '@typescript-eslint/parser',
parserOptions: { project: './tsconfig.json' },
Expand Down
1 change: 0 additions & 1 deletion tests/eslint-semantics.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ describe('ESLint', () => {
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
'plugin:prettier/recommended',
'prettier/@typescript-eslint',
],
parser: '@typescript-eslint/parser',
parserOptions: { project: './tsconfig.json' },
Expand Down
1 change: 0 additions & 1 deletion tests/eslint.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ describe('ESLint', () => {
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
'prettier/@typescript-eslint',
],
parser: '@typescript-eslint/parser',
parserOptions: { project: './tsconfig.json' },
Expand Down
6 changes: 1 addition & 5 deletions tests/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@ const defaultConfiguration = require('../');
describe('Default', () => {
test('configuration is exported correctly', () => {
expect(defaultConfiguration).toEqual({
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
'prettier/@typescript-eslint',
],
extends: ['plugin:@typescript-eslint/recommended', 'plugin:prettier/recommended'],
parser: '@typescript-eslint/parser',
parserOptions: { project: './tsconfig.json' },
rules: { 'no-undef': 'off' },
Expand Down
2 changes: 0 additions & 2 deletions tests/recommended-react-hooks-semantics.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ describe('Airbnb (React + Hooks)', () => {
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
'plugin:prettier/recommended',
'prettier/@typescript-eslint',
'prettier/react',
],
parser: '@typescript-eslint/parser',
parserOptions: { project: './tsconfig.json' },
Expand Down
2 changes: 0 additions & 2 deletions tests/recommended-react-hooks.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ describe('Airbnb (React + Hooks)', () => {
'plugin:import/typescript',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
'prettier/@typescript-eslint',
'prettier/react',
],
parser: '@typescript-eslint/parser',
parserOptions: { project: './tsconfig.json' },
Expand Down
2 changes: 0 additions & 2 deletions tests/recommended-react-semantics.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ describe('Airbnb (React)', () => {
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
'plugin:prettier/recommended',
'prettier/@typescript-eslint',
'prettier/react',
],
parser: '@typescript-eslint/parser',
parserOptions: { project: './tsconfig.json' },
Expand Down
2 changes: 0 additions & 2 deletions tests/recommended-react.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ describe('Recommended (React)', () => {
'plugin:import/typescript',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
'prettier/@typescript-eslint',
'prettier/react',
],
parser: '@typescript-eslint/parser',
parserOptions: { project: './tsconfig.json' },
Expand Down
1 change: 0 additions & 1 deletion tests/recommended-semantics.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ describe('Airbnb', () => {
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
'plugin:prettier/recommended',
'prettier/@typescript-eslint',
],
parser: '@typescript-eslint/parser',
parserOptions: { project: './tsconfig.json' },
Expand Down
1 change: 0 additions & 1 deletion tests/recommended.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ describe('Recommended', () => {
'plugin:import/typescript',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
'prettier/@typescript-eslint',
],
parser: '@typescript-eslint/parser',
parserOptions: { project: './tsconfig.json' },
Expand Down
1 change: 0 additions & 1 deletion tests/semantics.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ describe('Default', () => {
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
'plugin:prettier/recommended',
'prettier/@typescript-eslint',
],
parser: '@typescript-eslint/parser',
parserOptions: { project: './tsconfig.json' },
Expand Down

0 comments on commit 9c57202

Please sign in to comment.