Skip to content

Commit cbe3e8f

Browse files
committed
chore(deps): yarn upgrade, eslint 9 with new config format
1 parent 7d62749 commit cbe3e8f

File tree

147 files changed

+40692
-27051
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

147 files changed

+40692
-27051
lines changed

.eslintrc.js

-66
This file was deleted.

eslint.config.mjs

+84
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
import { defineConfig, globalIgnores } from 'eslint/config'
2+
import globals from 'globals'
3+
import path from 'node:path'
4+
import { fileURLToPath } from 'node:url'
5+
import js from '@eslint/js'
6+
import { FlatCompat } from '@eslint/eslintrc'
7+
8+
const __filename = fileURLToPath(import.meta.url)
9+
const __dirname = path.dirname(__filename)
10+
const compat = new FlatCompat({
11+
baseDirectory: __dirname,
12+
recommendedConfig: js.configs.recommended,
13+
allConfig: js.configs.all
14+
})
15+
16+
export default defineConfig([globalIgnores([
17+
'**/vendor/',
18+
'**/custom/',
19+
'!javascripts',
20+
'javascripts/vendor',
21+
'!styles',
22+
'!tools',
23+
'tools/*',
24+
'!tools/autoupdate',
25+
'!tools/aceditor',
26+
'!tools/attach',
27+
'!tools/bazar',
28+
'!tools/contact',
29+
'!tools/helloworld',
30+
'!tools/lang',
31+
'!tools/login',
32+
'!tools/progressbar',
33+
'!tools/rss',
34+
'!tools/security',
35+
'!tools/syndication',
36+
'!tools/tableau',
37+
'!tools/tags',
38+
'!tools/templates',
39+
'!tools/toc',
40+
'tools/aceditor/presentation/javascripts/ext-searchbox.js'
41+
]), {
42+
extends: compat.extends('airbnb-base'),
43+
44+
languageOptions: {
45+
globals: {
46+
...globals.browser,
47+
...globals.jquery,
48+
wiki: 'writable',
49+
Vue: 'readable',
50+
_t: 'readable',
51+
ace: 'writable',
52+
toastMessage: 'readable'
53+
},
54+
55+
ecmaVersion: 13,
56+
sourceType: 'module'
57+
},
58+
59+
rules: {
60+
semi: ['error', 'never'],
61+
62+
'max-len': ['error', { code: 104 }],
63+
64+
'vars-on-top': 'off',
65+
'class-methods-use-this': 'off',
66+
'import/no-unresolved': 'off',
67+
'import/extensions': ['error', 'always'],
68+
'import/prefer-default-export': ['off'],
69+
'no-use-before-define': ['off'],
70+
eqeqeq: ['error', 'smart'],
71+
'comma-dangle': ['error', 'never'],
72+
73+
'object-curly-newline': ['error', { multiline: true }],
74+
75+
'func-names': ['error', 'never'],
76+
'space-before-function-paren': ['error', 'never'],
77+
78+
'lines-between-class-members': ['error', 'always', { exceptAfterSingleLine: true }],
79+
80+
'no-new': 'off',
81+
'no-restricted-syntax': 'off',
82+
'guard-for-in': 'off'
83+
}
84+
}])

javascripts/vendor/ace/ace.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

javascripts/vendor/ace/ext-language_tools.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

javascripts/vendor/gogocarto/gogocarto.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)