@ineedj/eslintrc
v1.2.4
Published
INEEDJ config for Eslint
Downloads
249
Maintainers
Readme
Little Config
| Option | Input Type | Description |
| --------------------------------------- | ---------------------------- | ------------------------------------------------------- |
| formatters.json | boolean | Enables JSON formatting. |
| formatters.perfectionistSorters | boolean | Enables perfectionist sorting. |
| formatters.stylistic | boolean | Enables stylistic formatting. |
| formatters.stylisticJSX | boolean | Enables stylistic formatting for JSX. |
| formatters.stylisticTS | boolean | Enables stylistic formatting for TypeScript. |
| modifiers.ban | TBan | Allows blocking of specific elements. |
| modifiers.headers | Theaders | Allows defining headers. |
| modifiers.only | "error" or "warn" | Change level Severity for all plugins. |
| modifiers.renamePlugins | boolean | If true, renamePlugins in options will override this. |
| syntax.eslint | boolean | Enables support for ESLint. |
| syntax.ignoreGlobalFiles | Prettify | Enables global file ignoring. |
| syntax.ignoreGlobalFiles.basicIgnores | boolean | Allows basic file ignoring. |
| syntax.ignoreGlobalFiles.gitIgnore | boolean | Allows ignoring files according to .gitignore. |
| syntax.ignoreGlobalFiles.ignoreFiles | string[] | List of files to ignore. |
| syntax.jsx | boolean | Enables support for JSX. |
| syntax.next | boolean | Enables support for Next.js. |
| syntax.node | boolean | Enables support for Node.js. |
| syntax.react | boolean | Enables support for React. |
| syntax.storybook | boolean | Enables support for Storybook. |
| syntax.tailwindcss | boolean | Enables support for Tailwind CSS. |
| syntax.toml | boolean | Enables support for TOML. |
| syntax.turbo | boolean | Enables support for Turbo. |
| syntax.typescript | boolean | Enables support for TypeScript. |
| syntax.vitest | boolean | Enables support for Vitest. |
| syntax.website | boolean | Enables support for websites. |
| syntax.yaml | boolean | Enables support for YAML. |
More about rules setup with @eslint/config-inspector
Install
Ni
ni -D "@ineedj/eslintrc"NPM
npm install -D "@ineedj/eslintrc"PNPM
pnpm add -D "@ineedj/eslintrc"Yarn
yarn add -D "@ineedj/eslintrc"Usage
.env
ESLINT_USE_FLAT_CONFIG = trueeslint.config.js
import ineedj from "@ineedj/eslintrc";
export default ineedj({ syntax: { eslint: true, typescript: true } });