Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
214 changes: 214 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,214 @@
/*
👋 Hi! This file was autogenerated by tslint-to-eslint-config.
https://github.com/typescript-eslint/tslint-to-eslint-config

It represents the closest reasonable ESLint configuration to this
project's original TSLint configuration.

We recommend eventually switching this configuration to extend from
the recommended rulesets in typescript-eslint.
https://github.com/typescript-eslint/tslint-to-eslint-config/blob/master/docs/FAQs.md

Happy linting! 💖
*/
module.exports = {
"env": {
"browser": true,
"es6": true,
"node": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "tsconfig.json",
"sourceType": "module",
"extraFileExtensions": [".html"]
},
"plugins": [
"@angular-eslint/eslint-plugin",
"eslint-plugin-import",
"eslint-plugin-prefer-arrow",
"@typescript-eslint"
],
"root": true,
"ignorePatterns": ["src/demo/**/*.html"],
"rules": {
"@angular-eslint/component-class-suffix": "error",
"@angular-eslint/component-selector": [
"error",
{
"type": "element",
// "prefix": "plex",
"style": "kebab-case"
}
],
// "@angular-eslint/directive-class-suffix": "error",
"@angular-eslint/directive-selector": [
"error",
{
"type": "attribute",
// "prefix": "plex",
"style": "camelCase"
}
],
"@angular-eslint/no-input-rename": "error",
"@angular-eslint/no-output-rename": "error",
"@angular-eslint/use-pipe-transform-interface": "error",
"@typescript-eslint/consistent-type-definitions": "error",
"@typescript-eslint/dot-notation": "off",
"@typescript-eslint/explicit-member-accessibility": [
"off",
{
"accessibility": "explicit"
}
],
// "@typescript-eslint/indent": [
// "error",
// 4,
// {
// "ObjectExpression": "first",
// "FunctionDeclaration": {
// "parameters": "first"
// },
// "FunctionExpression": {
// "parameters": "first"
// }
// }
// ],
// "@typescript-eslint/member-delimiter-style": [
// "error",
// {
// "multiline": {
// "delimiter": "semi",
// "requireLast": true
// },
// "singleline": {
// "delimiter": "semi",
// "requireLast": false
// }
// }
// ],
// "@typescript-eslint/naming-convention": [
// "error",
// {
// "selector": "variable",
// "format": [
// "camelCase",
// "UPPER_CASE"
// ],
// "leadingUnderscore": "forbid",
// "trailingUnderscore": "forbid"
// }
// ],
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-empty-interface": "error",
"@typescript-eslint/no-inferrable-types": [
"error",
{
"ignoreParameters": true
}
],
// "@typescript-eslint/no-shadow": [
// "error",
// {
// "hoist": "all"
// }
// ],
// "@typescript-eslint/no-unused-expressions": "error",
"@typescript-eslint/prefer-function-type": "error",
// "@typescript-eslint/quotes": [
// "error",
// "single"
// ],
// "@typescript-eslint/semi": [
// "error",
// "always"
// ],
// "@typescript-eslint/type-annotation-spacing": "error",
"@typescript-eslint/unified-signatures": "error",
// "brace-style": [
// "error",
// "1tbs"
// ],
// "curly": "error",
"dot-notation": "off",
// "eol-last": "error",
// "eqeqeq": [
// "error",
// "smart"
// ],
"guard-for-in": "off",
"id-denylist": "off",
"id-match": "off",
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": false
}
],
"indent": "off",
"max-len": [
"off",
{
"code": 140
}
],
"no-bitwise": "error",
"no-caller": "error",
// "no-console": "error",
"no-constant-condition": "error",
"no-debugger": "error",
"no-empty": "off",
"no-empty-function": "off",
"no-eval": "error",
"no-fallthrough": "error",
"no-multiple-empty-lines": [
"error",
{
"max": 2
}
],
"no-new-wrappers": "error",
// "no-redeclare": "error",
"no-restricted-imports": "error",
"no-shadow": "off",
"no-throw-literal": "error",
"no-trailing-spaces": "error",
"no-underscore-dangle": "off",
"no-unused-expressions": "off",
"no-unused-labels": "error",
// "no-var": "error",
// "object-shorthand": "error",
// "prefer-arrow/prefer-arrow-functions": [
// "error",
// {
// "allowStandaloneDeclarations": true
// }
// ],
"prefer-const": "error",
"prefer-object-spread": "error",
// "quote-props": [
// "error",
// "as-needed"
// ],
"quotes": "off",
// "radix": "error",
"semi": "off",
// "space-before-function-paren": [
// "error",
// {
// "anonymous": "always",
// "named": "never",
// "asyncArrow": "always"
// }
// ],
// "spaced-comment": [
// "error",
// "always",
// {
// "markers": [
// "/"
// ]
// }
// ],
}
};
8 changes: 3 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '14.21.1'
node-version: '16.18.1'
- name: Cache node modules
uses: actions/cache@v3
env:
Expand All @@ -27,9 +27,7 @@ jobs:
- run: |
GITHUB_SHA_SHORT=$(echo $GITHUB_SHA | cut -c1-8)
echo $GITHUB_SHA_SHORT
- run: npm install puppeteer --save-dev
- run: npm run test:ci



cypress:
runs-on: ubuntu-latest
Expand All @@ -38,7 +36,7 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '14.21.1'
node-version: '16.18.1'
- name: Cache node modules
uses: actions/cache@v3
env:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
.settings/

# misc
/.angular/cache
/.sass-cache
/connect.lock
/coverage/*
Expand Down
18 changes: 10 additions & 8 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,23 +96,25 @@
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"builder": "@angular-eslint/builder:lint",
"options": {
"tsConfig": [
"tsconfig.json"
],
"exclude": []
"lintFilePatterns": [
"src/**/*.ts",
"src/**/*.html"
]
}
}
}
}
},
"defaultProject": "plex",
"cli": {
"warnings": {
"typescriptMismatch": false
},
"analytics": "8308d0fc-1e86-41d4-86b1-f56379624dcd"
"analytics": "8308d0fc-1e86-41d4-86b1-f56379624dcd",
"schematicCollections": [
"angular-eslint"
]
},
"schematics": {
"@schematics/angular:component": {
Expand All @@ -123,4 +125,4 @@
"prefix": "app"
}
}
}
}
43 changes: 43 additions & 0 deletions eslint.config.xxx
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
// @ts-check
const eslint = require("@eslint/js");
const tseslint = require("typescript-eslint");
const angular = require("angular-eslint");

module.exports = tseslint.config(
{
files: ["**/*.ts"],
extends: [
eslint.configs.recommended,
...tseslint.configs.recommended,
...tseslint.configs.stylistic,
...angular.configs.tsRecommended,
],
processor: angular.processInlineTemplates,
rules: {
"@angular-eslint/directive-selector": [
"error",
{
type: "attribute",
prefix: "app",
style: "camelCase",
},
],
"@angular-eslint/component-selector": [
"error",
{
type: "element",
prefix: "app",
style: "kebab-case",
},
],
},
},
{
files: ["**/*.html"],
extends: [
...angular.configs.templateRecommended,
...angular.configs.templateAccessibility,
],
rules: {},
}
);
Loading
Loading