mirror of https://github.com/go-gitea/gitea.git
use @typescript-eslint/parser, disable new lint errors
This commit is contained in:
parent
fdd8b5ff2c
commit
f21acedc27
|
@ -6,6 +6,8 @@ ignorePatterns:
|
|||
- /web_src/fomantic
|
||||
- /public/assets/js
|
||||
|
||||
parser: "@typescript-eslint/parser"
|
||||
|
||||
parserOptions:
|
||||
sourceType: module
|
||||
ecmaVersion: latest
|
||||
|
@ -31,6 +33,9 @@ env:
|
|||
node: true
|
||||
|
||||
settings:
|
||||
import/extensions: [".js"]
|
||||
import/parsers:
|
||||
"@typescript-eslint/parser": [".js", ".ts"]
|
||||
import/resolver:
|
||||
typescript: true
|
||||
|
||||
|
|
|
@ -68,6 +68,7 @@
|
|||
"@stoplight/spectral-cli": "6.11.1",
|
||||
"@stylistic/eslint-plugin-js": "1.8.0",
|
||||
"@stylistic/stylelint-plugin": "2.1.2",
|
||||
"@typescript-eslint/parser": "7.8.0",
|
||||
"@vitejs/plugin-vue": "5.0.4",
|
||||
"eslint": "8.57.0",
|
||||
"eslint-import-resolver-typescript": "3.6.1",
|
||||
|
|
|
@ -67,6 +67,7 @@
|
|||
"@stoplight/spectral-cli": "6.11.1",
|
||||
"@stylistic/eslint-plugin-js": "1.8.0",
|
||||
"@stylistic/stylelint-plugin": "2.1.2",
|
||||
"@typescript-eslint/parser": "7.8.0",
|
||||
"@vitejs/plugin-vue": "5.0.4",
|
||||
"eslint": "8.57.0",
|
||||
"eslint-import-resolver-typescript": "3.6.1",
|
||||
|
|
|
@ -4,7 +4,7 @@ import {isDocumentFragmentOrElementNode} from '../utils/dom.js';
|
|||
import octiconKebabHorizontal from '../../../public/assets/img/svg/octicon-kebab-horizontal.svg';
|
||||
|
||||
window.customElements.define('overflow-menu', class extends HTMLElement {
|
||||
updateItems = throttle(100, () => {
|
||||
updateItems = throttle(100, () => { // eslint-disable-line unicorn/consistent-function-scoping
|
||||
if (!this.tippyContent) {
|
||||
const div = document.createElement('div');
|
||||
div.classList.add('tippy-target');
|
||||
|
|
|
@ -7,7 +7,7 @@ import MonacoWebpackPlugin from 'monaco-editor-webpack-plugin';
|
|||
import {VueLoaderPlugin} from 'vue-loader';
|
||||
import EsBuildLoader from 'esbuild-loader';
|
||||
import {parse, dirname} from 'node:path';
|
||||
import webpack from 'webpack';
|
||||
import webpack from 'webpack'; // eslint-disable-line i/no-named-as-default
|
||||
import {fileURLToPath} from 'node:url';
|
||||
import {readFileSync} from 'node:fs';
|
||||
import {env} from 'node:process';
|
||||
|
|
Loading…
Reference in New Issue