From 0f73ec8d4bd203954f91dfd5d296b512a5edebaa Mon Sep 17 00:00:00 2001 From: 3y3 <3y3@ya.ru> Date: Thu, 7 Sep 2023 03:36:19 +0300 Subject: [PATCH] fixup! 99c2b80 --- .eslintrc | 2 +- .prettierrc | 1 + .prettierrc.js | 1 - package.json | 8 ++++---- src/.eslintrc | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) create mode 100644 .prettierrc delete mode 100644 .prettierrc.js diff --git a/.eslintrc b/.eslintrc index 699ccdb4..b4c98570 100644 --- a/.eslintrc +++ b/.eslintrc @@ -1,4 +1,4 @@ { - "extends": ["@gravity-ui/eslint-config", "@gravity-ui/eslint-config/prettier"], + "extends": ["@gravity-ui/eslint-config"], "root": true } diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 00000000..72931973 --- /dev/null +++ b/.prettierrc @@ -0,0 +1 @@ +"@gravity-ui/prettier-config" diff --git a/.prettierrc.js b/.prettierrc.js deleted file mode 100644 index 5da9c2e1..00000000 --- a/.prettierrc.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@gravity-ui/prettier-config'); diff --git a/package.json b/package.json index 5402126e..f90a6542 100644 --- a/package.json +++ b/package.json @@ -111,15 +111,15 @@ "typescript": "^5.2.2" }, "lint-staged": { - "*.{js,jsx,ts,tsx}": [ - "eslint --max-warnings=0 --fix", + "src/**/*.{js,jsx,ts,tsx}": [ + "eslint --max-warnings=0 --fix -c eslint.publish.json", "prettier --write" ], - "*.{css,scss}": [ + "src/**/*.{css,scss}": [ "stylelint --fix", "prettier --write" ], - "*.{json,yaml,yml,md}": [ + "src/**/*.{json,yaml,yml,md}": [ "prettier --write" ], "*.svg": [ diff --git a/src/.eslintrc b/src/.eslintrc index 9e3fa058..9ecc6200 100644 --- a/src/.eslintrc +++ b/src/.eslintrc @@ -1,3 +1,3 @@ { - "extends": "@yandex-cloud/eslint-config/client" + "extends": "@gravity-ui/eslint-config/client" }