File tree Expand file tree Collapse file tree 8 files changed +95
-123
lines changed Expand file tree Collapse file tree 8 files changed +95
-123
lines changed Original file line number Diff line number Diff line change 1
1
{
2
- "$schema" : " https://docs.renovatebot.com/renovate-schema.json" ,
3
- "extends" : [" github>eslint/eslint//.github/renovate.json5" ]
2
+ "$schema" : " https://docs.renovatebot.com/renovate-schema.json" ,
3
+ "extends" : [" github>eslint/eslint//.github/renovate.json5" ]
4
4
}
Original file line number Diff line number Diff line change 34
34
node-version : ' lts/*'
35
35
- run : npm install
36
36
- run : npm run lint
37
+ - run : npm run format:check
37
38
38
39
test-remote :
39
40
name : eslint-remote-tester
Original file line number Diff line number Diff line change 1
1
{
2
2
"line-length" : false ,
3
- "no-inline-html" : false
3
+ "no-inline-html" : false ,
4
+ "no-duplicate-heading" : {
5
+ "siblings_only" : true
6
+ }
4
7
}
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 1
- The MIT License (MIT)
2
- =====================
1
+ # The MIT License (MIT)
3
2
4
3
Copyright © 2016 Teddy Katz
5
4
Original file line number Diff line number Diff line change @@ -2,9 +2,12 @@ import path from 'node:path';
2
2
import { fileURLToPath } from 'node:url' ;
3
3
import js from '@eslint/js' ;
4
4
import { FlatCompat } from '@eslint/eslintrc' ;
5
+ import prettier from 'eslint-config-prettier/flat' ;
5
6
import markdown from 'eslint-plugin-markdown' ;
6
7
import pluginN from 'eslint-plugin-n' ;
7
8
import tseslint from 'typescript-eslint' ;
9
+ import unicorn from 'eslint-plugin-unicorn' ;
10
+
8
11
import eslintPlugin from './lib/index.js' ;
9
12
10
13
const dirname = path . dirname ( fileURLToPath ( import . meta. url ) ) ;
@@ -25,9 +28,8 @@ export default tseslint.config([
25
28
...compat . extends (
26
29
'not-an-aardvark/node' ,
27
30
'plugin:@eslint-community/eslint-comments/recommended' ,
28
- 'plugin:prettier/recommended' ,
29
- 'plugin:unicorn/recommended' ,
30
31
) ,
32
+ unicorn . configs . recommended ,
31
33
pluginN . configs [ 'flat/recommended' ] ,
32
34
{
33
35
rules : {
@@ -91,4 +93,5 @@ export default tseslint.config([
91
93
'unicorn/filename-case' : 'off' ,
92
94
} ,
93
95
} ,
96
+ prettier ,
94
97
] ) ;
Original file line number Diff line number Diff line change 12
12
"license" : " MIT" ,
13
13
"scripts" : {
14
14
"build" : " tsup" ,
15
+ "format" : " prettier --write ." ,
16
+ "format:check" : " prettier --check ." ,
15
17
"lint" : " npm-run-all --continue-on-error --aggregate-output --parallel lint:*" ,
16
18
"lint:docs" : " markdownlint \" **/*.md\" " ,
17
19
"lint:eslint-docs" : " npm-run-all -s build \" update:eslint-docs -- --check\" " ,
69
71
"eslint-doc-generator" : " ^2.2.2" ,
70
72
"eslint-plugin-markdown" : " ^5.1.0" ,
71
73
"eslint-plugin-n" : " ^17.21.0" ,
72
- "eslint-plugin-prettier" : " ^5.5.3" ,
73
- "eslint-plugin-unicorn" : " ^56.0.1" ,
74
+ "eslint-plugin-unicorn" : " ^60.0.0" ,
74
75
"eslint-remote-tester" : " ^4.0.3" ,
75
76
"eslint-scope" : " ^8.0.1" ,
76
77
"espree" : " ^10.0.1" ,
80
81
"markdownlint-cli" : " ^0.43.0" ,
81
82
"npm-package-json-lint" : " ^8.0.0" ,
82
83
"npm-run-all2" : " ^7.0.1" ,
83
- "prettier" : " ^3.4.1 " ,
84
+ "prettier" : " ^3.6.2 " ,
84
85
"release-it" : " ^17.2.0" ,
85
86
"tsup" : " ^8.5.0" ,
86
87
"typescript" : " ^5.9.2" ,
Original file line number Diff line number Diff line change 1
- export default {
1
+ import { type Config } from 'prettier' ;
2
+
3
+ const config : Config = {
2
4
singleQuote : true ,
3
5
} ;
6
+
7
+ export default config ;
You can’t perform that action at this time.
0 commit comments