UNPKG

@uofx/eslint-plugin

Version:

EDE eslint for all project.

2 lines (1 loc) 2.02 kB
module.exports={rules:{},configs:{basic:{plugins:["@typescript-eslint"],rules:{"@typescript-eslint/array-type":["warn",{default:"generic"}],"@typescript-eslint/explicit-module-boundary-types":"off","@typescript-eslint/naming-convention":["warn",{selector:["variable","parameterProperty"],format:["camelCase","UPPER_CASE"],filter:{regex:"^[a-zA-Z]+$",match:!0},custom:{regex:"(Spy$)|(Controller$)",match:!1}}],"@typescript-eslint/no-explicit-any":"off","@typescript-eslint/no-inferrable-types":"off","@typescript-eslint/semi":"warn","arrow-body-style":["warn","as-needed",{requireReturnForObjectLiteral:!0}],camelcase:["warn",{allow:["^setUp_","^Uofx_"]}],eqeqeq:"warn","max-lines":["warn",{max:600,skipBlankLines:!0,skipComments:!0}],"no-alert":"warn","no-async-promise-executor":"warn","no-confusing-arrow":"warn","no-console":"warn","no-debugger":"warn","no-dupe-else-if":"warn","no-empty-character-class":"warn","no-var":"warn","no-inline-comments":["warn",{ignorePattern:"webpackChunkName:\\s.+"}],"no-trailing-spaces":"warn","prefer-const":"warn",quotes:["warn","single",{allowTemplateLiterals:!0}],semi:["warn","always"],"use-isnan":"warn"}},angular:{plugins:["@angular-eslint"],rules:{"@angular-eslint/component-class-suffix":["warn",{suffixes:["Layout","Page","Dialog","BaseComp","Component"]}],"@angular-eslint/component-selector":["warn",{prefix:["app","uofx","base","bpm","eip","shared"],style:"kebab-case",type:"element"}],"@angular-eslint/contextual-decorator":"warn","@angular-eslint/contextual-lifecycle":"warn","@angular-eslint/directive-selector":["warn",{prefix:["app","uofx","base","bpm","eip"],style:"kebab-case",type:"attribute"}],"@angular-eslint/no-host-metadata-property":"warn","@angular-eslint/no-input-prefix":["warn",{prefixes:["on","is","should"]}],"@angular-eslint/no-input-rename":"off","@angular-eslint/relative-url-prefix":"warn","@angular-eslint/sort-ngmodule-metadata-arrays":"warn","@angular-eslint/use-component-selector":"warn","@angular-eslint/use-lifecycle-interface":"warn"}}}};