This repository was archived by the owner on Dec 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(project): 🚨 add eslint plugin simple import sort
- Loading branch information
Showing
59 changed files
with
11,062 additions
and
1,001 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,37 @@ | ||
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"; | ||
import path from 'node:path'; | ||
import { fileURLToPath } from 'node:url'; | ||
|
||
import { FlatCompat } from '@eslint/eslintrc'; | ||
import js from '@eslint/js'; | ||
import tsParser from '@typescript-eslint/parser'; | ||
import simpleImportSort from 'eslint-plugin-simple-import-sort'; | ||
|
||
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 | ||
baseDirectory: __dirname, | ||
recommendedConfig: js.configs.recommended, | ||
allConfig: js.configs.all | ||
}); | ||
|
||
export default [{ | ||
ignores: ["**/node_modules", "**/bin"], | ||
}, ...compat.extends("plugin:@typescript-eslint/recommended", "plugin:prettier/recommended"), { | ||
export default [ | ||
{ | ||
ignores: ['**/node_modules', '**/bin'] | ||
}, | ||
...compat.extends('plugin:@typescript-eslint/recommended', 'plugin:prettier/recommended'), | ||
{ | ||
languageOptions: { | ||
parser: tsParser, | ||
ecmaVersion: 2018, | ||
sourceType: "module", | ||
parser: tsParser, | ||
ecmaVersion: 2018, | ||
sourceType: 'module' | ||
}, | ||
|
||
rules: { | ||
"@typescript-eslint/no-explicit-any": "off", | ||
plugins: { | ||
'simple-import-sort': simpleImportSort | ||
}, | ||
}]; | ||
rules: { | ||
'@typescript-eslint/no-explicit-any': 'off', | ||
'simple-import-sort/imports': 'error', | ||
'simple-import-sort/exports': 'error' | ||
} | ||
} | ||
]; |
Oops, something went wrong.
3bc7352
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@0xbhvn hey ,I'm looking for someone with your stack to work on our platform as a freelancer . some projects start soon and others begin in a few months . are you up for it ? contact me on telegram @eliasdiek or via email at [email protected]
3bc7352
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@0xbhvn we are also hosting a podcast on how to choose a stack to build your web3 project . would you like to participate ?