Skip to content

Commit

Permalink
upgrade eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
kylesurowiec committed Jul 7, 2024
1 parent a51f3be commit 770e132
Show file tree
Hide file tree
Showing 6 changed files with 80 additions and 66 deletions.
5 changes: 0 additions & 5 deletions .eslintignore

This file was deleted.

45 changes: 0 additions & 45 deletions .eslintrc.yaml

This file was deleted.

66 changes: 66 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
import tsParser from "@typescript-eslint/parser";
import path from "node:path";
import { fileURLToPath } from "node:url";
import js from "@eslint/js";
import { FlatCompat } from "@eslint/eslintrc";

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
});

export default [{
ignores: [
"dist",
"node_modules",
"example",
"**/.eslintrc.js",
"**/rollup.config.ts",
],
}, ...compat.extends(
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:@typescript-eslint/strict",
"prettier",
), {
ignores: [
'/dist',
'/node_modules',
'rollup.config.ts',
],
languageOptions: {
parser: tsParser,
ecmaVersion: 5,
sourceType: "module",
parserOptions: {
project: "tsconfig.eslint.json",
},
},
rules: {
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/consistent-type-definitions": ["warn", "type"],
"@typescript-eslint/explicit-member-accessibility": ["warn", {
accessibility: "explicit",
overrides: {
accessors: "explicit",
constructors: "no-public",
methods: "explicit",
properties: "off",
},
}],
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-floating-promises": ["warn", {
ignoreVoid: true,
ignoreIIFE: true,
}],
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/no-unused-vars": ["warn", {
argsIgnorePattern: "^_",
}],
},
}];
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"prettier": "^3.3.2",
"rollup": "4.18.0",
"rollup-plugin-cleanup": "^3.2.1",
"rollup-plugin-dts": "5.0.0",
"rollup-plugin-dts": "6.1.1",
"ts-essentials": "^10.0.1",
"ts-node": "^10.9.2",
"typescript": "^5.5.3"
Expand Down
27 changes: 13 additions & 14 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion src/webhooks/types/EventType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ export type EventType =
| 'classRosterBookingStatus.updated'
| 'classWaitlistRequest.created'
| 'classWaitlistRequest.cancelled'
| 'classRosterBookingStatus.updated'
| 'client.created'
| 'client.updated'
| 'client.deactivated'
Expand Down

0 comments on commit 770e132

Please sign in to comment.