mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-25 22:01:13 +00:00
Fixing eslint.
This commit is contained in:
parent
e8b14696a5
commit
c956ae396c
4 changed files with 59 additions and 69 deletions
|
@ -1,9 +0,0 @@
|
|||
generate_translations.js
|
||||
webpack.config.js
|
||||
src/shared/build-config.js
|
||||
src/api_tests
|
||||
**/*.png
|
||||
**/*.css
|
||||
**/*.scss
|
||||
**/*.svg
|
||||
src/shared/translations/**
|
|
@ -1,55 +0,0 @@
|
|||
{
|
||||
"root": true,
|
||||
"env": {
|
||||
"browser": true
|
||||
},
|
||||
"plugins": ["@typescript-eslint", "jsx-a11y", "prettier"],
|
||||
"extends": [
|
||||
"eslint:recommended",
|
||||
"plugin:@typescript-eslint/recommended",
|
||||
"plugin:inferno/recommended",
|
||||
"plugin:jsx-a11y/recommended"
|
||||
],
|
||||
"parser": "@typescript-eslint/parser",
|
||||
"parserOptions": {
|
||||
"project": "./tsconfig.json",
|
||||
"warnOnUnsupportedTypeScriptVersion": false
|
||||
},
|
||||
"rules": {
|
||||
"@typescript-eslint/ban-ts-comment": 0,
|
||||
"@typescript-eslint/no-explicit-any": 0,
|
||||
"@typescript-eslint/explicit-module-boundary-types": 0,
|
||||
"@typescript-eslint/no-empty-function": 0,
|
||||
"@typescript-eslint/no-non-null-assertion": 0,
|
||||
"@typescript-eslint/no-unused-vars": [
|
||||
"error",
|
||||
{ "argsIgnorePattern": "^_" }
|
||||
],
|
||||
"arrow-body-style": 0,
|
||||
"curly": 0,
|
||||
"eol-last": 0,
|
||||
"eqeqeq": "error",
|
||||
"func-style": 0,
|
||||
"import/no-duplicates": 0,
|
||||
"max-statements": 0,
|
||||
"max-params": 0,
|
||||
"new-cap": 0,
|
||||
"no-console": 0,
|
||||
"no-duplicate-imports": 0,
|
||||
"no-extra-parens": 0,
|
||||
"no-return-assign": 0,
|
||||
"no-throw-literal": 0,
|
||||
"no-trailing-spaces": 0,
|
||||
"no-unused-expressions": 0,
|
||||
"no-useless-constructor": 0,
|
||||
"no-useless-escape": 0,
|
||||
"no-var": 0,
|
||||
"prefer-const": "error",
|
||||
"prefer-rest-params": 0,
|
||||
"prettier/prettier": "error",
|
||||
"quote-props": 0,
|
||||
"unicorn/filename-case": 0,
|
||||
"jsx-a11y/media-has-caption": 0,
|
||||
"jsx-a11y/label-has-associated-control": 0
|
||||
}
|
||||
}
|
|
@ -10,7 +10,7 @@
|
|||
"build:prod": "webpack --env COMMIT_HASH=$(git rev-parse --short HEAD) --mode=production",
|
||||
"clean": "pnpm rimraf dist",
|
||||
"dev": "node generate_translations.js && pnpm build:dev --watch",
|
||||
"lint": "pnpm translations:generate && tsc --noEmit && eslint --report-unused-disable-directives --ext .js,.ts,.tsx \"src/**\" && prettier --check \"src/**/*.{ts,tsx,js,css,scss}\"",
|
||||
"lint": "pnpm translations:generate && tsc --noEmit && eslint --report-unused-disable-directives && prettier --check \"src/**/*.{ts,tsx,js,mjs,css,scss}\"",
|
||||
"prebuild:dev": "pnpm clean && node generate_translations.js",
|
||||
"prebuild:prod": "pnpm clean && node generate_translations.js",
|
||||
"prepare": "husky",
|
||||
|
@ -92,6 +92,7 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.24.3",
|
||||
"@eslint/js": "^9.2.0",
|
||||
"@types/autosize": "^4.0.3",
|
||||
"@types/bootstrap": "^5.2.10",
|
||||
"@types/cookie": "^0.6.0",
|
||||
|
@ -108,10 +109,12 @@
|
|||
"@types/toastify-js": "^1.12.3",
|
||||
"@typescript-eslint/eslint-plugin": "^7.4.0",
|
||||
"@typescript-eslint/parser": "^7.4.0",
|
||||
"eslint": "^9.0.0",
|
||||
"eslint": "^9.2.0",
|
||||
"eslint-config-prettier": "^9.1.0",
|
||||
"eslint-plugin-inferno": "^7.33.3",
|
||||
"eslint-plugin-jsx-a11y": "^6.8.0",
|
||||
"eslint-plugin-prettier": "^5.1.3",
|
||||
"globals": "^15.2.0",
|
||||
"husky": "^9.0.11",
|
||||
"import-sort-style-module": "^6.0.0",
|
||||
"lint-staged": "^15.2.2",
|
||||
|
@ -125,6 +128,7 @@
|
|||
"style-loader": "^4.0.0",
|
||||
"terser": "^5.29.2",
|
||||
"typescript": "^5.4.3",
|
||||
"typescript-eslint": "^7.9.0",
|
||||
"typescript-language-server": "^4.3.3",
|
||||
"webpack-bundle-analyzer": "^4.10.1",
|
||||
"webpack-dev-server": "5.0.4"
|
||||
|
|
|
@ -77,6 +77,9 @@ importers:
|
|||
emoji-short-name:
|
||||
specifier: ^2.0.0
|
||||
version: 2.0.0
|
||||
eslint-config-prettier:
|
||||
specifier: ^9.1.0
|
||||
version: 9.1.0(eslint@9.2.0)
|
||||
express:
|
||||
specifier: ~4.19.2
|
||||
version: 4.19.2
|
||||
|
@ -204,6 +207,9 @@ importers:
|
|||
'@babel/core':
|
||||
specifier: ^7.24.3
|
||||
version: 7.24.5
|
||||
'@eslint/js':
|
||||
specifier: ^9.2.0
|
||||
version: 9.2.0
|
||||
'@types/autosize':
|
||||
specifier: ^4.0.3
|
||||
version: 4.0.3
|
||||
|
@ -253,7 +259,7 @@ importers:
|
|||
specifier: ^7.4.0
|
||||
version: 7.9.0(eslint@9.2.0)(typescript@5.4.5)
|
||||
eslint:
|
||||
specifier: ^9.0.0
|
||||
specifier: ^9.2.0
|
||||
version: 9.2.0
|
||||
eslint-plugin-inferno:
|
||||
specifier: ^7.33.3
|
||||
|
@ -263,7 +269,10 @@ importers:
|
|||
version: 6.8.0(eslint@9.2.0)
|
||||
eslint-plugin-prettier:
|
||||
specifier: ^5.1.3
|
||||
version: 5.1.3(@types/eslint@8.56.10)(eslint@9.2.0)(prettier@3.2.5)
|
||||
version: 5.1.3(@types/eslint@8.56.10)(eslint-config-prettier@9.1.0(eslint@9.2.0))(eslint@9.2.0)(prettier@3.2.5)
|
||||
globals:
|
||||
specifier: ^15.2.0
|
||||
version: 15.2.0
|
||||
husky:
|
||||
specifier: ^9.0.11
|
||||
version: 9.0.11
|
||||
|
@ -303,6 +312,9 @@ importers:
|
|||
typescript:
|
||||
specifier: ^5.4.3
|
||||
version: 5.4.5
|
||||
typescript-eslint:
|
||||
specifier: ^7.9.0
|
||||
version: 7.9.0(eslint@9.2.0)(typescript@5.4.5)
|
||||
typescript-language-server:
|
||||
specifier: ^4.3.3
|
||||
version: 4.3.3
|
||||
|
@ -2206,6 +2218,12 @@ packages:
|
|||
resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==}
|
||||
engines: {node: '>=10'}
|
||||
|
||||
eslint-config-prettier@9.1.0:
|
||||
resolution: {integrity: sha512-NSWl5BFQWEPi1j4TjVNItzYV7dZXZ+wP6I6ZhrBGpChQhZRUaElihE9uRRkcbRnNb76UMKDF3r+WTmNcGPKsqw==}
|
||||
hasBin: true
|
||||
peerDependencies:
|
||||
eslint: '>=7.0.0'
|
||||
|
||||
eslint-plugin-inferno@7.34.0:
|
||||
resolution: {integrity: sha512-5oR+dF3k3iOYY4dJHlzfX9LZHqLqmiaT0t36JLzftASDJy44hrxMd81InnX74TMte+qSBr4L7p/5/0WWcfGckQ==}
|
||||
engines: {node: '>=20'}
|
||||
|
@ -2509,6 +2527,10 @@ packages:
|
|||
resolution: {integrity: sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==}
|
||||
engines: {node: '>=18'}
|
||||
|
||||
globals@15.2.0:
|
||||
resolution: {integrity: sha512-FQ5YwCHZM3nCmtb5FzEWwdUc9K5d3V/w9mzcz8iGD1gC/aOTHc6PouYu0kkKipNJqHAT7m51sqzQjEjIP+cK0A==}
|
||||
engines: {node: '>=18'}
|
||||
|
||||
globalthis@1.0.3:
|
||||
resolution: {integrity: sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==}
|
||||
engines: {node: '>= 0.4'}
|
||||
|
@ -4425,6 +4447,16 @@ packages:
|
|||
resolution: {integrity: sha512-/OxDN6OtAk5KBpGb28T+HZc2M+ADtvRxXrKKbUwtsLgdoxgX13hyy7ek6bFRl5+aBs2yZzB0c4CnQfAtVypW/g==}
|
||||
engines: {node: '>= 0.4'}
|
||||
|
||||
typescript-eslint@7.9.0:
|
||||
resolution: {integrity: sha512-7iTn9c10teHHCys5Ud/yaJntXZrjt3h2mrx3feJGBOLgQkF3TB1X89Xs3aVQ/GgdXRAXpk2bPTdpRwHP4YkUow==}
|
||||
engines: {node: ^18.18.0 || >=20.0.0}
|
||||
peerDependencies:
|
||||
eslint: ^8.56.0
|
||||
typescript: '*'
|
||||
peerDependenciesMeta:
|
||||
typescript:
|
||||
optional: true
|
||||
|
||||
typescript-language-server@4.3.3:
|
||||
resolution: {integrity: sha512-3QLj57Ru9S6zv10sa4z1pA3TIR1Rdkd04Ke0EszbO4fx5PLdlYhlC/PMxwlyxls9wrZs7wPCME1Ru0s1Gabz4Q==}
|
||||
engines: {node: '>=18'}
|
||||
|
@ -6896,6 +6928,10 @@ snapshots:
|
|||
|
||||
escape-string-regexp@4.0.0: {}
|
||||
|
||||
eslint-config-prettier@9.1.0(eslint@9.2.0):
|
||||
dependencies:
|
||||
eslint: 9.2.0
|
||||
|
||||
eslint-plugin-inferno@7.34.0(eslint@9.2.0):
|
||||
dependencies:
|
||||
doctrine: 3.0.0
|
||||
|
@ -6927,7 +6963,7 @@ snapshots:
|
|||
object.entries: 1.1.8
|
||||
object.fromentries: 2.0.8
|
||||
|
||||
eslint-plugin-prettier@5.1.3(@types/eslint@8.56.10)(eslint@9.2.0)(prettier@3.2.5):
|
||||
eslint-plugin-prettier@5.1.3(@types/eslint@8.56.10)(eslint-config-prettier@9.1.0(eslint@9.2.0))(eslint@9.2.0)(prettier@3.2.5):
|
||||
dependencies:
|
||||
eslint: 9.2.0
|
||||
prettier: 3.2.5
|
||||
|
@ -6935,6 +6971,7 @@ snapshots:
|
|||
synckit: 0.8.8
|
||||
optionalDependencies:
|
||||
'@types/eslint': 8.56.10
|
||||
eslint-config-prettier: 9.1.0(eslint@9.2.0)
|
||||
|
||||
eslint-scope@5.1.1:
|
||||
dependencies:
|
||||
|
@ -7271,6 +7308,8 @@ snapshots:
|
|||
|
||||
globals@14.0.0: {}
|
||||
|
||||
globals@15.2.0: {}
|
||||
|
||||
globalthis@1.0.3:
|
||||
dependencies:
|
||||
define-properties: 1.2.1
|
||||
|
@ -9135,6 +9174,17 @@ snapshots:
|
|||
is-typed-array: 1.1.13
|
||||
possible-typed-array-names: 1.0.0
|
||||
|
||||
typescript-eslint@7.9.0(eslint@9.2.0)(typescript@5.4.5):
|
||||
dependencies:
|
||||
'@typescript-eslint/eslint-plugin': 7.9.0(@typescript-eslint/parser@7.9.0(eslint@9.2.0)(typescript@5.4.5))(eslint@9.2.0)(typescript@5.4.5)
|
||||
'@typescript-eslint/parser': 7.9.0(eslint@9.2.0)(typescript@5.4.5)
|
||||
'@typescript-eslint/utils': 7.9.0(eslint@9.2.0)(typescript@5.4.5)
|
||||
eslint: 9.2.0
|
||||
optionalDependencies:
|
||||
typescript: 5.4.5
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
|
||||
typescript-language-server@4.3.3:
|
||||
dependencies:
|
||||
vscode-jsonrpc: 5.0.1
|
||||
|
|
Loading…
Reference in a new issue