@davidsneighbour/eslint-config 4.0.3 → 4.0.6

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