@nitra/eslint-config 2.0.17 → 2.0.18

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/index.js +19 -4
  2. package/package.json +3 -1
package/index.js CHANGED
@@ -2,11 +2,13 @@ import js from '@eslint/js'
2
2
  // import sdlPlugin from '@microsoft/eslint-plugin-sdl'
3
3
  import configPrettier from 'eslint-config-prettier'
4
4
  // import configStandard from 'eslint-config-standard'
5
+ import jsdocPlugin from 'eslint-plugin-jsdoc'
5
6
  import markdownPlugin from 'eslint-plugin-markdown'
6
7
  import nodePlugin from 'eslint-plugin-n'
7
8
  import securityPlugin from 'eslint-plugin-security'
8
- import pluginVue from 'eslint-plugin-vue'
9
- import eslintPluginYml from 'eslint-plugin-yml'
9
+ import unicornPlugin from 'eslint-plugin-unicorn'
10
+ import vuePlugin from 'eslint-plugin-vue'
11
+ import eslintYmlPlugin from 'eslint-plugin-yml'
10
12
  import globals from 'globals'
11
13
 
12
14
  const all = [
@@ -15,11 +17,12 @@ const all = [
15
17
  ignores: ['.yarn/**', '**/dist/**']
16
18
  },
17
19
  // Загальні правила для всіх Yaml файлів проекту
18
- ...eslintPluginYml.configs['flat/recommended'],
20
+ ...eslintYmlPlugin.configs['flat/prettier'],
19
21
  // Загальні правила для всіх MD файлів проекту
20
22
  // @ts-ignore
21
23
  ...markdownPlugin.configs.recommended,
22
24
  // Загальні правила для всіх js файлів проекту
25
+ jsdocPlugin.configs['flat/recommended'],
23
26
  {
24
27
  files: ['**/*.js'],
25
28
  languageOptions: {
@@ -34,6 +37,18 @@ const all = [
34
37
  ...js.configs.recommended.rules,
35
38
  'no-unused-vars': ['error', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }]
36
39
  }
40
+ },
41
+ // Unicorn правила
42
+ unicornPlugin.configs['flat/recommended'],
43
+ {
44
+ rules: {
45
+ 'unicorn/filename-case': 'off',
46
+ 'unicorn/no-null': 'off',
47
+ 'unicorn/prevent-abbreviations': 'off',
48
+ 'unicorn/no-anonymous-default-export': 'off',
49
+ 'unicorn/prefer-ternary': 'off',
50
+ 'unicorn/no-array-push-push': 'off'
51
+ }
37
52
  }
38
53
  ]
39
54
  // Тільки для node js проектів
@@ -85,7 +100,7 @@ const vueAllVite = [
85
100
  // Для Vue файлів Vue проектів
86
101
  // files: ['**/*.vue']
87
102
  const vue = [
88
- ...pluginVue.configs['flat/recommended'],
103
+ ...vuePlugin.configs['flat/recommended'],
89
104
  {
90
105
  rules: {
91
106
  'vue/no-v-html': 'off',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nitra/eslint-config",
3
- "version": "2.0.17",
3
+ "version": "2.0.18",
4
4
  "description": "A Eslint shareable config for projects using 'Vue' and 'Node'",
5
5
  "type": "module",
6
6
  "exports": "./index.js",
@@ -16,9 +16,11 @@
16
16
  "dependencies": {
17
17
  "eslint": "^9.0.0",
18
18
  "eslint-config-prettier": "^9.1.0",
19
+ "eslint-plugin-jsdoc": "^48.2.3",
19
20
  "eslint-plugin-markdown": "^4.0.1",
20
21
  "eslint-plugin-n": "^17.2.0",
21
22
  "eslint-plugin-security": "^3.0.0",
23
+ "eslint-plugin-unicorn": "^52.0.0",
22
24
  "eslint-plugin-vue": "^9.24.1",
23
25
  "eslint-plugin-yml": "^1.14.0",
24
26
  "globals": "^15.0.0"