UNPKG

@praha/eslint-config-javascript

Version:
43 lines (42 loc) 1.47 kB
import js from "@eslint/js"; import eslint_plugin_unicorn from "eslint-plugin-unicorn"; const javascriptConfigurator = ()=>[ { name: 'eslint/recommended', ...js.configs.recommended }, eslint_plugin_unicorn.configs["flat/recommended"], { name: "praha/javascript/rules", rules: { 'func-style': [ 'error', 'expression' ], 'no-unused-vars': 'off', 'prefer-arrow-callback': 'error', 'unicorn/explicit-length-check': 'off', 'unicorn/no-array-callback-reference': 'off', 'unicorn/no-array-for-each': 'off', 'unicorn/no-array-reduce': 'off', 'unicorn/no-null': 'off', 'unicorn/prevent-abbreviations': [ 'error', { replacements: { args: false, dist: false, docs: false, env: false, fn: false, params: false, props: false, ref: false, refs: false } } ] } } ]; export { javascriptConfigurator };