Skip to content

Commit 27beaf7

Browse files
committed
Add ESLint
1 parent d78d487 commit 27beaf7

39 files changed

+4796
-647
lines changed

.github/renovate.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"fileMatch": ["pom.xml"],
2525
"matchStrings": ["<node.version>(?<currentValue>.*?)</node.version>"],
2626
"depNameTemplate": "node",
27-
"datasourceTemplate": "npm"
27+
"datasourceTemplate": "node-version"
2828
},
2929
{
3030
"customType": "regex",

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@
77
!/package.json
88
!/tsconfig.json
99
!/.prettierrc.json
10+
!/eslint.config.js
1011
!/vite.config.ts
1112
!/vitest.config.ts

eslint.config.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import neostandard, { resolveIgnoresFromGitignore, plugins } from "neostandard";
2+
3+
export default [
4+
...neostandard({
5+
ignores: resolveIgnoresFromGitignore(),
6+
noStyle: true,
7+
ts: true,
8+
}),
9+
{
10+
...plugins.react.configs.flat.recommended,
11+
settings: {
12+
react: {
13+
version: "detect",
14+
},
15+
},
16+
},
17+
plugins.n.configs["flat/recommended"],
18+
plugins.promise.configs["flat/recommended"],
19+
];

0 commit comments

Comments
 (0)