Skip to content

Commit

Permalink
Add back in rules
Browse files Browse the repository at this point in the history
  • Loading branch information
brophdawg11 committed Jun 15, 2023
1 parent 432a1d4 commit ee91e22
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/remix-eslint-config/rules/import.js
Expand Up @@ -5,5 +5,6 @@ const ERROR = 2;
module.exports = {
"import/first": ERROR,
"import/no-amd": ERROR,
"import/no-duplicates": ERROR,
"import/no-webpack-loader-syntax": ERROR,
};
6 changes: 5 additions & 1 deletion packages/remix-eslint-config/rules/typescript.js
Expand Up @@ -41,9 +41,13 @@ module.exports = {
// These rules are turned on in the core rules but aren't needed for TypeScript code
"no-dupe-class-members": "off",
"no-undef": "off",
"no-duplicate-imports": "off",

// These stylistic rules don't match our preferences
"no-use-before-define": "off",
"prefer-const": "off",

// These rules should eventually come from @typescript-eslint/stylistic
// in typescript-eslint@6
"@typescript-eslint/consistent-type-assertions": "warn",
"@typescript-eslint/consistent-type-imports": "warn",
};

0 comments on commit ee91e22

Please sign in to comment.