diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 39877c3efb..dedf8b476b 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -13,7 +13,7 @@ module.exports = { 'plugin:react-hooks/recommended', 'plugin:react/jsx-runtime', 'plugin:storybook/recommended', - 'plugin:prettier/recommended', + 'prettier', ], plugins: ['import', 'react', 'jsx-a11y'], overrides: [ @@ -43,21 +43,19 @@ module.exports = { }, }, { - files: ['storefront/**/*'], + files: ['apps/storefront/**/*'], extends: ['plugin:@next/next/recommended'], }, { // MDX files - extends: ['plugin:mdx/recommended'], files: ['**/*.md?(x)'], + extends: ['plugin:mdx/recommended'], settings: { 'mdx/code-blocks': false, }, }, ], rules: { - // https://github.com/prettier/eslint-plugin-prettier#recommended-configuration - 'prettier/prettier': ['error', { endOfLine: 'auto' }], 'arrow-body-style': 'off', 'prefer-arrow-callback': 'off', // Disabled because we use Typescript types for props diff --git a/.github/workflows/checks-packages.yml b/.github/workflows/checks-packages.yml index 75a59be6d4..a45d9f6212 100644 --- a/.github/workflows/checks-packages.yml +++ b/.github/workflows/checks-packages.yml @@ -7,6 +7,7 @@ on: - main paths: - 'packages/**' + - '*.*js' push: branches: - main diff --git a/package.json b/package.json index 9497e6075a..804ae83d07 100644 --- a/package.json +++ b/package.json @@ -76,7 +76,6 @@ "eslint-plugin-import": "2.29.1", "eslint-plugin-jsx-a11y": "6.8.0", "eslint-plugin-mdx": "^3.1.5", - "eslint-plugin-prettier": "5.1.3", "eslint-plugin-react": "7.33.2", "eslint-plugin-react-hooks": "4.6.0", "eslint-plugin-storybook": "^0.8.0", diff --git a/yarn.lock b/yarn.lock index ae10ea05e6..80e0597d8f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3142,13 +3142,13 @@ __metadata: linkType: hard "@humanwhocodes/config-array@npm:^0.11.13": - version: 0.11.13 - resolution: "@humanwhocodes/config-array@npm:0.11.13" + version: 0.11.14 + resolution: "@humanwhocodes/config-array@npm:0.11.14" dependencies: - "@humanwhocodes/object-schema": "npm:^2.0.1" - debug: "npm:^4.1.1" + "@humanwhocodes/object-schema": "npm:^2.0.2" + debug: "npm:^4.3.1" minimatch: "npm:^3.0.5" - checksum: 9f655e1df7efa5a86822cd149ca5cef57240bb8ffd728f0c07cc682cc0a15c6bdce68425fbfd58f9b3e8b16f79b3fd8cb1e96b10c434c9a76f20b2a89f213272 + checksum: 3ffb24ecdfab64014a230e127118d50a1a04d11080cbb748bc21629393d100850496456bbcb4e8c438957fe0934430d731042f1264d6a167b62d32fc2863580a languageName: node linkType: hard @@ -3159,10 +3159,10 @@ __metadata: languageName: node linkType: hard -"@humanwhocodes/object-schema@npm:^2.0.1": - version: 2.0.1 - resolution: "@humanwhocodes/object-schema@npm:2.0.1" - checksum: dbddfd0465aecf92ed845ec30d06dba3f7bb2496d544b33b53dac7abc40370c0e46b8787b268d24a366730d5eeb5336ac88967232072a183905ee4abf7df4dab +"@humanwhocodes/object-schema@npm:^2.0.2": + version: 2.0.3 + resolution: "@humanwhocodes/object-schema@npm:2.0.3" + checksum: 05bb99ed06c16408a45a833f03a732f59bf6184795d4efadd33238ff8699190a8c871ad1121241bb6501589a9598dc83bf25b99dcbcf41e155cdf36e35e937a3 languageName: node linkType: hard @@ -9985,26 +9985,6 @@ __metadata: languageName: node linkType: hard -"eslint-plugin-prettier@npm:5.1.3": - version: 5.1.3 - resolution: "eslint-plugin-prettier@npm:5.1.3" - dependencies: - prettier-linter-helpers: "npm:^1.0.0" - synckit: "npm:^0.8.6" - peerDependencies: - "@types/eslint": ">=8.0.0" - eslint: ">=8.0.0" - eslint-config-prettier: "*" - prettier: ">=3.0.0" - peerDependenciesMeta: - "@types/eslint": - optional: true - eslint-config-prettier: - optional: true - checksum: 4f26a30444adc61ed692cdb5a9f7e8d9f5794f0917151051e66755ce032a08c3cc72c8b5d56101412e90f6d77035bd8194ea8731e9c16aacdd5ae345a8dae188 - languageName: node - linkType: hard - "eslint-plugin-react-hooks@npm:4.6.0": version: 4.6.0 resolution: "eslint-plugin-react-hooks@npm:4.6.0" @@ -18948,7 +18928,6 @@ __metadata: eslint-plugin-import: "npm:2.29.1" eslint-plugin-jsx-a11y: "npm:6.8.0" eslint-plugin-mdx: "npm:^3.1.5" - eslint-plugin-prettier: "npm:5.1.3" eslint-plugin-react: "npm:7.33.2" eslint-plugin-react-hooks: "npm:4.6.0" eslint-plugin-storybook: "npm:^0.8.0" @@ -20201,16 +20180,6 @@ __metadata: languageName: node linkType: hard -"synckit@npm:^0.8.6": - version: 0.8.8 - resolution: "synckit@npm:0.8.8" - dependencies: - "@pkgr/core": "npm:^0.1.0" - tslib: "npm:^2.6.2" - checksum: 2864a5c3e689ad5b991bebbd8a583c5682c4fa08a4f39986b510b6b5d160c08fc3672444069f8f96ed6a9d12772879c674c1f61e728573eadfa90af40a765b74 - languageName: node - linkType: hard - "synckit@npm:^0.9.0": version: 0.9.0 resolution: "synckit@npm:0.9.0"