@calaveradeluxe/eslint-config-shared
v1.0.5
Published
This is a eslint config for js/typescript projects.
Readme
This is a eslint config for js/typescript projects.
requires at least [email protected].
install by running npm install -D @calaveradeluxe/eslint-config-shared eslint.
After installing, replace the contents of the eslint.config.js file in your project with the content of eslint.config.example.js (see below).
You might want to set the following settings to false in your tsconfig.json
{
"compilerOptions": {
// ...
"noUnusedLocals": false,
"noUnusedParameters": false,
}
}This project already includes the following packages that can therefore
be safely removed from your project:
npm uninstall @stylistic/eslint-plugin eslint-plugin-react-hooks eslint-plugin-react-refresh typescript-eslint @eslint/js
to publish a new version, run npm publish
Example eslint.config.js:
import { defineConfig, globalIgnores } from "eslint/config";
import globals from "globals";
import sharedConfigs from "@calaveradeluxe/eslint-config-shared";
const config = defineConfig([
globalIgnores(["dist"]),
{
files: ["**/*.{ts,tsx}"],
extends: [sharedConfigs.typescript, sharedConfigs.react],
languageOptions: {
globals: { ...globals.browser },
},
},
]);
export default config;