chore: Update eslint to v9 with flat config (#1412)
* chore: Update eslint to v9 with flat config * disable eslint for that whole example file. v1 not worth it imo * update ts-eslint * lock versions * ci: update pnpmpull/1409/head
parent
c26b5cb9fd
commit
c52978d7ca
@ -1,4 +0,0 @@
|
|||||||
target
|
|
||||||
node_modules
|
|
||||||
dist
|
|
||||||
dist-js
|
|
@ -1,20 +0,0 @@
|
|||||||
{
|
|
||||||
"env": {
|
|
||||||
"browser": true,
|
|
||||||
"es2021": true
|
|
||||||
},
|
|
||||||
"extends": [
|
|
||||||
"prettier",
|
|
||||||
"eslint:recommended",
|
|
||||||
"plugin:@typescript-eslint/recommended",
|
|
||||||
"plugin:security/recommended-legacy"
|
|
||||||
],
|
|
||||||
"overrides": [],
|
|
||||||
"parser": "@typescript-eslint/parser",
|
|
||||||
"parserOptions": {
|
|
||||||
"ecmaVersion": "latest",
|
|
||||||
"sourceType": "module"
|
|
||||||
},
|
|
||||||
"plugins": ["@typescript-eslint"],
|
|
||||||
"rules": {}
|
|
||||||
}
|
|
@ -0,0 +1,26 @@
|
|||||||
|
import eslint from "@eslint/js";
|
||||||
|
import eslintConfigPrettier from "eslint-config-prettier";
|
||||||
|
import tseslint from "typescript-eslint";
|
||||||
|
|
||||||
|
export default tseslint.config(
|
||||||
|
{
|
||||||
|
ignores: [
|
||||||
|
"**/target",
|
||||||
|
"**/node_modules",
|
||||||
|
"**/dist",
|
||||||
|
"**/dist-js",
|
||||||
|
"**/rollup.config.mjs",
|
||||||
|
"**/vite.config.ts",
|
||||||
|
".scripts",
|
||||||
|
"eslint.config.js",
|
||||||
|
],
|
||||||
|
},
|
||||||
|
eslint.configs.recommended,
|
||||||
|
eslintConfigPrettier,
|
||||||
|
...tseslint.configs.recommendedTypeChecked,
|
||||||
|
{
|
||||||
|
languageOptions: {
|
||||||
|
parserOptions: { project: true, tsconfigRootDir: import.meta.dirname },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
);
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in new issue