eslint-config-ash-nazg 39.7.0 → 39.8.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/CHANGES.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # eslint-config-ash-nazg CHANGES
2
2
 
3
+ ## 39.8.0
4
+
5
+ - feat: avoid jsdoc/check-types fixes that are equivalent to other rules
6
+
7
+ ## 39.7.1
8
+
9
+ - fix: polyglot `ecmaVersion` getting lost
10
+
3
11
  ## 39.7.0
4
12
 
5
13
  - feat: require `v` flag for polyglot configs
package/README.md CHANGED
@@ -573,6 +573,7 @@ appears, to Dark Lords.
573
573
  - `no-primitive-wrappers` - Handling elsewhere
574
574
  - `no-regex-complexity` - Oppressive
575
575
  - `no-self-compare` - Handling elsewhere
576
+ - `public-static-readonly` - Good for TS but unfortunately reports in JS too
576
577
  - `slow-regex` - Oppressive
577
578
  - `no-small-switch` - Too useful to start a pattern to which one intends to add later.
578
579
  - `prefer-default-last` - Handling elsewhere
package/index.js CHANGED
@@ -134,7 +134,22 @@ function index (types, config) {
134
134
  if (types.includes('bare')) {
135
135
  configs.push(...bare);
136
136
  } else if (!types.includes('node') && !types.includes('browser')) {
137
- configs.push(...polyglot);
137
+ configs.push(...polyglot.map((cfg) => {
138
+ return {
139
+ ...cfg,
140
+ ...(cfg.languageOptions
141
+ ? {
142
+ languageOptions: {
143
+ ecmaVersion: languageOptions.ecmaVersion,
144
+ globals: {
145
+ ...languageOptions.globals,
146
+ ...cfg.languageOptions.globals
147
+ }
148
+ }
149
+ }
150
+ : {})
151
+ };
152
+ }));
138
153
  }
139
154
 
140
155
  if (types.includes('script') || pkg.type !== 'module') {
package/main.js CHANGED
@@ -392,7 +392,7 @@ export default function main (pkg) {
392
392
 
393
393
  // SonarJS
394
394
  'sonarjs/no-inverted-boolean-check': 'error',
395
-
395
+ 'sonarjs/public-static-readonly': 'off',
396
396
  'sonarjs/no-fallthrough': 'off',
397
397
  'sonarjs/no-unused-vars': 'off',
398
398
  'sonarjs/max-switch-cases': 'off',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-ash-nazg",
3
- "version": "39.7.0",
3
+ "version": "39.8.0",
4
4
  "description": "An expansion and tweaking of the \"standard\" config style for ESLint",
5
5
  "main": "index.js",
6
6
  "types": "./dist/index.d.ts",
package/sauron.js CHANGED
@@ -18,26 +18,11 @@ export default function sauron (pkg, types) {
18
18
  settings: {
19
19
  jsdoc: {
20
20
  preferredTypes: {
21
- '*': {
22
- message: 'Use a more precise type or if necessary use ' +
23
- '`any` or add to a `typedef`.',
24
- replacement: 'any'
25
- },
26
- any: {
27
- message: 'Use a more precise type or if necessary ' +
28
- 'use in a `typedef`',
29
- replacement: false
30
- },
31
21
  Any: {
32
22
  message: 'Use a more precise type or if necessary use ' +
33
23
  '`any` or add to a `typedef`.',
34
24
  replacement: 'any'
35
25
  },
36
- Function: {
37
- message: 'Point to a `@callback` namepath or add to a ' +
38
- '`typedef` if truly arbitrary in form',
39
- replacement: false
40
- },
41
26
  function: {
42
27
  message: 'Point to a `@callback` namepath or add `Function` ' +
43
28
  'to a `typedef` if truly arbitrary in form',