taevas.xyz/eslint.config.mjs
Taevas 28c898d400 Update dependencies
It's actually kinda scary to make changes to something that works well when you don't really know why it works well in the first place...
2024-10-30 15:50:18 +01:00

38 lines
848 B
JavaScript

import pluginReactConfig from "eslint-plugin-react/configs/recommended.js";
import react from "eslint-plugin-react";
import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';
import stylisticTs from '@stylistic/eslint-plugin-ts'
/**
* Rules to consider:
*
* "@typescript-eslint/no-unsafe-assignment": "off",
* "@typescript-eslint/dot-notation": "off",
*/
export default tseslint.config(
pluginReactConfig,
eslint.configs.recommended,
...tseslint.configs.recommended,
{
plugins: {
"@stylistic/ts": stylisticTs,
react,
},
rules: {
"@stylistic/ts/quotes": ["error", "double"],
"@stylistic/ts/indent": ["error", 2],
"react/no-unescaped-entities": "off",
}
},
{
ignores: [
".netlify/*",
"dist/*",
"*.js",
"*.cjs",
"*.mjs",
],
}
)