Skip to content

Commit

Permalink
fix(deps): update dependency eslint-config-prettier to v8 (#76)
Browse files Browse the repository at this point in the history
* fix(deps): update dependency eslint-config-prettier to v8

* fix: include prettier plugin in all relevant configs

* docs: update list of plugins required by optional configs

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Gareth Jones <gareth.jones@ackama.com>
  • Loading branch information
3 people authored Oct 16, 2021
1 parent 680ba54 commit 708e436
Show file tree
Hide file tree
Showing 8 changed files with 1,570 additions and 2,270 deletions.
4 changes: 2 additions & 2 deletions @typescript-eslint.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
const config = {
parser: '@typescript-eslint/parser',
parserOptions: { sourceType: 'module' },
plugins: ['@typescript-eslint'],
plugins: ['@typescript-eslint', 'prettier'],
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
'prettier/@typescript-eslint'
'plugin:prettier/recommended'
],
rules: {
'@typescript-eslint/array-type': ['error', { default: 'array-simple' }],
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,16 @@ Below is a complete list of the configs provided, and their dependencies:
- `ackama/@typescript-eslint`
- `@typescript-eslint/parser`
- `@typescript-eslint/eslint-plugin`
- `eslint-plugin-prettier`
- `ackama/flowtype`
- `@babel/eslint-parser`
- `eslint-plugin-flowtype`
- `eslint-plugin-prettier`
- `ackama/jest`
- `eslint-plugin-jest`
- `eslint-plugin-jest-formatting`
- `ackama/react`
- `eslint-plugin-prettier`
- `eslint-plugin-react`
- `eslint-plugin-react-hooks`
- `eslint-plugin-jsx-a11y`
Expand Down
4 changes: 2 additions & 2 deletions flowtype.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/** @type {import('eslint').Linter.Config} */
const config = {
parser: '@babel/eslint-parser',
plugins: ['flowtype'],
extends: ['plugin:flowtype/recommended', 'prettier/flowtype'],
plugins: ['flowtype', 'prettier'],
extends: ['plugin:flowtype/recommended', 'plugin:prettier/recommended'],
rules: {
'flowtype/array-style-complex-type': ['error', 'verbose'],
'flowtype/array-style-simple-type': ['error', 'shorthand'],
Expand Down
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ const config = {
extends: [
'eslint:recommended',
'plugin:prettier/recommended',
'plugin:eslint-comments/recommended'
'plugin:eslint-comments/recommended',
'plugin:prettier/recommended'
],
ignorePatterns: [
'!.eslintrc.js',
Expand Down
Loading

0 comments on commit 708e436

Please sign in to comment.