@w5s/eslint-config 1.0.5 → 1.0.7

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/lib/es/import.js CHANGED
@@ -5,7 +5,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  const dev_1 = require("@w5s/dev");
6
6
  // @ts-ignore airbnb is not typed
7
7
  const imports_1 = __importDefault(require("eslint-config-airbnb-base/rules/imports"));
8
- const _rule_js_1 = require("../_rule.js");
9
8
  // @see https://github.com/typescript-eslint/typescript-eslint/blob/master/docs/getting-started/linting/FAQ.md#eslint-plugin-import
10
9
  const config = dev_1.ESLintConfig.concat(imports_1.default,
11
10
  // Overrides
@@ -35,7 +34,7 @@ const config = dev_1.ESLintConfig.concat(imports_1.default,
35
34
  'import/no-named-as-default': 'off',
36
35
  'import/no-unused-modules': 'off',
37
36
  'import/prefer-default-export': 'off',
38
- 'import/unambiguous': (0, _rule_js_1.fixme)('off'), // Disable because proposal still in progress
37
+ 'import/unambiguous': dev_1.ESLintConfig.fixme('off'), // Disable because proposal still in progress
39
38
  },
40
39
  settings: {
41
40
  'import/extensions': dev_1.EXTENSIONS,
package/lib/es/promise.js CHANGED
@@ -1,11 +1,10 @@
1
1
  "use strict";
2
2
  const dev_1 = require("@w5s/dev");
3
- const _rule_js_1 = require("../_rule.js");
4
3
  const config = dev_1.ESLintConfig.concat({
5
4
  extends: ['plugin:promise/recommended'],
6
5
  plugins: ['promise'],
7
6
  rules: {
8
- 'promise/prefer-await-to-callbacks': (0, _rule_js_1.fixme)('error'),
7
+ 'promise/prefer-await-to-callbacks': dev_1.ESLintConfig.fixme('error'),
9
8
  'promise/prefer-await-to-then': 'error',
10
9
  },
11
10
  });
package/lib/jest.js CHANGED
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
  const dev_1 = require("@w5s/dev");
3
- const _rule_1 = require("./_rule");
4
3
  const config = dev_1.ESLintConfig.concat({
5
4
  env: {
6
5
  'jest/globals': true,
@@ -45,7 +44,7 @@ const config = dev_1.ESLintConfig.concat({
45
44
  */
46
45
  {
47
46
  rules: {
48
- '@typescript-eslint/dot-notation': (0, _rule_1.fixme)(undefined),
47
+ '@typescript-eslint/dot-notation': dev_1.ESLintConfig.fixme(undefined),
49
48
  '@typescript-eslint/naming-convention': 'off',
50
49
  '@typescript-eslint/no-non-null-assertion': 'off',
51
50
  '@typescript-eslint/no-unsafe-assignment': 'off',
package/lib/typescript.js CHANGED
@@ -3,7 +3,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  const dev_1 = require("@w5s/dev");
6
- const _rule_js_1 = require("./_rule.js");
7
6
  const base_js_1 = __importDefault(require("./es/base.js"));
8
7
  const import_js_1 = __importDefault(require("./es/import.js"));
9
8
  // Inspired by https://github.com/iamturns/eslint-config-airbnb-typescript/blob/master/lib/shared.js
@@ -101,7 +100,7 @@ const config = dev_1.ESLintConfig.concat(
101
100
  '@typescript-eslint/no-misused-new': 'error',
102
101
  '@typescript-eslint/no-namespace': 'off',
103
102
  '@typescript-eslint/no-non-null-assertion': 'error',
104
- '@typescript-eslint/no-redeclare': (0, _rule_js_1.fixme)(baseRules['no-redeclare']),
103
+ '@typescript-eslint/no-redeclare': dev_1.ESLintConfig.fixme(baseRules['no-redeclare']),
105
104
  '@typescript-eslint/no-require-imports': 'error',
106
105
  '@typescript-eslint/no-shadow': baseRules['no-shadow'],
107
106
  '@typescript-eslint/no-this-alias': 'error',
@@ -193,7 +192,7 @@ const config = dev_1.ESLintConfig.concat(
193
192
  'func-call-spacing': 'off',
194
193
  'getter-return': 'off',
195
194
  'import/default': duplicateTSC,
196
- 'import/export': (0, _rule_js_1.fixme)('error'),
195
+ 'import/export': dev_1.ESLintConfig.fixme('error'),
197
196
  'import/named': duplicateTSC,
198
197
  'import/namespace': duplicateTSC,
199
198
  'import/no-named-as-default-member': duplicateTSC,
@@ -212,7 +211,7 @@ const config = dev_1.ESLintConfig.concat(
212
211
  'no-func-assign': 'off',
213
212
  'no-implied-eval': 'off',
214
213
  'no-import-assign': 'off',
215
- 'no-inner-declarations': (0, _rule_js_1.fixme)('error'),
214
+ 'no-inner-declarations': dev_1.ESLintConfig.fixme('error'),
216
215
  'no-loop-func': 'off',
217
216
  'no-loss-of-precision': 'off',
218
217
  'no-magic-numbers': 'off',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@w5s/eslint-config",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "description": "ESLint configuration presets",
5
5
  "keywords": [
6
6
  "eslint",
@@ -53,13 +53,13 @@
53
53
  "@rushstack/eslint-patch": "^1.1.0",
54
54
  "@typescript-eslint/eslint-plugin": "^5.0.0",
55
55
  "@typescript-eslint/parser": "^5.0.0",
56
- "@w5s/dev": "^1.0.3",
57
- "@w5s/prettier-config": "^1.0.17",
56
+ "@w5s/dev": "^1.0.4",
57
+ "@w5s/prettier-config": "^1.0.18",
58
58
  "eslint-config-airbnb-base": "^15.0.0",
59
59
  "eslint-config-prettier": "^8.0.0",
60
60
  "eslint-plugin-import": "^2.25.0",
61
61
  "eslint-plugin-jest": "^27.0.0",
62
- "eslint-plugin-jsdoc": "^41.0.0",
62
+ "eslint-plugin-jsdoc": "^43.0.0",
63
63
  "eslint-plugin-jsonc": "^2.4.0",
64
64
  "eslint-plugin-prettier": "^4.0.0",
65
65
  "eslint-plugin-promise": "^6.0.0",
@@ -73,15 +73,15 @@
73
73
  "@types/eslint-plugin-prettier": "3.1.0",
74
74
  "@types/parse-gitignore": "1.0.0",
75
75
  "@types/prettier": "2.7.2",
76
- "@types/react": "18.0.37",
77
- "@typescript-eslint/parser": "5.59.0",
78
- "eslint": "8.38.0",
76
+ "@types/react": "18.2.6",
77
+ "@typescript-eslint/parser": "5.59.5",
78
+ "eslint": "8.40.0",
79
79
  "eslint-config-prettier": "8.8.0",
80
80
  "eslint-find-rules": "4.1.0",
81
- "prettier": "2.8.7",
81
+ "prettier": "2.8.8",
82
82
  "react": "18.2.0",
83
- "vite": "4.2.2",
84
- "vitest": "0.30.1"
83
+ "vite": "4.3.5",
84
+ "vitest": "0.31.0"
85
85
  },
86
86
  "peerDependencies": {
87
87
  "eslint": "8.x",
@@ -102,5 +102,5 @@
102
102
  "publishConfig": {
103
103
  "access": "public"
104
104
  },
105
- "gitHead": "12f2f65750a6ddd1b9746e7e09a7a77919b33eba"
105
+ "gitHead": "0c9ebb2dc3ed83971dfab528da7f398e2b947a64"
106
106
  }
package/src/es/import.ts CHANGED
@@ -2,7 +2,6 @@ import { ESLintConfig, EXTENSIONS, EXTENSIONS_RESOURCES_REGEX, IGNORE_LIST } fro
2
2
  import type eslint from 'eslint';
3
3
  // @ts-ignore airbnb is not typed
4
4
  import importConfig from 'eslint-config-airbnb-base/rules/imports';
5
- import { fixme } from '../_rule.js';
6
5
 
7
6
  // @see https://github.com/typescript-eslint/typescript-eslint/blob/master/docs/getting-started/linting/FAQ.md#eslint-plugin-import
8
7
 
@@ -35,7 +34,7 @@ const config: eslint.Linter.Config = ESLintConfig.concat(
35
34
  'import/no-named-as-default': 'off', // Performance issues
36
35
  'import/no-unused-modules': 'off', // Performance issues
37
36
  'import/prefer-default-export': 'off', // Not aligned, default export does not bring sufficient semantic
38
- 'import/unambiguous': fixme('off'), // Disable because proposal still in progress
37
+ 'import/unambiguous': ESLintConfig.fixme('off'), // Disable because proposal still in progress
39
38
  },
40
39
  settings: {
41
40
  'import/extensions': EXTENSIONS,
package/src/es/promise.ts CHANGED
@@ -1,12 +1,11 @@
1
1
  import { ESLintConfig } from '@w5s/dev';
2
2
  import type eslint from 'eslint';
3
- import { fixme } from '../_rule.js';
4
3
 
5
4
  const config: eslint.Linter.Config = ESLintConfig.concat({
6
5
  extends: ['plugin:promise/recommended'],
7
6
  plugins: ['promise'],
8
7
  rules: {
9
- 'promise/prefer-await-to-callbacks': fixme('error'), // https://github.com/xjamundx/eslint-plugin-promise/issues/212
8
+ 'promise/prefer-await-to-callbacks': ESLintConfig.fixme('error'), // https://github.com/xjamundx/eslint-plugin-promise/issues/212
10
9
  'promise/prefer-await-to-then': 'error',
11
10
  },
12
11
  });
package/src/jest.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  import { ESLintConfig } from '@w5s/dev';
2
2
  import type eslint from 'eslint';
3
- import { fixme } from './_rule';
4
3
 
5
4
  const config: eslint.Linter.Config = ESLintConfig.concat(
6
5
  {
@@ -48,7 +47,7 @@ const config: eslint.Linter.Config = ESLintConfig.concat(
48
47
  */
49
48
  {
50
49
  rules: {
51
- '@typescript-eslint/dot-notation': fixme(undefined), // eslint-plugin-jest seems to break this rule
50
+ '@typescript-eslint/dot-notation': ESLintConfig.fixme(undefined), // eslint-plugin-jest seems to break this rule
52
51
  '@typescript-eslint/naming-convention': 'off',
53
52
  '@typescript-eslint/no-non-null-assertion': 'off',
54
53
  '@typescript-eslint/no-unsafe-assignment': 'off',
package/src/typescript.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  import type eslint from 'eslint';
2
2
  import { ESLintConfig } from '@w5s/dev';
3
- import { fixme } from './_rule.js';
4
3
  import baseConfig from './es/base.js';
5
4
  import importConfig from './es/import.js';
6
5
 
@@ -102,7 +101,7 @@ const config: eslint.Linter.Config = ESLintConfig.concat(
102
101
  '@typescript-eslint/no-misused-new': 'error',
103
102
  '@typescript-eslint/no-namespace': 'off', // We don't agree with community, namespaces are great and not deprecated
104
103
  '@typescript-eslint/no-non-null-assertion': 'error',
105
- '@typescript-eslint/no-redeclare': fixme(baseRules['no-redeclare']),
104
+ '@typescript-eslint/no-redeclare': ESLintConfig.fixme(baseRules['no-redeclare']),
106
105
  '@typescript-eslint/no-require-imports': 'error',
107
106
  '@typescript-eslint/no-shadow': baseRules['no-shadow'],
108
107
  '@typescript-eslint/no-this-alias': 'error',
@@ -197,7 +196,7 @@ const config: eslint.Linter.Config = ESLintConfig.concat(
197
196
  'func-call-spacing': 'off',
198
197
  'getter-return': 'off',
199
198
  'import/default': duplicateTSC,
200
- 'import/export': fixme('error'), // https://github.com/benmosher/eslint-plugin-import/issues/1964
199
+ 'import/export': ESLintConfig.fixme('error'), // https://github.com/benmosher/eslint-plugin-import/issues/1964
201
200
  'import/named': duplicateTSC,
202
201
  'import/namespace': duplicateTSC,
203
202
  'import/no-named-as-default-member': duplicateTSC,
@@ -216,7 +215,7 @@ const config: eslint.Linter.Config = ESLintConfig.concat(
216
215
  'no-func-assign': 'off',
217
216
  'no-implied-eval': 'off',
218
217
  'no-import-assign': 'off',
219
- 'no-inner-declarations': fixme('error'), // https://github.com/typescript-eslint/typescript-eslint/issues/239
218
+ 'no-inner-declarations': ESLintConfig.fixme('error'), // https://github.com/typescript-eslint/typescript-eslint/issues/239
220
219
  'no-loop-func': 'off',
221
220
  'no-loss-of-precision': 'off',
222
221
  'no-magic-numbers': 'off',
package/lib/_rule.d.ts DELETED
@@ -1,2 +0,0 @@
1
- import type { Linter } from 'eslint';
2
- export declare function fixme(_status: Linter.RuleLevel | [Linter.RuleLevel, ...any[]] | undefined): "off";
package/lib/_rule.js DELETED
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.fixme = void 0;
4
- function fixme(_status) {
5
- return 'off';
6
- }
7
- exports.fixme = fixme;
package/src/_rule.ts DELETED
@@ -1,5 +0,0 @@
1
- import type { Linter } from 'eslint';
2
-
3
- export function fixme(_status: Linter.RuleLevel | [Linter.RuleLevel, ...any[]] | undefined) {
4
- return 'off' as const;
5
- }