Skip to content

Commit

Permalink
feat(ref: no-ref): up-deps
Browse files Browse the repository at this point in the history
* feat(ref: no-ref): up-deps

* feat(ref: no-ref): up-deps

* fix(ref:no-ref): add cache folder to ignore

* fix(ref:no-ref): add cache folder to ignore v1

* feat(ref: no-ref): add more timeout to cypress

---------

Co-authored-by: NepipenkoIgor <[email protected]>
  • Loading branch information
andriikamaldinov1 and NepipenkoIgor committed Jul 24, 2024
1 parent c050192 commit 5acb93b
Show file tree
Hide file tree
Showing 26 changed files with 12,159 additions and 11,255 deletions.
22 changes: 0 additions & 22 deletions .eslintignore

This file was deleted.

110 changes: 0 additions & 110 deletions .eslintrc.json

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
.classpath
*.launch
.settings/
.nx

# misc
/.angular/cache
Expand Down
13 changes: 4 additions & 9 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
"extractLicenses": false,
"sourceMap": true,
"optimization": false,
"namedChunks": true
"namedChunks": true,
"polyfills": ["zone.js"]
},
"configurations": {
"production": {
Expand Down Expand Up @@ -71,14 +72,8 @@
"options": {
"tsConfig": "tsconfig.spec.json",
"inlineStyleLanguage": "scss",
"assets": [
"src/favicon.ico",
"src/assets"
],
"polyfills": [
"zone.js",
"zone.js/testing"
],
"assets": ["src/favicon.ico", "src/assets"],
"polyfills": ["zone.js", "zone.js/testing"],
"styles": ["src/styles.scss"],
"scripts": []
}
Expand Down
Binary file modified bun.lockb
Binary file not shown.
1 change: 1 addition & 0 deletions cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ export default defineConfig({
},
specPattern: 'projects/ngx-mask-lib/src/test/**/*.cy-spec.ts',
},
defaultCommandTimeout: 10000,
});
120 changes: 120 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
// @ts-check
const globals = require('globals');
// Allows us to bring in the recommended core rules from eslint itself
const eslint = require('@eslint/js');
// Allows us to use the typed utility for our config, and to bring in the recommended rules for TypeScript projects from typescript-eslint
const tseslint = require('typescript-eslint');

// Allows us to bring in the recommended rules for Angular projects from angular-eslint
const angular = require('angular-eslint');

const json = require('eslint-plugin-json');

const ignores = [
'dist/',
'tmp/',
'out-tsc/',
'bazel-out/',
'node_modules/',
'.idea/',
'.vscode/',
'.history/',
'.angular/',
'coverage/',
'coverage-ts/',
'cypress/',
'package-lock.json',
'.cache'
];

// Export our config array, which is composed together thanks to the typed utility function from typescript-eslint
module.exports = tseslint.config(
{
ignores,
},

{
// Everything in this config object targets our TypeScript files (Components, Directives, Pipes etc)
files: ['**/*.ts'],

extends: [
// Apply the recommended core rules
eslint.configs.recommended,
// Apply the recommended TypeScript rules
...tseslint.configs.recommended,
// Optionally apply stylistic rules from typescript-eslint that improve code consistency
...tseslint.configs.stylistic,
// Apply the recommended Angular rules
...angular.configs.tsRecommended,
],
// Set the custom processor which will allow us to have our inline Component templates extracted
// and treated as if they are HTML files (and therefore have the .html config below applied to them)
processor: angular.processInlineTemplates,
// Override specific rules for TypeScript files (these will take priority over the extended configs above)
rules: {
'@angular-eslint/component-selector': [
'error',
{
prefix: 'jsdaddy',
style: 'kebab-case',
type: 'element',
},
],
'@angular-eslint/directive-selector': [
'error',
{
prefix: ['mask', 'jsdaddy'],
style: 'camelCase',
type: 'attribute',
},
],
'@typescript-eslint/prefer-for-of': 'off',
'@typescript-eslint/no-unused-vars': [
'error',
{
argsIgnorePattern: '^_',
},
],
'@typescript-eslint/no-empty-function': [
'error',
{
allow: ['arrowFunctions', 'functions', 'methods'],
},
],
'@typescript-eslint/no-explicit-any': [
'error',
{
ignoreRestArgs: true,
},
],
},
},
{
// Everything in this config object targets our HTML files (external templates,
// and inline templates as long as we have the `processor` set on our TypeScript config above)
files: ['**/*.html'],
extends: [
// Apply the recommended Angular template rules
...angular.configs.templateRecommended,
// Apply the Angular template rules which focus on accessibility of our apps
...angular.configs.templateAccessibility,
],
rules: {},
},
{
files: ['**/*.js'],
extends: [eslint.configs.recommended],
languageOptions: {
sourceType: 'commonjs',
globals: {
...globals.node,
},
},
rules: {},
},
{
files: ['**/*.json'],
extends: [json.configs.recommended],
rules: {},
}
);
Loading

0 comments on commit 5acb93b

Please sign in to comment.