Skip to content

Commit

Permalink
Merge pull request #348 from Twinsteak/fix/downgrade-eslint
Browse files Browse the repository at this point in the history
[fix] 현 환경에서 정상적으로 작동하지 않는 eslint v9 다운그레이드(to v8)
  • Loading branch information
EATSTEAK authored Aug 12, 2024
2 parents 42ca27d + 996207a commit 4dcb817
Show file tree
Hide file tree
Showing 11 changed files with 1,046 additions and 1,407 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
},
"homepage": "https://github.com/EATSTEAK/lockerweb",
"devDependencies": {
"concurrently": "^8.2.2",
"lint-staged": "^15.2.7"
"concurrently": "^8.2.1",
"lint-staged": "^15.2.8"
}
}
13 changes: 13 additions & 0 deletions packages/client/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.DS_Store
node_modules
/build
/.svelte-kit
/package
.env
.env.*
!.env.example

# Ignore files for PNPM, NPM and YARN
pnpm-lock.yaml
package-lock.json
yarn.lock
67 changes: 67 additions & 0 deletions packages/client/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
module.exports = {
root: true,
extends: ['plugin:import/recommended', 'eslint:recommended', 'plugin:svelte/recommended'],
plugins: ['@typescript-eslint', 'tailwindcss'],
ignorePatterns: ['*.cjs', '*.js'],
parserOptions: {
project: 'tsconfig.json',
sourceType: 'module',
ecmaVersion: 2020,
extraFileExtensions: ['.svelte'],
},
env: {
browser: true,
es2017: true,
node: true,
},
settings: {
svelte: {
kit: {
files: {
routes: 'src/routes',
},
},
},
},
overrides: [
{
files: ['*.svelte'],
parser: 'svelte-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser',
},
extends: [
'plugin:import/typescript',
'airbnb-typescript/base',
'plugin:tailwindcss/recommended',
'plugin:@typescript-eslint/recommended',
'prettier',
],
rules: {
'@typescript-eslint/indent': 'off',
'@typescript-eslint/no-throw-literal': 'off',
'import/no-extraneous-dependencies': 'off',
'import/extensions': 'off',
'import/no-unresolved': 'off',
'no-undef': 'off',
},
},
{
files: ['*.ts'],
parser: '@typescript-eslint/parser',
extends: [
'plugin:import/typescript',
'airbnb-typescript/base',
'plugin:@typescript-eslint/recommended',
'prettier',
],
rules: {
'@typescript-eslint/indent': 'off',
'@typescript-eslint/no-throw-literal': 'off',
'import/no-extraneous-dependencies': 'off',
'import/extensions': 'off',
'import/no-unresolved': 'off',
},
},
],
};
117 changes: 0 additions & 117 deletions packages/client/eslint.config.mjs

This file was deleted.

25 changes: 11 additions & 14 deletions packages/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,36 +15,33 @@
"deploy": "node ./scripts/deploy.js"
},
"devDependencies": {
"@eslint/compat": "^1.1.1",
"@eslint/eslintrc": "^3.1.0",
"@eslint/js": "^9.7.0",
"@sveltejs/adapter-auto": "3.2.2",
"@sveltejs/adapter-static": "3.0.2",
"@sveltejs/kit": "^2.5.18",
"@sveltejs/adapter-auto": "3.2.3",
"@sveltejs/adapter-static": "3.0.3",
"@sveltejs/kit": "^2.5.21",
"@sveltejs/vite-plugin-svelte": "^3.1.1",
"@tailwindcss/forms": "^0.5.7",
"@types/lodash.isequal": "^4.5.8",
"@typescript-eslint/eslint-plugin": "^7.16.1",
"@typescript-eslint/parser": "^7.16.1",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"autoprefixer": "^10.4.19",
"cross-env": "^7.0.3",
"eslint": "^9.7.0",
"eslint-config-airbnb-typescript": "^18.0.0",
"eslint": "^8.57.0",
"eslint-config-airbnb-typescript": "^17.1.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-svelte": "^2.42.0",
"eslint-plugin-tailwindcss": "^3.17.4",
"globals": "^15.8.0",
"postcss": "^8.4.39",
"postcss-load-config": "^6.0.1",
"postcss-load-config": "^5.1.0",
"prettier": "^3.3.3",
"prettier-plugin-tailwindcss": "^0.6.5",
"prettier-plugin-tailwindcss": "^0.6.6",
"svelte": "^4.2.18",
"svelte-check": "^3.8.4",
"svelte-preprocess": "^6.0.2",
"tailwindcss": "^3.4.5",
"tslib": "^2.6.3",
"typescript": "^5.5.3",
"vite": "^5.3.3",
"vite": "^5.4.0",
"zod": "^3.23.8"
},
"type": "module",
Expand Down
33 changes: 33 additions & 0 deletions packages/server/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"env": {
"es6": true,
"browser": true,
"node": true
},
"extends": ["plugin:import/recommended", "prettier"],
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module",
"project": "tsconfig.json"
},
"plugins": ["@typescript-eslint"],
"overrides": [
{
"files": ["*.ts"],
"parser": "@typescript-eslint/parser",
"extends": [
"plugin:import/typescript",
"airbnb-typescript/base",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking"
],
"rules": {
"import/no-extraneous-dependencies": "off",
"@typescript-eslint/indent": "off"
}
}
],
"rules": {
"import/no-extraneous-dependencies": "off"
}
}
62 changes: 0 additions & 62 deletions packages/server/eslint.config.mjs

This file was deleted.

13 changes: 5 additions & 8 deletions packages/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,18 @@
"devDependencies": {
"@aws-sdk/client-dynamodb": "^3.614.0",
"@aws-sdk/types": "^3.609.0",
"@eslint/compat": "^1.1.1",
"@eslint/eslintrc": "^3.1.0",
"@eslint/js": "^9.7.0",
"@types/aws-lambda": "^8.10.141",
"@types/jsonwebtoken": "^9.0.6",
"@types/lockerweb": "link:..\\types",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"chai": "^4.4.1",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
"chai": "^5.1.1",
"cross-env": "^7.0.3",
"eslint": "^8.57.0",
"eslint-config-airbnb-typescript": "^17.1.0",
"eslint-config-airbnb-typescript": "^18.0.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-node": "^11.1.0",
"globals": "^15.8.0",
"jsonwebtoken": "^9.0.2",
"mocha": "^10.6.0",
"prettier": "^3.3.3",
Expand Down
Loading

0 comments on commit 4dcb817

Please sign in to comment.