@chris.araneo/eslint-config 0.0.19 → 0.0.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chris.araneo/eslint-config",
3
- "version": "0.0.19",
3
+ "version": "0.0.21",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "eslint",
@@ -21,7 +21,7 @@
21
21
  "dist/**"
22
22
  ],
23
23
  "scripts": {
24
- "build": "tsc --build tsconfig.json",
24
+ "build": "tsc --build --clean tsconfig.json",
25
25
  "format": "npx sort-package-json && prettier --write ."
26
26
  },
27
27
  "dependencies": {
package/dist/index.js DELETED
@@ -1,93 +0,0 @@
1
- import eslint from '@eslint/js';
2
- import tseslint from 'typescript-eslint';
3
- import angular from 'angular-eslint';
4
- import jsonc from 'eslint-plugin-jsonc';
5
- import simpleImportSort from 'eslint-plugin-simple-import-sort';
6
- import jsoncParser from 'jsonc-eslint-parser';
7
- import unicorn from 'eslint-plugin-unicorn';
8
- import globals from 'globals';
9
- const DEFAULT_IGNORED_FILES = [
10
- 'node_modules/',
11
- 'reports/',
12
- '.stryker-tmp/',
13
- '.angular',
14
- 'package.json',
15
- 'package-lock.json',
16
- ];
17
- export default (jsons = [], sources = [], templates = [], ignored) => {
18
- return tseslint.config(...jsonc.configs['flat/recommended-with-jsonc'], {
19
- files: jsons,
20
- languageOptions: {
21
- parser: jsoncParser,
22
- },
23
- }, {
24
- files: sources,
25
- extends: [eslint.configs.all, ...tseslint.configs.all],
26
- languageOptions: {
27
- parserOptions: {
28
- projectService: true,
29
- tsconfigRootDir: import.meta.dirname,
30
- },
31
- },
32
- rules: {
33
- '@typescript-eslint/explicit-member-accessibility': [
34
- 'error',
35
- {
36
- accessibility: 'no-public',
37
- },
38
- ],
39
- '@typescript-eslint/init-declarations': 'off',
40
- '@typescript-eslint/no-extraneous-class': 'off',
41
- '@typescript-eslint/parameter-properties': 'off',
42
- 'new-cap': 'off',
43
- 'no-duplicate-imports': 'off',
44
- 'sort-imports': 'off',
45
- 'sort-keys': 'off',
46
- },
47
- }, {
48
- files: sources,
49
- extends: [...angular.configs.tsAll],
50
- processor: angular.processInlineTemplates,
51
- rules: {
52
- '@angular-eslint/component-selector': [
53
- 'error',
54
- {
55
- prefix: 'app',
56
- style: 'kebab-case',
57
- type: 'element',
58
- },
59
- ],
60
- '@angular-eslint/directive-selector': [
61
- 'error',
62
- {
63
- prefix: 'app',
64
- style: 'camelCase',
65
- type: 'attribute',
66
- },
67
- ],
68
- },
69
- }, {
70
- languageOptions: {
71
- globals: globals.builtin,
72
- },
73
- extends: [unicorn.configs.all],
74
- }, {
75
- files: sources,
76
- plugins: {
77
- 'simple-import-sort': simpleImportSort,
78
- },
79
- rules: {
80
- 'simple-import-sort/exports': 'error',
81
- 'simple-import-sort/imports': 'error',
82
- },
83
- }, {
84
- files: templates,
85
- extends: [...angular.configs.templateAll],
86
- rules: {
87
- '@angular-eslint/template/prefer-control-flow': 'off',
88
- },
89
- }, {
90
- ignores: ignored || DEFAULT_IGNORED_FILES,
91
- });
92
- };
93
- //# sourceMappingURL=index.js.map
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"/","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,YAAY,CAAC;AAChC,OAAO,QAAQ,MAAM,mBAAmB,CAAC;AACzC,OAAO,OAAO,MAAM,gBAAgB,CAAC;AACrC,OAAO,KAAK,MAAM,qBAAqB,CAAC;AACxC,OAAO,gBAAgB,MAAM,kCAAkC,CAAC;AAChE,OAAO,WAAW,MAAM,qBAAqB,CAAC;AAC9C,OAAO,OAAO,MAAM,uBAAuB,CAAC;AAC5C,OAAO,OAAO,MAAM,SAAS,CAAC;AAE9B,MAAM,qBAAqB,GAAG;IAC5B,eAAe;IACf,UAAU;IACV,eAAe;IACf,UAAU;IACV,cAAc;IACd,mBAAmB;CACpB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