0.2.2 • Published 9 months ago

@alexey-koran/eslint-config v0.2.2

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

@alexey-koran/eslint-config

ESLint shareable config

Installation

pnpm i -D @alexey-koran/eslint-config

Usage example

Scripts

!NOTE

allJsTsExtensions = js, cjs, mjs, jsx, cjsx, mjsx, ts, cts, mts, tsx, ctsx, mtsx

For the more details check scripts section in package.json

CommandDescriptionPath
Code linting & formatting
pnpm prettiercode format check**/*.{allJsTsExtensions,pcss}
pnpm prettier:fixcode format autofix**/*.{allJsTsExtensions,pcss}
pnpm linteslint check**/*.{allJsTsExtensions}
pnpm lint:fixeslint autofix**/*.{allJsTsExtensions}
Analyzation & config check
pnpm test:eslint-configeslint config inspector, displays flat configs & rules

Dependencies

!NOTE

For the more details check dev & prod dependencies in package.json

Package nameDescriptionVersion
eslintconfigurable JavaScript linterv9.12.*
typescript-eslintenables ESLint and Prettier to support TypeScriptv8.8.*
Configs
eslint-config-prettierturns off all rules that are unnecessary or might conflict with Prettierv9.1.*
Plugins
@eslint/jsESLint JavaScript plugin Separating out JavaScript-specific functionality from ESLintv9.12.*
eslint-plugin-importintends to support linting of ES2015+ (ES6+) import/export syntax, prevent issues with misspelling of file paths and import namesv2.31.*
eslint-import-resolver-typescriptadds TypeScript support to eslint-plugin-importv3.6.*
eslint-import-resolver-webpackwebpack-literate module resolution plugin for eslint-plugin-importv0.13.*
eslint-plugin-jsx-a11ystatic AST checker for accessibility rules on JSX elementsv6.10.*
eslint-plugin-prettierruns Prettier as an ESLint rule and reports differences as individual ESLint issuesv5.2.*
eslint-plugin-reactReact specific linting rules for ESLintv7.37.*
eslint-plugin-react-hooksenforces the Rules of Hooksv5.1.*-rc
@stylistic/eslint-plugin-jsJavaScript stylistic rules for ESLintv2.9.*
@stylistic/eslint-plugin-jsxJSX stylistic rules for ESLintv2.9.*
@stylistic/eslint-plugin-tsTypeScript stylistic rules for ESLintv2.9.*
Other
globalsglobal identifiers from different JavaScript environmentsv15.10.*
Package nameDescriptionVersion
For local development
@eslint/config-inspectorESLint config inspectorv0.5.*
@alexey-koran/prettier-configPrettier sharing configurationv0.1*