Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
kypo-command-visualizations
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MUNI-KYPO-CRP
frontend-angular
components
kypo-command-visualizations
Commits
de1e9910
Commit
de1e9910
authored
9 months ago
by
Mário Murín
Browse files
Options
Downloads
Patches
Plain Diff
Revert eslint changes
parent
b75cd9e2
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.eslintrc.json
+80
-0
80 additions, 0 deletions
.eslintrc.json
eslint.config.js
+0
-92
0 additions, 92 deletions
eslint.config.js
with
80 additions
and
92 deletions
.eslintrc.json
0 → 100644
+
80
−
0
View file @
de1e9910
{
"root"
:
true
,
"overrides"
:
[
{
"files"
:
[
"*.ts"
],
"parserOptions"
:
{
"project"
:
[
"tsconfig.*?.json"
],
"createDefaultProgram"
:
true
},
"plugins"
:
[
"@typescript-eslint"
],
"extends"
:
[
"eslint:recommended"
,
"plugin:@typescript-eslint/recommended"
,
"plugin:@angular-eslint/recommended"
],
"rules"
:
{
"max-len"
:
[
"error"
,
{
"code"
:
140
,
"ignorePattern"
:
"import .*"
}
],
"@angular-eslint/directive-selector"
:
[
"error"
,
{
"type"
:
"attribute"
,
"prefix"
:
"app"
,
"style"
:
"camelCase"
}
],
"@angular-eslint/component-selector"
:
[
"error"
,
{
"type"
:
"element"
,
"prefix"
:
"app"
,
"style"
:
"kebab-case"
}
],
"quotes"
:
[
"error"
,
"single"
,
{
"allowTemplateLiterals"
:
true
}
]
}
},
{
"files"
:
[
"*.component.html"
],
"extends"
:
[
"plugin:@angular-eslint/template/recommended"
],
"rules"
:
{
"max-len"
:
[
"error"
,
{
"code"
:
140
}
]
}
},
{
"files"
:
[
"*.component.ts"
],
"extends"
:
[
"plugin:@angular-eslint/template/process-inline-templates"
]
}
]
}
This diff is collapsed.
Click to expand it.
eslint.config.js
deleted
100644 → 0
+
0
−
92
View file @
b75cd9e2
import
typescriptEslint
from
"
@typescript-eslint/eslint-plugin
"
;
import
path
from
"
node:path
"
;
import
{
fileURLToPath
}
from
"
node:url
"
;
import
js
from
"
@eslint/js
"
;
import
{
FlatCompat
}
from
"
@eslint/eslintrc
"
;
const
__filename
=
fileURLToPath
(
import
.
meta
.
url
);
const
__dirname
=
path
.
dirname
(
__filename
);
const
compat
=
new
FlatCompat
({
baseDirectory
:
__dirname
,
recommendedConfig
:
js
.
configs
.
recommended
,
allConfig
:
js
.
configs
.
all
});
export
default
[...
compat
.
extends
(
"
eslint:recommended
"
,
"
plugin:@typescript-eslint/recommended
"
,
"
plugin:@angular-eslint/recommended
"
,
).
map
(
config
=>
({
...
config
,
files
:
[
"
**/*.ts
"
],
})),
{
files
:
[
"
kypo-command-visualizations-example/**/*.ts
"
],
"
@angular-eslint/directive-selector
"
:
[
"
error
"
,
{
type
:
"
attribute
"
,
prefix
:
"
app-
"
,
style
:
"
camelCase
"
,
}],
"
@angular-eslint/component-selector
"
:
[
"
error
"
,
{
type
:
"
element
"
,
prefix
:
"
app-
"
,
style
:
"
kebab-case
"
,
}],
},
{
files
:
[
"
kypo-command-visualizations/**/*.ts
"
],
"
@angular-eslint/directive-selector
"
:
[
"
error
"
,
{
type
:
"
attribute
"
,
prefix
:
"
kypo-
"
,
style
:
"
camelCase
"
,
}],
"
@angular-eslint/component-selector
"
:
[
"
error
"
,
{
type
:
"
element
"
,
prefix
:
"
kypo-
"
,
style
:
"
kebab-case
"
,
}],
},
{
files
:
[
"
**/*.ts
"
],
plugins
:
{
"
@typescript-eslint
"
:
typescriptEslint
,
},
languageOptions
:
{
ecmaVersion
:
5
,
sourceType
:
"
script
"
,
parserOptions
:
{
project
:
[
"
tsconfig.*?.json
"
],
createDefaultProgram
:
true
,
},
},
rules
:
{
"
max-len
"
:
[
"
error
"
,
{
code
:
140
,
ignorePattern
:
"
import .*
"
,
}],
quotes
:
[
"
error
"
,
"
single
"
,
{
allowTemplateLiterals
:
true
,
}],
},
},
...
compat
.
extends
(
"
plugin:@angular-eslint/template/recommended
"
).
map
(
config
=>
({
...
config
,
files
:
[
"
**/*.component.html
"
],
})),
{
files
:
[
"
**/*.component.html
"
],
rules
:
{
"
max-len
"
:
[
"
error
"
,
{
code
:
140
,
}],
},
},
...
compat
.
extends
(
"
plugin:@angular-eslint/template/process-inline-templates
"
).
map
(
config
=>
({
...
config
,
files
:
[
"
**/*.component.ts
"
],
}))];
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment