update eslint stack to ts-compatible v9

This commit is contained in:
f0x 2024-11-05 22:27:48 +01:00
parent 5c711c5794
commit 05a29c2287
4 changed files with 370 additions and 663 deletions

View file

@ -1,3 +0,0 @@
node_modules
prism.js
prism.css

View file

@ -17,15 +17,23 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
module.exports = { module.exports = [
"extends": ["@joepie91/eslint-config/react"], {
"parser": "@typescript-eslint/parser", files: ["**/*.ts", "**/*.tsx"],
"plugins": ["@typescript-eslint", "license-header"], languageOptions: {
"rules": { parserOptions: {
"license-header/header": ["error", __dirname + "/.license-header.js"], project: true,
"no-console": 'error' ecmaFeatures: {
jsx: true
}
}
},
plugins: {
"license-header": require("eslint-plugin-license-header")
},
rules: {
"license-header/header": ["error", __dirname + "/.license-header.js"]
}
}, },
"parserOptions": { ...require("@f0x52/eslint-config")
"sourceType": "module" ];
}
};

View file

@ -6,7 +6,7 @@
"author": "f0x", "author": "f0x",
"license": "AGPL-3.0", "license": "AGPL-3.0",
"scripts": { "scripts": {
"lint": "eslint . --ext .js,.jsx,.ts,.tsx", "lint": "eslint",
"build": "node index.js", "build": "node index.js",
"dev": "NODE_ENV=development node index.js", "dev": "NODE_ENV=development node index.js",
"prepare": "ts-patch install" "prepare": "ts-patch install"
@ -47,7 +47,7 @@
"@babel/preset-typescript": "^7.24.1", "@babel/preset-typescript": "^7.24.1",
"@browserify/envify": "^6.0.0", "@browserify/envify": "^6.0.0",
"@browserify/uglifyify": "^6.0.0", "@browserify/uglifyify": "^6.0.0",
"@joepie91/eslint-config": "^1.1.1", "@f0x52/eslint-config": "^2.0.9",
"@types/html-to-text": "^9.0.4", "@types/html-to-text": "^9.0.4",
"@types/is-valid-domain": "^0.0.2", "@types/is-valid-domain": "^0.0.2",
"@types/papaparse": "^5.3.9", "@types/papaparse": "^5.3.9",
@ -56,27 +56,21 @@
"@types/react": "^18.3.12", "@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1", "@types/react-dom": "^18.3.1",
"@types/sanitize-html": "^2.11.0", "@types/sanitize-html": "^2.11.0",
"@typescript-eslint/eslint-plugin": "^6.7.4", "@types/semver": "^7.5.8",
"@typescript-eslint/parser": "^6.7.4",
"autoprefixer": "^10.4.19", "autoprefixer": "^10.4.19",
"babelify": "^10.0.0", "babelify": "^10.0.0",
"css-extract": "^2.0.0", "css-extract": "^2.0.0",
"eslint": "^8.26.0", "eslint": "^9.14.0",
"eslint-plugin-license-header": "^0.6.0", "eslint-plugin-license-header": "^0.6.0",
"eslint-plugin-react": "^7.31.10",
"eslint-plugin-react-hooks": "^4.6.0",
"factor-bundle": "^2.5.0", "factor-bundle": "^2.5.0",
"icssify": "^2.0.0", "icssify": "^2.0.0",
"postcss": "^8.4.18", "postcss": "^8.4.18",
"postcss-custom-prop-vars": "^0.0.5", "postcss-custom-prop-vars": "^0.0.5",
"postcss-import": "^15.0.0", "postcss-import": "^15.0.0",
"postcss-nested": "^6.0.0", "postcss-nested": "^6.0.0",
"source-map-loader": "^4.0.1",
"ts-loader": "^9.4.4",
"ts-node": "^10.9.1",
"ts-patch": "^3.2.1", "ts-patch": "^3.2.1",
"tsify": "^5.0.4", "tsify": "^5.0.4",
"typescript": "^5.6.3", "typescript": "^5.6.3",
"typia": "^6.11.3" "typia": "^6.11.3"
} }
} }

File diff suppressed because it is too large Load diff