Skip to content

Commit

Permalink
Merge pull request #214 from mykhalenych/feature/prettier_for_eslint-…
Browse files Browse the repository at this point in the history
…config-react-typescript

Feature/prettier
  • Loading branch information
mgrinko authored Feb 14, 2024
2 parents 02f768e + e733dce commit 7dd9ffa
Show file tree
Hide file tree
Showing 6 changed files with 1,270 additions and 698 deletions.
3 changes: 3 additions & 0 deletions eslint-config-react-typescript/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ module.exports = {
'airbnb-typescript',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended'
],
parser: '@typescript-eslint/parser',
parserOptions: {
Expand All @@ -23,6 +24,7 @@ module.exports = {
'react',
'react-hooks',
'@typescript-eslint',
'prettier'
],
rules: {
// JS
Expand All @@ -49,6 +51,7 @@ module.exports = {
{ blankLine: 'always', prev: 'directive', next: '*' },
{ blankLine: 'always', prev: 'block-like', next: '*' },
],
'implicit-arrow-linebreak:': 0,

// React
'react/prop-types': 0,
Expand Down
50 changes: 49 additions & 1 deletion eslint-config-react-typescript/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions eslint-config-react-typescript/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mate-academy/eslint-config-react-typescript",
"version": "1.0.13",
"version": "1.0.14",
"description": "React config for Mate academy students based on airbnb with Typescript",
"main": "index.js",
"scripts": {
Expand All @@ -13,8 +13,10 @@
"eslint-config-airbnb-typescript": "^12.3.1",
"eslint-plugin-import": "^2.23.4",
"eslint-plugin-jsx-a11y": "^6.4.1",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-react": "^7.27.1",
"eslint-plugin-react-hooks": "^4.2.0"
"eslint-plugin-react-hooks": "^4.2.0",
"prettier": "^3.2.5"
},
"repository": {
"type": "git",
Expand Down
6 changes: 4 additions & 2 deletions eslint-config-react/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use strict";

module.exports = {
"extends": ["airbnb", "@mate-academy/eslint-config"],
"extends": ["airbnb", "plugin:prettier/recommended", "@mate-academy/eslint-config"],
"env": {
"es6": true,
"browser": true
Expand All @@ -16,6 +16,7 @@ module.exports = {
},
"plugins": [
"react",
"prettier"
],
rules: {
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
Expand All @@ -41,6 +42,7 @@ module.exports = {
{"blankLine": "always", "prev": "directive", "next": "*"},
{"blankLine": "always", "prev": "block-like", "next": "*"},
],
"import/prefer-default-export": 0
"import/prefer-default-export": 0,
"implicit-arrow-linebreak": 0
}
};
Loading

0 comments on commit 7dd9ffa

Please sign in to comment.