forked from TEAM-MAT/lockerweb
-
Notifications
You must be signed in to change notification settings - Fork 1
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 #347 from Twinsteak/refactor/migrate-dependencies
[refactor] 의존성 업데이트 및 마이그레이션
- Loading branch information
Showing
29 changed files
with
5,243 additions
and
3,622 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
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 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 |
---|---|---|
@@ -0,0 +1,117 @@ | ||
import { fixupConfigRules, fixupPluginRules } from '@eslint/compat'; | ||
import typescriptEslint from '@typescript-eslint/eslint-plugin'; | ||
import tailwindcss from 'eslint-plugin-tailwindcss'; | ||
import globals from 'globals'; | ||
import parser from 'svelte-eslint-parser'; | ||
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: [ | ||
'**/*.cjs', | ||
'**/.DS_Store', | ||
'**/node_modules', | ||
'build', | ||
'.svelte-kit', | ||
'package', | ||
'**/.env', | ||
'**/.env.*', | ||
'!**/.env.example', | ||
'**/pnpm-lock.yaml', | ||
'**/package-lock.json', | ||
'**/yarn.lock', | ||
'eslint.config.mjs', | ||
], | ||
}, | ||
...fixupConfigRules(compat.extends('eslint:recommended', 'plugin:svelte/recommended')), | ||
{ | ||
plugins: { | ||
'@typescript-eslint': fixupPluginRules(typescriptEslint), | ||
tailwindcss: fixupPluginRules(tailwindcss), | ||
}, | ||
|
||
languageOptions: { | ||
globals: { | ||
...globals.browser, | ||
...globals.node, | ||
}, | ||
|
||
ecmaVersion: 2020, | ||
sourceType: 'module', | ||
|
||
parserOptions: { | ||
project: 'tsconfig.json', | ||
extraFileExtensions: ['.svelte'], | ||
}, | ||
}, | ||
|
||
settings: { | ||
svelte: { | ||
kit: { | ||
files: { | ||
routes: 'src/routes', | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
...fixupConfigRules( | ||
compat.extends( | ||
'plugin:tailwindcss/recommended', | ||
'plugin:@typescript-eslint/recommended', | ||
'prettier', | ||
), | ||
).map((config) => ({ | ||
...config, | ||
files: ['**/*.svelte'], | ||
})), | ||
{ | ||
files: ['**/*.svelte'], | ||
|
||
languageOptions: { | ||
parser: parser, | ||
ecmaVersion: 5, | ||
sourceType: 'script', | ||
|
||
parserOptions: { | ||
parser: '@typescript-eslint/parser', | ||
}, | ||
}, | ||
|
||
rules: { | ||
'@typescript-eslint/indent': 'off', | ||
'@typescript-eslint/no-throw-literal': 'off', | ||
'no-undef': 'off', | ||
}, | ||
}, | ||
...fixupConfigRules(compat.extends('plugin:@typescript-eslint/recommended', 'prettier')).map( | ||
(config) => ({ | ||
...config, | ||
files: ['**/*.ts'], | ||
}), | ||
), | ||
{ | ||
files: ['**/*.ts'], | ||
|
||
languageOptions: { | ||
parser: tsParser, | ||
}, | ||
|
||
rules: { | ||
'@typescript-eslint/indent': 'off', | ||
'@typescript-eslint/no-throw-literal': 'off', | ||
}, | ||
}, | ||
]; |
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 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
Oops, something went wrong.