Skip to content

Commit 1cebd57

Browse files
Hristo HristovHristo Hristov
authored andcommitted
fix(cli): add missing files
1 parent 095b57d commit 1cebd57

File tree

3 files changed

+313
-0
lines changed

3 files changed

+313
-0
lines changed

.eslintrc.mjs

Lines changed: 134 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,134 @@
1+
import eslintPluginImport from 'eslint-plugin-import';
2+
import eslintPluginUnicorn from 'eslint-plugin-unicorn';
3+
import eslintPluginPreferArrow from 'eslint-plugin-prefer-arrow';
4+
import typescriptParser from '@typescript-eslint/parser';
5+
6+
export default [
7+
{
8+
files: ['**/*.ts', '**/*.tsx'],
9+
languageOptions: {
10+
parser: typescriptParser,
11+
parserOptions: {
12+
project: '**/tsconfig.json',
13+
sourceType: 'module',
14+
},
15+
},
16+
plugins: {
17+
'eslint-plugin-import': eslintPluginImport,
18+
'eslint-plugin-unicorn': eslintPluginUnicorn,
19+
'eslint-plugin-prefer-arrow': eslintPluginPreferArrow,
20+
'@typescript-eslint/parser': typescriptParser,
21+
},
22+
rules: {
23+
'complexity': 'off',
24+
'eslint-plugin-import/no-extraneous-dependencies': 'warn',
25+
'eslint-plugin-import/no-internal-modules': 'warn',
26+
'eslint-plugin-import/order': [
27+
'off',
28+
{
29+
alphabetize: {
30+
caseInsensitive: true,
31+
order: 'asc',
32+
},
33+
'newlines-between': 'ignore',
34+
groups: [
35+
[
36+
'builtin',
37+
'external',
38+
'internal',
39+
'unknown',
40+
'object',
41+
'type',
42+
],
43+
'parent',
44+
['sibling', 'index'],
45+
],
46+
distinctGroup: false,
47+
pathGroupsExcludedImportTypes: [],
48+
pathGroups: [
49+
{
50+
pattern: './',
51+
patternOptions: { nocomment: true, dot: true },
52+
group: 'sibling',
53+
position: 'before',
54+
},
55+
{
56+
pattern: '.',
57+
patternOptions: { nocomment: true, dot: true },
58+
group: 'sibling',
59+
position: 'before',
60+
},
61+
{
62+
pattern: '..',
63+
patternOptions: { nocomment: true, dot: true },
64+
group: 'parent',
65+
position: 'before',
66+
},
67+
{
68+
pattern: '../',
69+
patternOptions: { nocomment: true, dot: true },
70+
group: 'parent',
71+
position: 'before',
72+
},
73+
],
74+
},
75+
],
76+
'no-constant-condition': 'warn',
77+
'no-case-declarations': 'off',
78+
'no-extra-boolean-cast': 'warn',
79+
'no-unused-vars': 'off',
80+
'no-unexpected-multiline': 'off',
81+
'no-useless-escape': 'off',
82+
'new-parens': 'error',
83+
'no-bitwise': 'off',
84+
'no-caller': 'error',
85+
'no-cond-assign': 'error',
86+
'no-console': 'off',
87+
'no-debugger': 'error',
88+
'no-duplicate-case': 'error',
89+
'no-duplicate-imports': 'error',
90+
'no-empty': 'off',
91+
'no-empty-function': 'off',
92+
'no-eval': 'error',
93+
'no-extra-bind': 'error',
94+
'no-fallthrough': 'off',
95+
'no-invalid-this': 'off',
96+
'no-new-func': 'error',
97+
'no-new-wrappers': 'error',
98+
'no-redeclare': 'error',
99+
'no-return-await': 'error',
100+
'no-sequences': 'error',
101+
'no-shadow': 'off',
102+
'no-sparse-arrays': 'error',
103+
'no-template-curly-in-string': 'error',
104+
'no-throw-literal': 'error',
105+
'no-trailing-spaces': 'error',
106+
'no-undef-init': 'error',
107+
'no-underscore-dangle': 'off',
108+
'no-unsafe-finally': 'error',
109+
'no-unused-expressions': 'off',
110+
'no-unused-labels': 'error',
111+
'no-use-before-define': 'off',
112+
'no-var': 'error',
113+
'object-shorthand': 'warn',
114+
'one-var': ['error', 'never'],
115+
'prefer-arrow/prefer-arrow-functions': 'off',
116+
'prefer-const': 'warn',
117+
'prefer-object-spread': 'off',
118+
'radix': 'error',
119+
'space-in-parens': ['error', 'never'],
120+
'unicorn/prefer-ternary': 'off',
121+
'use-isnan': 'error',
122+
'valid-typeof': 'off',
123+
},
124+
},
125+
{
126+
ignores: [
127+
'/node_modules/**/*',
128+
'/coverage/**/*',
129+
'/output/**/*',
130+
'/packages/cli/templates/**/*',
131+
'**/files/**/*'
132+
]
133+
},
134+
];
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
import angularEslint from "@angular-eslint/eslint-plugin";
2+
import angularEslintTemplate from "@angular-eslint/eslint-plugin-template";
3+
import typescriptParser from "@typescript-eslint/parser";
4+
5+
export default [
6+
{
7+
files: ["**/*.ts"],
8+
languageOptions: {
9+
parser: typescriptParser,
10+
parserOptions: {
11+
project: "tsconfig.json",
12+
createDefaultProgram: true,
13+
},
14+
},
15+
plugins: {
16+
"@angular-eslint": angularEslint,
17+
},
18+
extends: [
19+
"plugin:@angular-eslint/recommended",
20+
"plugin:@angular-eslint/template/process-inline-templates",
21+
],
22+
rules: {
23+
"@angular-eslint/directive-selector": [
24+
"error",
25+
{
26+
type: "attribute",
27+
prefix: "app",
28+
style: "camelCase",
29+
},
30+
],
31+
"@angular-eslint/component-selector": [
32+
"error",
33+
{
34+
type: "element",
35+
prefix: "app",
36+
style: "kebab-case",
37+
},
38+
],
39+
"@angular-eslint/prefer-standalone": "off",
40+
},
41+
},
42+
{
43+
files: ["**/*.html"],
44+
plugins: {
45+
"@angular-eslint/template": angularEslintTemplate,
46+
},
47+
extends: ["plugin:@angular-eslint/template/recommended"],
48+
rules: {},
49+
},
50+
{
51+
ignores: ["projects/**/*"],
52+
},
53+
];
Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
import eslintPluginImport from "eslint-plugin-import";
2+
import eslintPluginUnicorn from "eslint-plugin-unicorn";
3+
import eslintPluginPreferArrow from "eslint-plugin-prefer-arrow";
4+
import typescriptParser from "@typescript-eslint/parser";
5+
6+
export default [
7+
{
8+
files: ["**/*.ts", "**/*.tsx"],
9+
languageOptions: {
10+
parser: typescriptParser,
11+
parserOptions: {
12+
project: "**/tsconfig.json",
13+
sourceType: "module",
14+
},
15+
},
16+
plugins: {
17+
import: eslintPluginImport,
18+
unicorn: eslintPluginUnicorn,
19+
"prefer-arrow": eslintPluginPreferArrow,
20+
},
21+
rules: {
22+
complexity: "off",
23+
"import/no-extraneous-dependencies": "warn",
24+
"import/no-internal-modules": "warn",
25+
"import/order": [
26+
"off",
27+
{
28+
alphabetize: {
29+
caseInsensitive: true,
30+
order: "asc",
31+
},
32+
"newlines-between": "ignore",
33+
groups: [
34+
["builtin", "external", "internal", "unknown", "object", "type"],
35+
"parent",
36+
["sibling", "index"],
37+
],
38+
distinctGroup: false,
39+
pathGroupsExcludedImportTypes: [],
40+
pathGroups: [
41+
{
42+
pattern: "./",
43+
patternOptions: { nocomment: true, dot: true },
44+
group: "sibling",
45+
position: "before",
46+
},
47+
{
48+
pattern: ".",
49+
patternOptions: { nocomment: true, dot: true },
50+
group: "sibling",
51+
position: "before",
52+
},
53+
{
54+
pattern: "..",
55+
patternOptions: { nocomment: true, dot: true },
56+
group: "parent",
57+
position: "before",
58+
},
59+
{
60+
pattern: "../",
61+
patternOptions: { nocomment: true, dot: true },
62+
group: "parent",
63+
position: "before",
64+
},
65+
],
66+
},
67+
],
68+
"no-constant-condition": "warn",
69+
"no-case-declarations": "off",
70+
"no-extra-boolean-cast": "warn",
71+
"no-unused-vars": "off",
72+
"no-unexpected-multiline": "off",
73+
"no-useless-escape": "off",
74+
"new-parens": "error",
75+
"no-bitwise": "off",
76+
"no-caller": "error",
77+
"no-cond-assign": "error",
78+
"no-console": "off",
79+
"no-debugger": "error",
80+
"no-duplicate-case": "error",
81+
"no-duplicate-imports": "error",
82+
"no-empty": "off",
83+
"no-empty-function": "off",
84+
"no-eval": "error",
85+
"no-extra-bind": "error",
86+
"no-fallthrough": "off",
87+
"no-invalid-this": "off",
88+
"no-new-func": "error",
89+
"no-new-wrappers": "error",
90+
"no-redeclare": "error",
91+
"no-return-await": "error",
92+
"no-sequences": "error",
93+
"no-shadow": "off",
94+
"no-sparse-arrays": "error",
95+
"no-template-curly-in-string": "error",
96+
"no-throw-literal": "error",
97+
"no-trailing-spaces": "error",
98+
"no-undef-init": "error",
99+
"no-underscore-dangle": "off",
100+
"no-unsafe-finally": "error",
101+
"no-unused-expressions": "off",
102+
"no-unused-labels": "error",
103+
"no-use-before-define": "off",
104+
"no-var": "error",
105+
"object-shorthand": "warn",
106+
"one-var": ["error", "never"],
107+
"prefer-arrow/prefer-arrow-functions": "off",
108+
"prefer-const": "warn",
109+
"prefer-object-spread": "off",
110+
radix: "error",
111+
"space-in-parens": ["error", "never"],
112+
"unicorn/prefer-ternary": "off",
113+
"use-isnan": "error",
114+
"valid-typeof": "off",
115+
},
116+
},
117+
{
118+
ignores: [
119+
"node_modules/**/*",
120+
"coverage/**/*",
121+
"output/**/*",
122+
"packages/cli/templates/**/*",
123+
"**/files/**/*",
124+
],
125+
},
126+
];

0 commit comments

Comments
 (0)