diff --git a/packages/eslint-config/package.json b/packages/eslint-config/package.json index 944b892..d43d8ee 100644 --- a/packages/eslint-config/package.json +++ b/packages/eslint-config/package.json @@ -10,8 +10,10 @@ "author": "Salute Frontend Team ", "main": "index.js", "exports": { - ".": "./index.js", - "./9": "./index.mjs" + ".": { + "require": "./index.js", + "import": "./index.mjs" + } }, "dependencies": { "@salutejs/eslint-config-base": "*", diff --git a/packages/prettier-config/index.mjs b/packages/prettier-config/index.mjs new file mode 100644 index 0000000..1cad10e --- /dev/null +++ b/packages/prettier-config/index.mjs @@ -0,0 +1,11 @@ +export default { + arrowParens: 'always', + printWidth: 120, + bracketSameLine: false, + jsxSingleQuote: false, + endOfLine: 'auto', + semi: true, + singleQuote: true, + tabWidth: 4, + trailingComma: 'all', +}; \ No newline at end of file diff --git a/packages/prettier-config/package.json b/packages/prettier-config/package.json index a24f413..ff86f83 100644 --- a/packages/prettier-config/package.json +++ b/packages/prettier-config/package.json @@ -9,6 +9,12 @@ }, "author": "Salute Frontend Team ", "main": "index.js", + "exports": { + ".": { + "import": "./index.mjs", + "require": "./index.js" + } + }, "peerDependencies": { "prettier": ">=3.1.0", "typescript": ">=4.3.5"