@vellone/techsak 1.1.6 → 1.1.8

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.
Files changed (2) hide show
  1. package/eslint.config.mjs +33 -22
  2. package/package.json +1 -1
package/eslint.config.mjs CHANGED
@@ -3,28 +3,38 @@ import tseslint from 'typescript-eslint'
3
3
  import importPlugin from 'eslint-plugin-import'
4
4
  import comments from '@eslint-community/eslint-plugin-eslint-comments/configs'
5
5
  import eslintPluginUnicorn from 'eslint-plugin-unicorn'
6
+ import js from '@eslint/js'
6
7
 
7
8
  export default tseslint.config(
8
- eslint.configs.recommended,
9
- tseslint.configs.recommendedTypeChecked,
10
9
  {
11
10
  languageOptions: {
12
11
  parserOptions: {
13
12
  projectService: true,
14
13
  },
15
14
  },
15
+ settings: {
16
+ "import/resolver": {
17
+ typescript: {}
18
+ },
19
+ },
16
20
  },
17
- // {
18
- // files: ['**/*.{ts,tsx}'],
19
- // extends: [importPlugin.flatConfigs.recommended, importPlugin.flatConfigs.typescript],
20
- // // other configs...
21
- // },
21
+ js.configs.recommended,
22
+ eslint.configs.recommended,
23
+ tseslint.configs.recommendedTypeChecked,
24
+ importPlugin.flatConfigs.recommended,
25
+ importPlugin.flatConfigs.typescript,
22
26
  comments.recommended,
23
- eslintPluginUnicorn.configs['flat/recommended'],
27
+ eslintPluginUnicorn.configs.recommended,
24
28
  {
25
29
  rules: {
26
30
  'array-callback-return': 'error',
27
- 'comma-dangle': ['error', 'always-multiline'],
31
+ 'comma-dangle': ['error', {
32
+ 'arrays': 'always-multiline',
33
+ 'objects': 'always-multiline',
34
+ 'imports': 'always-multiline',
35
+ 'exports': 'always-multiline',
36
+ 'functions': 'never'
37
+ }],
28
38
  curly: 'error',
29
39
  'default-case-last': 'error',
30
40
  'default-case': 'off',
@@ -37,7 +47,6 @@ export default tseslint.config(
37
47
  }],
38
48
  'no-alert': 'error',
39
49
  'no-console': 'error',
40
- 'no-duplicate-imports': 'error',
41
50
  'no-else-return': 'error',
42
51
  'no-eval': 'warn',
43
52
  'no-extra-semi': 'error',
@@ -94,18 +103,20 @@ export default tseslint.config(
94
103
  yoda: 'error',
95
104
  },
96
105
  },
97
- // {
98
- // rules: {
99
- // 'import/no-deprecated': 'error',
100
- // 'import/no-anonymous-default-export': [0],
101
- // 'import/no-unused-modules': ['error', {
102
- // unusedExports: true,
103
- // ignoreExports: [
104
- // './src/app',
105
- // ],
106
- // }],
107
- // },
108
- // },
106
+ {
107
+ rules: {
108
+ 'import/no-deprecated': 'error',
109
+ 'import/no-anonymous-default-export': [0],
110
+ 'no-duplicate-imports': 'off',
111
+ 'import/no-duplicates': 'error',
112
+ 'import/no-unused-modules': ['error', {
113
+ unusedExports: true,
114
+ ignoreExports: [
115
+ './src/app',
116
+ ],
117
+ }],
118
+ },
119
+ },
109
120
  {
110
121
  // TypeScript ESLint specific rules
111
122
  // https://typescript-eslint.io/rules/
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vellone/techsak",
3
- "version": "1.1.6",
3
+ "version": "1.1.8",
4
4
  "description": "matheusvellone's personal tech sak (swiss army knife)",
5
5
  "keywords": [],
6
6
  "author": "matheusvellone",