Skip to content

Commit

Permalink
feat: full dependencie change
Browse files Browse the repository at this point in the history
This commit bumps ESLint to v9 along with the ESlint configuration.
All configuration files had been updated as to use the .mjs or .cjs
extension, as to provide the proper style the file.
The tsconfig file also was updated, and the way in which we detect
if there is a local tsconfig in the local folder as to avoid generating one.
Styling had been changed, as to use @stylistic/eslint-plugin instead of
using prettier. Prettier is only used for non JS/TS files.

BREAKING CHANGE: The update for all configuration files is required for
all projects using the tool.
  • Loading branch information
alanrodas committed Aug 16, 2024
1 parent 0a0662c commit cb60eb3
Show file tree
Hide file tree
Showing 118 changed files with 2,545 additions and 2,152 deletions.
176 changes: 0 additions & 176 deletions .eslintrc.js

This file was deleted.

2 changes: 1 addition & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ coverage
# docs
docs

# Additional documentarion
# Additional documentation
TODO.md

# Add files in init-files
Expand Down
3 changes: 3 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
strict-peer-dependencies=false
auto-install-peers=false
legacy-peer-deps=true
12 changes: 12 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,15 @@ tsconfig.build.json
pnpm-lock.yaml
package-lock.json
yarn.lock

# Disable JS and TS files, as we will use ESLint for styling
# instead of recurring to prettier.
**/*.js
**/*.jsx
**/*.cjs
**/*.mjs
**/*.ts
**/*.tsx
**/*.cts
**/*.mts

5 changes: 4 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
"editorconfig.editorconfig",
"dbaeumer.vscode-eslint",
"christian-kohler.path-intellisense",
"SantaCodes.santacodes-region-viewer"
"SantaCodes.santacodes-region-viewer",
"foxundermoon.shell-format",
"github.vscode-github-actions",
"redhat.vscode-yaml"
]
}
12 changes: 5 additions & 7 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
{
// CSpell
"cSpell.words": [],
// Node and npm configuration
"npm.autoDetect": "on",
"debug.node.autoAttach": "smart",
"debug.node.autoAttach": "never",
"files.exclude": {
"tsconfig.build.json": true
},
// Code style, regular and ESLint related
"files.trimTrailingWhitespace": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"eslint.validate": ["typescript"],
"editor.codeActionsOnSave": {
"source.fixAll": "explicit"
},
"editor.formatOnSave": false,
// CSpell
"cSpell.words": []
"source.fixAll.eslint": "always"
}
}
Loading

0 comments on commit cb60eb3

Please sign in to comment.