-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from unionlabs/cleanup-fix
fix: remove unused deps and actually run the linter and formatter
- Loading branch information
Showing
16 changed files
with
244 additions
and
782 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
use flake | ||
export DIRENV_WARN_TIMEOUT=1m |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -6,3 +6,6 @@ dist | |
._* | ||
_ | ||
result | ||
.direnv | ||
.eslintcache | ||
.prettiercache |
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,14 +1,73 @@ | ||
import globals from "globals"; | ||
import pluginJs from "@eslint/js"; | ||
import tseslint from "typescript-eslint"; | ||
import pluginVue from "eslint-plugin-vue"; | ||
import globals from 'globals'; | ||
import eslint from '@eslint/js'; | ||
import tseslint from 'typescript-eslint'; | ||
import eslintPluginVue from 'eslint-plugin-vue'; | ||
import eslintPrettierConfig from 'eslint-config-prettier'; | ||
import eslintPluginPrettier from 'eslint-plugin-prettier/recommended'; | ||
|
||
|
||
export default [ | ||
{files: ["**/*.{js,mjs,cjs,ts,vue}"]}, | ||
{languageOptions: { globals: globals.browser }}, | ||
pluginJs.configs.recommended, | ||
export default tseslint.config( | ||
{ files: ['**/*.{js,mjs,cjs,ts,vue,html}'] }, | ||
eslint.configs.recommended, | ||
...tseslint.configs.recommended, | ||
...pluginVue.configs["flat/essential"], | ||
{files: ["**/*.vue"], languageOptions: {parserOptions: {parser: tseslint.parser}}}, | ||
]; | ||
...eslintPluginVue.configs['flat/recommended'], | ||
{ languageOptions: { globals: globals.browser } }, | ||
{ | ||
files: ['**/*.vue', '*.vue'], | ||
languageOptions: { | ||
parserOptions: { | ||
projectService: true, | ||
extraFileExtensions: ['.vue'], | ||
tsconfigRootDir: import.meta.dirname, | ||
}, | ||
}, | ||
}, | ||
{ | ||
languageOptions: { | ||
parserOptions: { | ||
sourceType: 'module', | ||
ecmaVersion: 'latest', | ||
parser: tseslint.parser, | ||
ecmaFeatures: { jsx: true }, | ||
}, | ||
}, | ||
}, | ||
{ | ||
rules: { | ||
'prettier/prettier': [ | ||
'error', | ||
{}, | ||
{ usePrettierrc: true, fileInfoOptions: { withNodeModules: true } }, | ||
], | ||
/** | ||
* the following rules are all temporarily disabled | ||
*/ | ||
'no-empty': ['off'], | ||
'no-debugger': ['off'], | ||
'no-unsafe-optional-chaining': ['off'], | ||
|
||
'@typescript-eslint/ban-ts-comment': ['off'], | ||
'@typescript-eslint/no-unused-vars': ['off'], | ||
'@typescript-eslint/no-explicit-any': ['off'], | ||
'@typescript-eslint/no-empty-object-type': ['off'], | ||
'@typescript-eslint/no-unused-expressions': ['off'], | ||
'@typescript-eslint/no-unsafe-function-type': ['off'], | ||
|
||
'vue/valid-v-for': ['off'], | ||
'vue/valid-v-else': ['off'], | ||
'vue/no-dupe-keys': ['off'], | ||
'vue/no-unused-vars': ['off'], | ||
'vue/no-explicit-any': ['off'], | ||
'vue/no-parsing-error': ['off'], | ||
'vue/require-v-for-key': ['off'], | ||
'vue/require-prop-types': ['off'], | ||
'vue/no-use-v-if-with-v-for': ['off'], | ||
'vue/no-empty-component-block': ['off'], | ||
'vue/multi-word-component-names': ['off'], | ||
'vue/return-in-computed-property': ['off'], | ||
'vue/no-unsafe-optional-chaining': ['off'], | ||
'vue/no-async-in-computed-properties': ['off'], | ||
}, | ||
}, | ||
eslintPrettierConfig, | ||
eslintPluginPrettier, | ||
); |
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
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
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
Oops, something went wrong.