@davidsneighbour/eslint-config 5.2.32 → 5.2.33

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 (3) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/index.js +72 -68
  3. package/package.json +7 -7
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [5.2.33](https://github.com/davidsneighbour/configurations/compare/v5.2.32...v5.2.33) (2023-08-20)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **deps:** update typescript-eslint monorepo to v6.4.0 ([#853](https://github.com/davidsneighbour/configurations/issues/853)) ([589c338](https://github.com/davidsneighbour/configurations/commit/589c338ca1cca90e9346830c86a35852cff6f388))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [5.2.32](https://github.com/davidsneighbour/configurations/compare/v5.2.31...v5.2.32) (2023-08-13)
7
18
 
8
19
  **Note:** Version bump only for package @davidsneighbour/eslint-config
package/index.js CHANGED
@@ -1,77 +1,81 @@
1
1
  const fs = require('fs');
2
-
3
2
  const path = './tsconfig.eslint.json';
4
3
  let projectValue = '';
5
4
  if (fs.existsSync(path)) {
6
5
  projectValue = path;
7
6
  }
8
7
 
9
- module.exports = {
10
- parser: '@typescript-eslint/parser',
11
- parserOptions: {
12
- ecmaVersion: "latest",
13
- sourceType: "module",
14
- project: projectValue,
15
- extraFileExtensions: ['json'],
16
- },
17
- plugins: [
18
- '@typescript-eslint',
19
- 'anti-trojan-source',
20
- 'html',
21
- 'no-loops',
22
- 'sonarjs',
23
- // https://github.com/sindresorhus/eslint-plugin-unicorn
24
- "unicorn",
25
- ],
26
- ignorePatterns: [
27
- '**/node_modules/*',
28
- '**/vendor/*',
29
- '**/.git/*'
30
- ],
31
- settings: {
32
- 'html/html-extensions': ['.html', '.htm'],
33
- 'html/xml-extensions': ['.xml'],
34
- 'html/indent': '0',
35
- 'html/report-bad-indent': 'error',
36
- },
37
- // https://eslint.org/docs/user-guide/configuring/language-options
38
- env: {
39
- browser: true,
40
- es2022: true,
41
- },
42
- extends: [
43
- 'airbnb-base',
44
- 'plugin:compat/recommended',
45
- 'plugin:markdown/recommended',
46
- 'plugin:import/recommended',
47
- 'plugin:import/typescript',
48
- 'plugin:@typescript-eslint/eslint-recommended',
49
- 'plugin:@typescript-eslint/recommended',
50
- 'plugin:sonarjs/recommended',
51
- "plugin:package-json/recommended",
52
- ],
53
- rules: {
54
- "indent": ["error", "tab"],
55
- 'anti-trojan-source/no-bidi': 'error',
56
- 'no-loops/no-loops': 'error',
57
- '@typescript-eslint/no-unused-vars': 'error',
58
- '@typescript-eslint/no-explicit-any': 'error',
59
- '@typescript-eslint/ban-ts-comment': 0,
60
- 'import/no-unresolved': 'off',
61
- '@typescript-eslint/no-var-requires': 'off',
62
- },
63
- overrides: [
64
- {
65
- files: ['**/*.md'],
66
- processor: 'markdown/markdown',
8
+ import perfectionistNatural from 'eslint-plugin-perfectionist/configs/recommended-natural'
9
+
10
+ export default [
11
+ perfectionistNatural,
12
+ {
13
+ parser: '@typescript-eslint/parser',
14
+ parserOptions: {
15
+ ecmaVersion: "latest",
16
+ sourceType: "module",
17
+ project: projectValue,
18
+ extraFileExtensions: ['json'],
67
19
  },
68
- {
69
- // configuration for ```js fenced code blocks inside .md files.
70
- files: ['**/*.md/*.js'],
71
- rules: {
72
- 'no-console': 'off',
73
- 'import/no-unresolved': 'off',
74
- },
20
+ plugins: [
21
+ '@typescript-eslint',
22
+ 'anti-trojan-source',
23
+ 'html',
24
+ 'no-loops',
25
+ 'sonarjs',
26
+ // https://github.com/sindresorhus/eslint-plugin-unicorn
27
+ "unicorn",
28
+ "plugin:perfectionist/recommended-natural"
29
+ ],
30
+ ignorePatterns: [
31
+ '**/node_modules/*',
32
+ '**/vendor/*',
33
+ '**/.git/*'
34
+ ],
35
+ settings: {
36
+ 'html/html-extensions': ['.html', '.htm'],
37
+ 'html/xml-extensions': ['.xml'],
38
+ 'html/indent': '0',
39
+ 'html/report-bad-indent': 'error',
40
+ },
41
+ // https://eslint.org/docs/user-guide/configuring/language-options
42
+ env: {
43
+ browser: true,
44
+ es2022: true,
75
45
  },
76
- ],
77
- };
46
+ extends: [
47
+ 'airbnb-base',
48
+ 'plugin:compat/recommended',
49
+ 'plugin:markdown/recommended',
50
+ 'plugin:import/recommended',
51
+ 'plugin:import/typescript',
52
+ 'plugin:@typescript-eslint/eslint-recommended',
53
+ 'plugin:@typescript-eslint/recommended',
54
+ 'plugin:sonarjs/recommended',
55
+ "plugin:package-json/recommended",
56
+ ],
57
+ rules: {
58
+ "indent": ["error", "tab"],
59
+ 'anti-trojan-source/no-bidi': 'error',
60
+ 'no-loops/no-loops': 'error',
61
+ '@typescript-eslint/no-unused-vars': 'error',
62
+ '@typescript-eslint/no-explicit-any': 'error',
63
+ '@typescript-eslint/ban-ts-comment': 0,
64
+ 'import/no-unresolved': 'off',
65
+ '@typescript-eslint/no-var-requires': 'off',
66
+ },
67
+ overrides: [
68
+ {
69
+ files: ['**/*.md'],
70
+ processor: 'markdown/markdown',
71
+ },
72
+ {
73
+ // configuration for ```js fenced code blocks inside .md files.
74
+ files: ['**/*.md/*.js'],
75
+ rules: {
76
+ 'no-console': 'off',
77
+ 'import/no-unresolved': 'off',
78
+ },
79
+ },
80
+ ],
81
+ }];
package/package.json CHANGED
@@ -1,31 +1,31 @@
1
1
  {
2
2
  "name": "@davidsneighbour/eslint-config",
3
3
  "description": "ESlint configuration for use in davidsneighbour projects.",
4
- "version": "5.2.32",
4
+ "version": "5.2.33",
5
5
  "license": "MIT",
6
6
  "repository": "davidsneighbour/configurations",
7
7
  "author": "Patrick Kollitsch <patrick@davids-neighbour.com> (https://davids-neighbour.com)",
8
8
  "bugs": "https://github.com/davidsneighbour/configurations/issues",
9
9
  "homepage": "https://github.com/davidsneighbour/configurations/tree/main/packages/eslint-config",
10
10
  "dependencies": {
11
- "@typescript-eslint/eslint-plugin": "6.3.0",
12
- "@typescript-eslint/parser": "6.3.0",
11
+ "@typescript-eslint/eslint-plugin": "6.4.0",
12
+ "@typescript-eslint/parser": "6.4.0",
13
13
  "eslint": "8.47.0",
14
14
  "eslint-config-airbnb": ">=19.0.4",
15
15
  "eslint-config-airbnb-base": "15.0.0",
16
- "eslint-config-prettier": "8.10.0",
16
+ "eslint-config-prettier": "9.0.0",
17
17
  "eslint-plugin-anti-trojan-source": "1.1.1",
18
18
  "eslint-plugin-compat": "4.1.4",
19
19
  "eslint-plugin-cypress": "2.14.0",
20
20
  "eslint-plugin-html": "7.1.0",
21
- "eslint-plugin-import": "2.28.0",
21
+ "eslint-plugin-import": "2.28.1",
22
22
  "eslint-plugin-jsx-a11y": ">=6.7.1",
23
23
  "eslint-plugin-markdown": "3.0.1",
24
24
  "eslint-plugin-mdx": "2.2.0",
25
25
  "eslint-plugin-no-loops": "0.3.0",
26
26
  "eslint-plugin-package-json": "0.1.4",
27
27
  "eslint-plugin-prettier": "5.0.0",
28
- "eslint-plugin-react": ">=7.33.1",
28
+ "eslint-plugin-react": ">=7.33.2",
29
29
  "eslint-plugin-react-hooks": ">=4.6.0",
30
30
  "eslint-plugin-sonarjs": "0.20.0",
31
31
  "eslint-plugin-unicorn": "48.0.1"
@@ -38,5 +38,5 @@
38
38
  "node": ">=18.0.0",
39
39
  "npm": ">=8.0.0"
40
40
  },
41
- "gitHead": "04f5c2d01636c902da700b5ce6cb1279a0115116"
41
+ "gitHead": "367f36c964d27c32bd1ebdb1c0d6331d59b2a316"
42
42
  }