@davidsneighbour/eslint-config 4.0.5 → 4.0.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/index.js +47 -47
  2. package/package.json +7 -7
package/index.js CHANGED
@@ -1,61 +1,61 @@
1
1
  module.exports = {
2
- parser: "@typescript-eslint/parser",
2
+ parser: '@typescript-eslint/parser',
3
3
  parserOptions: {
4
- sourceType: "module",
4
+ project: './tsconfig.json',
5
+ },
6
+ plugins: [
7
+ 'anti-trojan-source',
8
+ '@typescript-eslint',
9
+ 'no-loops',
10
+ 'sonarjs',
11
+ 'html',
12
+ 'package-json',
13
+ ],
14
+ ignorePatterns: ['**/node_modules/*', '**/vendor/*', '**/.git/*'],
15
+ settings: {
16
+ 'html/html-extensions': ['.html', '.htm'],
17
+ 'html/xml-extensions': ['.xml'],
18
+ 'html/indent': '0',
19
+ 'html/report-bad-indent': 'error',
20
+ },
21
+ // https://eslint.org/docs/user-guide/configuring/language-options
22
+ env: {
23
+ browser: true,
24
+ es2022: true,
5
25
  },
6
26
  extends: [
7
- "airbnb-base",
8
- "plugin:compat/recommended",
9
- "plugin:markdown/recommended",
10
- "plugin:import/recommended",
11
- "plugin:import/typescript",
12
- "plugin:@typescript-eslint/eslint-recommended",
13
- "plugin:@typescript-eslint/recommended",
14
- "plugin:sonarjs/recommended",
15
- "plugin:unicorn/all",
27
+ 'airbnb-base',
28
+ 'plugin:compat/recommended',
29
+ 'plugin:markdown/recommended',
30
+ 'plugin:import/recommended',
31
+ 'plugin:import/typescript',
32
+ 'plugin:@typescript-eslint/eslint-recommended',
33
+ 'plugin:@typescript-eslint/recommended',
34
+ 'plugin:sonarjs/recommended',
35
+ "plugin:package-json/recommended",
16
36
  ],
37
+ rules: {
38
+ 'anti-trojan-source/no-bidi': 'error',
39
+ 'no-loops/no-loops': 'error',
40
+ '@typescript-eslint/indent': ['error', 2],
41
+ '@typescript-eslint/no-unused-vars': 'error',
42
+ '@typescript-eslint/no-explicit-any': 'error',
43
+ '@typescript-eslint/ban-ts-comment': 0,
44
+ 'import/no-unresolved': 'off',
45
+ '@typescript-eslint/no-var-requires': 'off',
46
+ },
17
47
  overrides: [
18
48
  {
19
- files: ["**/*.md"],
20
- processor: "markdown/markdown",
49
+ files: ['**/*.md'],
50
+ processor: 'markdown/markdown',
21
51
  },
22
52
  {
23
- // customize the configuration ESLint uses for ```js
24
- // fenced code blocks inside .md files.
25
- files: ["**/*.md/*.js"],
53
+ // configuration for ```js fenced code blocks inside .md files.
54
+ files: ['**/*.md/*.js'],
26
55
  rules: {
27
- "no-console": "off",
28
- "import/no-unresolved": "off",
56
+ 'no-console': 'off',
57
+ 'import/no-unresolved': 'off',
29
58
  },
30
59
  },
31
60
  ],
32
- plugins: [
33
- "anti-trojan-source",
34
- "@typescript-eslint",
35
- "no-loops",
36
- "sonarjs",
37
- "html",
38
- ],
39
- ignorePatterns: ["**/node_modules/*", "**/vendor/*"],
40
- rules: {
41
- "anti-trojan-source/no-bidi": "error",
42
- "no-loops/no-loops": "error",
43
- "@typescript-eslint/indent": ["error", 2],
44
- "@typescript-eslint/no-unused-vars": "error",
45
- "@typescript-eslint/no-explicit-any": "error",
46
- "@typescript-eslint/ban-ts-comment": 0,
47
- "unicorn/no-array-for-each": "off",
48
- "unicorn/prefer-module": "off",
49
- "import/no-unresolved": "off",
50
- "@typescript-eslint/no-var-requires": "off",
51
- },
52
- settings: {
53
- "html/html-extensions": [".html", ".htm"],
54
- "html/xml-extensions": [".xml"],
55
- "html/indent": "0",
56
- "html/report-bad-indent": "error",
57
- },
58
- env: {
59
- browser: true,
60
- },
61
61
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@davidsneighbour/eslint-config",
3
- "version": "4.0.5",
3
+ "version": "4.0.8",
4
4
  "license": "MIT",
5
5
  "description": "ESlint configuration for use in davidsneighbour projects.",
6
6
  "author": {
@@ -12,9 +12,9 @@
12
12
  "repository": "davidsneighbour/configurations",
13
13
  "bugs": "https://github.com/davidsneighbour/configurations/issues",
14
14
  "dependencies": {
15
- "@typescript-eslint/eslint-plugin": ">=5.23.0",
16
- "@typescript-eslint/parser": ">=5.23.0",
17
- "eslint": ">=8.15.0",
15
+ "@typescript-eslint/eslint-plugin": ">=5.26.0",
16
+ "@typescript-eslint/parser": ">=5.26.0",
17
+ "eslint": ">=8.16.0",
18
18
  "eslint-config-airbnb-base": ">=15.0.0",
19
19
  "eslint-plugin-anti-trojan-source": ">=1.1.0",
20
20
  "eslint-plugin-compat": ">=4.0.2",
@@ -23,8 +23,8 @@
23
23
  "eslint-plugin-import": ">=2.26.0",
24
24
  "eslint-plugin-markdown": ">=2.2.1",
25
25
  "eslint-plugin-no-loops": ">=0.3.0",
26
- "eslint-plugin-sonarjs": ">=0.13.0",
27
- "eslint-plugin-unicorn": ">=42.0.0"
26
+ "eslint-plugin-package-json": "^0.1.4",
27
+ "eslint-plugin-sonarjs": ">=0.13.0"
28
28
  },
29
29
  "engines": {
30
30
  "node": ">=16",
@@ -33,7 +33,7 @@
33
33
  "eslintConfig": {
34
34
  "extends": "./index.js"
35
35
  },
36
- "gitHead": "8fed80d079af5cdb70cf968f757fae98d9a5b0c2",
36
+ "gitHead": "55c20949cd12651b0dfc600b5b316c8a42776506",
37
37
  "keywords": [
38
38
  "eslint",
39
39
  "eslint-config"