Skip to content

Commit

Permalink
chore(deps): upgrade eslint to v9 (#5338)
Browse files Browse the repository at this point in the history
* chore(deps): upgrade eslint to v9

* chore: update eslint and prettier config

* ci: updating eslint commands

* fixup! chore: update eslint and prettier config

* chore(eslint): allow console in codemods
  • Loading branch information
HeartSquared authored Dec 4, 2024
1 parent 081b39f commit b32ccb1
Show file tree
Hide file tree
Showing 10 changed files with 600 additions and 817 deletions.
4 changes: 0 additions & 4 deletions .eslintignore

This file was deleted.

329 changes: 0 additions & 329 deletions .eslintrc.js

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on:
branches:
- main # the target branch of the PR
paths:
- "**/CHANGELOG.md" # only changesets releases touch changelogs
- '**/CHANGELOG.md' # only changesets releases touch changelogs

jobs:
typescript:
Expand All @@ -34,7 +34,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
- run: pnpm lint:js && pnpm lint:md
- run: pnpm lint:eslint

prettier:
if: github.head_ref != 'changeset-release/main'
Expand Down
6 changes: 0 additions & 6 deletions .prettierrc

This file was deleted.

10 changes: 10 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
export default {
printWidth: 100,
semi: false,
singleQuote: true,
quoteProps: 'consistent',
trailingComma: 'all',
arrowParens: 'always',
experimentalTernaries: false,
tabWidth: 2,
}
5 changes: 1 addition & 4 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ Happy linting! 💖
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
"eslint.options": {
"extensions": [".js", ".jsx", ".md", ".mdx", ".ts", ".tsx"]
},
"eslint.useFlatConfig": true,
"eslint.validate": [
"markdown",
"mdx",
Expand All @@ -28,7 +26,6 @@ Happy linting! 💖
],
"editor.formatOnSave": true,
"javascript.suggestionActions.enabled": false,
"tslint.alwaysShowRuleFailuresAsWarnings": true,
"typescript.tsdk": "node_modules/typescript/lib",
"tailwindCSS.classAttributes": [
"class",
Expand Down
Loading

0 comments on commit b32ccb1

Please sign in to comment.