UNPKG

@hotcakes/eslint-config

Version:

Provides a consistent linting foundation for JavaScript projects. It defines a solid baseline of style and best practices, and is extendable for both internal and external usage.

49 lines 1.47 kB
import { defineConfig, globalIgnores } from 'eslint/config'; import js from '@eslint/js'; import ts from 'typescript-eslint'; import stylistic from '@stylistic/eslint-plugin'; export default defineConfig([ globalIgnores([ '**/lib/**', '**/dist/**', '**/out/**', '**/node_modules/**' ]), js.configs.recommended, ts.configs.strict, ts.configs.stylistic, stylistic.configs.customize({ arrowParens: true, commaDangle: 'never', indent: 4, quotes: 'single', semi: true, jsx: true }), { rules: { '@stylistic/quote-props': ['error', 'as-needed'], '@stylistic/multiline-ternary': ['error', 'never'], '@stylistic/object-curly-spacing': ['error', 'never'], '@stylistic/block-spacing': ['error', 'never'], '@stylistic/jsx-curly-brace-presence': ['error', 'always'] } }, { rules: { '@typescript-eslint/no-unused-vars': [ 'error', { args: 'all', argsIgnorePattern: '^_', caughtErrors: 'all', caughtErrorsIgnorePattern: '^_', destructuredArrayIgnorePattern: '^_', varsIgnorePattern: '^_', ignoreRestSiblings: true } ] } } ]); //# sourceMappingURL=index.js.map