@sylphlab/eslint-config-sylph-strict
Version:
Strict ESLint Flat Configuration for SylphLab TypeScript Projects (Extends Standard)
2 lines • 2.12 kB
JavaScript
;var u=Object.create;var s=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var x=Object.getOwnPropertyNames;var d=Object.getPrototypeOf,g=Object.prototype.hasOwnProperty;var y=(e,r)=>{for(var t in r)s(e,t,{get:r[t],enumerable:!0})},a=(e,r,t,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of x(r))!g.call(e,n)&&n!==t&&s(e,n,{get:()=>r[n],enumerable:!(i=m(r,n))||i.enumerable});return e};var l=(e,r,t)=>(t=e!=null?u(d(e)):{},a(r||!e||!e.__esModule?s(t,"default",{value:e,enumerable:!0}):t,e)),j=e=>a(s({},"__esModule",{value:!0}),e);var b={};y(b,{default:()=>k,sylphStrict:()=>c});module.exports=j(b);var f=require("@sylphlab/eslint-config-sylph"),o=l(require("eslint-plugin-functional"),1),p=l(require("typescript-eslint"),1),c=[...f.sylph,{plugins:{functional:o.default},rules:{...o.default.configs.recommended.rules,"functional/no-mixed-types":"off","functional/functional-parameters":"off","functional/no-conditional-statements":"off","functional/no-expression-statements":"off","functional/no-try-statements":"warn","functional/no-throw-statements":"error","functional/prefer-property-signatures":"off","functional/immutable-data":["error",{ignoreClasses:!0,ignoreIdentifierPattern:"^mutable|draft"}]}},{files:["prettier.config.cjs","**/*.config.{js,cjs}","eslint.config.js"],rules:{"functional/immutable-data":"off"}},{files:["**/*.{js,cjs,mjs,jsx,ts,cts,mts,tsx}"],languageOptions:{parser:p.default.parser,parserOptions:{project:!0,extraFileExtensions:[".cjs"]}},rules:{"@typescript-eslint/explicit-function-return-type":["error",{allowExpressions:!0}],"@typescript-eslint/explicit-module-boundary-types":["error"],"@typescript-eslint/no-explicit-any":["error",{ignoreRestArgs:!0}],"unicorn/prevent-abbreviations":["error",{replacements:{env:!1,config:!1,src:!1,dist:!1,pkg:!1}}],complexity:["error",{max:10}],"max-lines":["error",{max:350,skipBlankLines:!0,skipComments:!0}],"max-lines-per-function":["error",{max:60,skipBlankLines:!0,skipComments:!0}],"max-depth":["error",4],"max-params":["error",4]}}],k=c;0&&(module.exports={sylphStrict});
//# sourceMappingURL=index.cjs.map