Skip to content

Commit

Permalink
Merge pull request #143 from Rishikant181/dev
Browse files Browse the repository at this point in the history
v4.0.0-alpha.0
  • Loading branch information
Rishikant181 authored Mar 21, 2024
2 parents 9120d5f + 325b78a commit 9f5edfd
Show file tree
Hide file tree
Showing 38 changed files with 2,875 additions and 1,274 deletions.
74 changes: 72 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,13 @@ module.exports = {
tsconfigRootDir: __dirname,
sourceType: 'module',
},
plugins: ['@typescript-eslint/eslint-plugin', 'eslint-plugin-tsdoc'],
extends: ['plugin:@typescript-eslint/recommended', 'plugin:@typescript-eslint/recommended-requiring-type-checking'],
plugins: ['@typescript-eslint/eslint-plugin', 'eslint-plugin-tsdoc', 'import'],
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
'plugin:import/recommended',
'plugin:import/typescript',
],
root: true,
env: {
node: true,
Expand Down Expand Up @@ -42,6 +47,51 @@ module.exports = {
'@typescript-eslint/explicit-function-return-type': 'error',
'@typescript-eslint/explicit-module-boundary-types': 'error',
'@typescript-eslint/explicit-member-accessibility': 'error',
'@typescript-eslint/member-ordering': [
'warn',
{
default: {
memberTypes: [
// FIELDS

// PRIVATE
'private-static-readonly-field',
'private-static-field',
'private-field',

// PROTECTED
'protected-static-readonly-field',
'protected-static-field',
'protected-field',

// PUBLIC
'public-static-readonly-field',
'public-static-field',
'public-field',

// CONSTRUCTORS
'private-constructor',
'protected-constructor',
'public-constructor',

// METHODS

// PRIVATE
'private-static-method',
'private-method',

// PROTECTED
'protected-static-method',
'protected-method',

// PUBLIC
'public-static-method',
'public-method',
],
order: 'alphabetically',
},
},
],
'@typescript-eslint/no-explicit-any': 'warn',
'@typescript-eslint/no-extraneous-class': [
'warn',
Expand All @@ -51,5 +101,25 @@ module.exports = {
],
'@typescript-eslint/no-inferrable-types': 'off',
'tsdoc/syntax': 'warn',
'sort-imports': [
'warn',
{
ignoreCase: true,
ignoreDeclarationSort: true,
ignoreMemberSort: false,
memberSyntaxSortOrder: ['none', 'all', 'multiple', 'single'],
allowSeparatedGroups: true,
},
],
'import/order': [
'warn',
{
groups: [['builtin', 'external'], 'internal', ['sibling', 'parent'], 'index', 'unknown'],
alphabetize: {
order: 'asc',
caseInsensitive: true,
},
},
],
},
};
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodejs 20.11.1
Loading

0 comments on commit 9f5edfd

Please sign in to comment.