diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 0000000..6837a9e --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,97 @@ +{ + "root": true, + "ignorePatterns": [ + "projects/**/*" + ], + "plugins": [ + "unused-imports" + ], + "rules": { + "no-unused-vars": "off", + "unused-imports/no-unused-imports": "error", + "unused-imports/no-unused-vars": [ + "error", + { "vars": "all", "varsIgnorePattern": "^_", "args": "after-used", "argsIgnorePattern": "^_" } + ], + "prefer-const": "error" + }, + "overrides": [ + { + "files": [ + "*.ts" + ], + "parserOptions": { + "project": [ + "tsconfig.json", + "e2e/tsconfig.json" + ], + "createDefaultProgram": true + }, + "extends": [ + "plugin:@angular-eslint/recommended", + "plugin:@angular-eslint/template/process-inline-templates" + ], + "rules": { + "@angular-eslint/component-selector": [ + "error", + { + "type": "element", + "prefix": "app", + "style": "kebab-case" + } + ], + "@angular-eslint/directive-selector": [ + "error", + { + "type": "attribute", + "prefix": "app", + "style": "camelCase" + } + ], + "quotes": ["error", "single", { "allowTemplateLiterals": true } ], + "semi": ["error", "always"], + "@typescript-eslint/explicit-member-accessibility": [ + "error", + { + "accessibility": "explicit", + "overrides": { + "accessors": "explicit", + "constructors": "explicit" + } + } + ], + "@typescript-eslint/no-empty-interface": "off", + "@typescript-eslint/no-inferrable-types": "off", + "arrow-parens": [ + "off", + "always" + ], + "id-blacklist": "error", + "import/order": "off", + "max-len": [ + "error", + { + "code": 200 + } + ], + "padding-line-between-statements": [ + "error", + { + "blankLine": "always", + "prev": "*", + "next": "return" + } + ] + } + }, + { + "files": [ + "*.html" + ], + "extends": [ + "plugin:@angular-eslint/template/recommended" + ], + "rules": {} + } + ] +} diff --git a/.run/lint.run.xml b/.run/lint.run.xml index 8cc8c52..d2fbf25 100644 --- a/.run/lint.run.xml +++ b/.run/lint.run.xml @@ -1,12 +1,12 @@ - - - + + + -