Skip to content

Commit

Permalink
re-write some logic for eslint 9 support
Browse files Browse the repository at this point in the history
  • Loading branch information
Tagankin Paul authored and Tagankin Paul committed Dec 20, 2024
1 parent 8600844 commit c63a19c
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@
"author": "Salute Frontend Team <[email protected]>",
"main": "index.js",
"exports": {
".": "./index.js",
"./9": "./index.mjs"
".": {
"require": "./index.js",
"import": "./index.mjs"
}
},
"dependencies": {
"@salutejs/eslint-config-base": "*",
Expand Down
11 changes: 11 additions & 0 deletions packages/prettier-config/index.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
export default {
arrowParens: 'always',
printWidth: 120,
bracketSameLine: false,
jsxSingleQuote: false,
endOfLine: 'auto',
semi: true,
singleQuote: true,
tabWidth: 4,
trailingComma: 'all',
};
6 changes: 6 additions & 0 deletions packages/prettier-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
},
"author": "Salute Frontend Team <[email protected]>",
"main": "index.js",
"exports": {
".": {
"import": "./index.mjs",
"require": "./index.js"
}
},
"peerDependencies": {
"prettier": ">=3.1.0",
"typescript": ">=4.3.5"
Expand Down

0 comments on commit c63a19c

Please sign in to comment.