Skip to content

Commit

Permalink
chore: swap tslint to eslint (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
EmandM authored May 14, 2024
1 parent 5fbd2c0 commit 725029d
Show file tree
Hide file tree
Showing 10 changed files with 2,239 additions and 994 deletions.
3 changes: 2 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
src
test
tsconfig.json
tslint.json
tsconfig.eslint.json
eslint.config.mjs
webpack.config.js
*.tgz
39 changes: 39 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import js from "@eslint/js";
import tseslint from "typescript-eslint";
import tsparser from "@typescript-eslint/parser";

export default [
js.configs.recommended,
...tseslint.configs.recommended,
...tseslint.configs.recommendedTypeChecked,
{
files: ["**/*.ts"],
languageOptions: {
parser: tsparser,
parserOptions: {
sourceType: "module",
tsconfigRootDir: './',
project: "./tsconfig.eslint.json",
},
},
rules: {
"max-line-length": "off",
"no-parameter-reassignment": "off",
"one-variable-per-declaration": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unnecessary-type-assertion": "off",

},
}, {
ignores: ["**/*.dtslint.ts", "**/*.d.ts", "lib/*", "eslint.config.mjs"],
}, {
files:["test/**/*"],
rules: {
"no-console": "off",
"@typescript-eslint/unbound-method": "off",
}
},
];
Loading

0 comments on commit 725029d

Please sign in to comment.