@alexlit/config-eslint 91.0.2 → 91.1.0

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/index.js CHANGED
@@ -4,6 +4,7 @@ import globals from 'globals';
4
4
  import { javascript } from './plugins/javascript.js';
5
5
  import { jsdoc } from './plugins/jsdoc.js';
6
6
  import { perfectionist } from './plugins/perfectionist.js';
7
+ import { prettier } from './plugins/prettier.js';
7
8
  import { regexp } from './plugins/regexp.js';
8
9
  import { sonar } from './plugins/sonar.js';
9
10
  import { tanstackQuery } from './plugins/tanstack-query.js';
@@ -30,12 +31,15 @@ export const config = [
30
31
  ...vue,
31
32
  ...vueAccessibility,
32
33
  ...vueI18n,
34
+
35
+ ...prettier, // must be last
33
36
  ];
34
37
 
35
38
  export {
36
39
  javascript,
37
40
  jsdoc,
38
41
  perfectionist,
42
+ prettier,
39
43
  regexp,
40
44
  sonar,
41
45
  tanstackQuery,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexlit/config-eslint",
3
- "version": "91.0.2",
3
+ "version": "91.1.0",
4
4
  "private": false,
5
5
  "description": "Eslint config",
6
6
  "keywords": [
@@ -38,8 +38,10 @@
38
38
  "@intlify/eslint-plugin-vue-i18n": "^3.0.0",
39
39
  "@tanstack/eslint-plugin-query": "^5.51.15",
40
40
  "eslint": "^9.8.0",
41
+ "eslint-config-prettier": "^9.1.0",
41
42
  "eslint-plugin-jsdoc": "^48.10.1",
42
43
  "eslint-plugin-perfectionist": "^3.0.0",
44
+ "eslint-plugin-prettier": "^5.2.1",
43
45
  "eslint-plugin-regexp": "^2.6.0",
44
46
  "eslint-plugin-sonarjs": "^1.0.4",
45
47
  "eslint-plugin-unicorn": "^55.0.0",
@@ -0,0 +1,27 @@
1
+ import plugin from 'eslint-plugin-prettier/recommended';
2
+
3
+ /** @see [eslint-plugin-prettier](https://github.com/prettier/eslint-plugin-prettier) */
4
+ export const prettier = [
5
+ plugin,
6
+
7
+ {
8
+ rules: {
9
+ 'prettier/prettier': 'off', // too slow
10
+
11
+ // fix for prettier/vue
12
+ 'vue/html-self-closing': [
13
+ 'error',
14
+ {
15
+ html: {
16
+ component: 'always',
17
+ normal: 'never',
18
+ void: 'always',
19
+ },
20
+
21
+ math: 'always',
22
+ svg: 'always',
23
+ },
24
+ ],
25
+ },
26
+ },
27
+ ];
@@ -6,10 +6,8 @@ export const typescript = [
6
6
  ...plugin.configs.stylistic,
7
7
 
8
8
  {
9
- languageOptions: {
10
- parserOptions: {
11
- project: ['./tsconfig.json'],
12
- },
9
+ rules: {
10
+ '@typescript-eslint/consistent-type-assertions': 'off', // too slow
13
11
  },
14
12
  },
15
13
  ];