Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 8c48d30

Browse files
dependabot[bot]sy-records
andauthored
build(deps): bump tmp and eslint (#226)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Luffy <52o@qq52o.cn>
1 parent c74c3d2 commit 8c48d30

File tree

5 files changed

+7794
-5374
lines changed

5 files changed

+7794
-5374
lines changed

‎.eslintignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎.eslintrc

Lines changed: 0 additions & 15 deletions
This file was deleted.

‎eslint.config.mjs

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
import {defineConfig, globalIgnores} from 'eslint/config'
2+
import path from 'node:path'
3+
import {fileURLToPath} from 'node:url'
4+
import js from '@eslint/js'
5+
import {FlatCompat} from '@eslint/eslintrc'
6+
7+
const __filename = fileURLToPath(import.meta.url)
8+
const __dirname = path.dirname(__filename)
9+
const compat = new FlatCompat({
10+
baseDirectory: __dirname,
11+
recommendedConfig: js.configs.recommended,
12+
allConfig: js.configs.all
13+
})
14+
15+
export default defineConfig([globalIgnores(['**/.git/']), {
16+
extends: compat.extends('xo-space'),
17+
18+
rules: {
19+
semi: [2, 'never'],
20+
'no-return-assign': 'off',
21+
'no-unused-expressions': 'off',
22+
'no-new-func': 'off',
23+
'no-multi-assign': 'off',
24+
'no-mixed-operators': 'off',
25+
'max-params': 'off',
26+
'no-script-url': 'off',
27+
camelcase: 'off',
28+
'no-warning-comments': 'off'
29+
}
30+
}])

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /