Skip to content

Commit

Permalink
fix(remix-eslint-config): update internal ESLint config (#4284)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDeBoey authored and kentcdodds committed Dec 15, 2022
1 parent 28dcb62 commit faf0420
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
3 changes: 1 addition & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ module.exports = {
{
files: ["templates/**/*.*"],
rules: {
"prefer-const": WARN,

"prefer-let/prefer-let": OFF,
"prefer-const": WARN,
},
},
],
Expand Down
6 changes: 4 additions & 2 deletions packages/remix-eslint-config/internal.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* This config is intended for internal Remix projects. It should not be
* documented nor considered public API in regards to semver considerations.
* documented nor considered public API in regard to semver considerations.
*/

/**
Expand All @@ -13,6 +13,7 @@ const OFF = 0;
const WARN = 1;
const ERROR = 2;

/** @type {import('eslint').Linter.Config} */
module.exports = {
root: true,
extends: [
Expand All @@ -36,7 +37,8 @@ module.exports = {
{
"newlines-between": "always",
groups: [
["builtin", "external", "internal"],
["builtin", "external"],
"internal",
["parent", "sibling", "index"],
],
},
Expand Down
3 changes: 1 addition & 2 deletions packages/remix-eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,13 @@
"devDependencies": {
"@types/eslint": "^8.4.6",
"eslint": "^8.23.1",
"jest": "^27.5.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"typescript": "^4.7.4"
},
"peerDependencies": {
"eslint": "^8.0.0",
"react": "^17.0.0 || ^18.0.0",
"react-dom": "^17.0.0 || ^18.0.0",
"typescript": "^4.0.0"
},
"peerDependenciesMeta": {
Expand Down

0 comments on commit faf0420

Please sign in to comment.