Skip to content

Commit

Permalink
Merge pull request #2 from ev-the-dev/feature/import-rules
Browse files Browse the repository at this point in the history
Feature/import rules
  • Loading branch information
ev-the-dev committed Dec 27, 2023
2 parents bc0f9c2 + 6f1a401 commit b4cdf28
Show file tree
Hide file tree
Showing 4 changed files with 2,241 additions and 27 deletions.
8 changes: 8 additions & 0 deletions configs/full/full.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ import js from "@eslint/js";
// import tslint from "@typescript-eslint"
import tslintPlugin from "@typescript-eslint/eslint-plugin";
import * as tslintParser from "@typescript-eslint/parser";
import importsPlugin from "eslint-plugin-import"
import { eslintRules, tslintRules } from "../../rules";

export default [
js.configs.recommended,
importsPlugin.configs.recommended.rules,
// tslint.eslint-plugin.configs.recommended, // throws error on new config file type due to internal "extends"
{
files: ["**/*.ts"],
Expand All @@ -25,11 +27,17 @@ export default [
},
plugins: {
"@typescript-eslint": tslintPlugin,
"import": importsPlugin
},
rules: {
...eslintRules,
...tslintRules,
},
settings: {
"import/resolver": {
typescript: true
}
}
},

{
Expand Down

0 comments on commit b4cdf28

Please sign in to comment.