@perfective/eslint-config 0.29.1 → 0.29.2

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/README.adoc CHANGED
@@ -40,7 +40,6 @@ from issues that will be fixed automatically.
40
40
  ----
41
41
  npm install --save-dev \
42
42
  @perfective/eslint-config \
43
- @babel/eslint-parser \
44
43
  @stylistic/eslint-plugin \
45
44
  @stylistic/eslint-plugin-js \
46
45
  @stylistic/eslint-plugin-jsx \
package/README.md CHANGED
@@ -38,7 +38,6 @@ from issues that will be fixed automatically.
38
38
  ```bash
39
39
  npm install --save-dev \
40
40
  @perfective/eslint-config \
41
- @babel/eslint-parser \
42
41
  @stylistic/eslint-plugin \
43
42
  @stylistic/eslint-plugin-js \
44
43
  @stylistic/eslint-plugin-jsx \
package/cypress.js CHANGED
@@ -40,16 +40,14 @@ const no_extraneous_dependencies_1 = require("./rules/import/rules/no-extraneous
40
40
  function cypressConfig(files = ['cypress/**/*.[jt]s']) {
41
41
  return {
42
42
  files,
43
- languageOptions: Object.assign(Object.assign({}, cypress_1.cypressOptionalConfig.languageOptions), { parser: tsEslint.parser, parserOptions: {
44
- ecmaVersion: 6,
43
+ languageOptions: Object.assign({ sourceType: 'module', ecmaVersion: 'latest', parser: tsEslint.parser, parserOptions: {
45
44
  ecmaFeatures: {
46
45
  globalReturn: false,
47
46
  impliedStrict: true,
48
47
  },
49
- sourceType: 'module',
50
- project: './tsconfig.json',
48
+ projectService: true,
51
49
  warnOnUnsupportedTypeScriptVersion: true,
52
- } }),
50
+ } }, cypress_1.cypressOptionalConfig.languageOptions),
53
51
  plugins: Object.assign({}, cypress_1.cypressOptionalConfig.plugins),
54
52
  rules: Object.assign(Object.assign({}, cypress_1.cypressOptionalConfig.rules), { 'init-declarations': 'off', '@typescript-eslint/init-declarations': 'off', 'import/no-extraneous-dependencies': ['error', (0, no_extraneous_dependencies_1.cypressImportNoExtraneousDependencies)()], 'max-nested-callbacks': ['error', 4], 'new-cap': ['error', {
55
53
  capIsNewExceptions: ['Given', 'When', 'Then', 'And', 'But', 'Before', 'After'],
package/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- import * as babelParser from '@babel/eslint-parser';
2
1
  declare const _default: ({
3
2
  ignores: string[];
4
3
  files?: undefined;
@@ -9,17 +8,18 @@ declare const _default: ({
9
8
  } | {
10
9
  files: string[];
11
10
  languageOptions: {
11
+ sourceType: string;
12
+ ecmaVersion: string;
12
13
  parser: import("@typescript-eslint/utils/dist/ts-eslint").Parser.LooseParserModule;
13
14
  parserOptions: {
14
- ecmaVersion: number;
15
15
  ecmaFeatures: {
16
16
  globalReturn: boolean;
17
17
  impliedStrict: boolean;
18
18
  };
19
- sourceType: string;
20
- project: string;
19
+ projectService: {
20
+ allowDefaultProject: string[];
21
+ };
21
22
  warnOnUnsupportedTypeScriptVersion: boolean;
22
- requireConfigFile?: undefined;
23
23
  };
24
24
  };
25
25
  plugins: {
@@ -1072,18 +1072,17 @@ declare const _default: ({
1072
1072
  } | {
1073
1073
  files: string[];
1074
1074
  languageOptions: {
1075
- parser: typeof babelParser;
1075
+ sourceType: string;
1076
+ ecmaVersion: string;
1076
1077
  parserOptions: {
1077
- ecmaVersion: number;
1078
1078
  ecmaFeatures: {
1079
1079
  globalReturn: boolean;
1080
1080
  impliedStrict: boolean;
1081
1081
  };
1082
- sourceType: string;
1083
- requireConfigFile: boolean;
1084
- project?: undefined;
1082
+ projectService?: undefined;
1085
1083
  warnOnUnsupportedTypeScriptVersion?: undefined;
1086
1084
  };
1085
+ parser?: undefined;
1087
1086
  };
1088
1087
  plugins: {};
1089
1088
  settings: {
@@ -1107,17 +1106,16 @@ declare const _default: ({
1107
1106
  } | {
1108
1107
  files: string[];
1109
1108
  languageOptions: {
1109
+ sourceType: string;
1110
+ ecmaVersion: string;
1110
1111
  parser: import("@typescript-eslint/utils/dist/ts-eslint").Parser.LooseParserModule;
1111
1112
  parserOptions: {
1112
- ecmaVersion: number;
1113
1113
  ecmaFeatures: {
1114
1114
  globalReturn: boolean;
1115
1115
  impliedStrict: boolean;
1116
1116
  };
1117
- sourceType: string;
1118
- project: string;
1117
+ projectService: boolean;
1119
1118
  warnOnUnsupportedTypeScriptVersion: boolean;
1120
- requireConfigFile?: undefined;
1121
1119
  };
1122
1120
  };
1123
1121
  plugins: {
package/index.js CHANGED
@@ -34,7 +34,6 @@ var __importStar = (this && this.__importStar) || (function () {
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
36
  const tsEslint = __importStar(require("typescript-eslint"));
37
- const babelParser = __importStar(require("@babel/eslint-parser"));
38
37
  const array_func_1 = require("./rules/array-func");
39
38
  const eslint_1 = require("./rules/eslint");
40
39
  const eslint_comments_1 = require("./rules/eslint-comments");
@@ -59,15 +58,17 @@ exports.default = [
59
58
  {
60
59
  files: ['**/*.[jt]s?(x)'],
61
60
  languageOptions: {
61
+ sourceType: 'module',
62
+ ecmaVersion: 'latest',
62
63
  parser: tsEslint.parser,
63
64
  parserOptions: {
64
- ecmaVersion: 6,
65
65
  ecmaFeatures: {
66
66
  globalReturn: false,
67
67
  impliedStrict: true,
68
68
  },
69
- sourceType: 'module',
70
- project: './tsconfig.json',
69
+ projectService: {
70
+ allowDefaultProject: ['?(.)*.?(m|c)js'],
71
+ },
71
72
  warnOnUnsupportedTypeScriptVersion: true,
72
73
  },
73
74
  },
@@ -80,15 +81,13 @@ exports.default = [
80
81
  {
81
82
  files: ['**/*.js?(x)'],
82
83
  languageOptions: {
83
- parser: babelParser,
84
+ sourceType: 'module',
85
+ ecmaVersion: 'latest',
84
86
  parserOptions: {
85
- ecmaVersion: 6,
86
87
  ecmaFeatures: {
87
88
  globalReturn: false,
88
89
  impliedStrict: true,
89
90
  },
90
- sourceType: 'module',
91
- requireConfigFile: false,
92
91
  },
93
92
  },
94
93
  plugins: {},
@@ -110,15 +109,15 @@ exports.default = [
110
109
  {
111
110
  files: ['**/*.ts?(x)'],
112
111
  languageOptions: {
112
+ sourceType: 'module',
113
+ ecmaVersion: 'latest',
113
114
  parser: tsEslint.parser,
114
115
  parserOptions: {
115
- ecmaVersion: 6,
116
116
  ecmaFeatures: {
117
117
  globalReturn: false,
118
118
  impliedStrict: true,
119
119
  },
120
- sourceType: 'module',
121
- project: './tsconfig.json',
120
+ projectService: true,
122
121
  warnOnUnsupportedTypeScriptVersion: true,
123
122
  },
124
123
  },
@@ -140,7 +139,7 @@ exports.default = [
140
139
  rules: Object.assign(Object.assign({}, typescript_eslint_1.typescriptEslintConfig.rules), ts_1.stylisticTsConfig.rules),
141
140
  },
142
141
  {
143
- files: ['**/*.js?(x)'],
142
+ files: ['**/*.[jt]sx'],
144
143
  plugins: Object.assign({}, jsx_1.stylisticJsxConfig.plugins),
145
144
  rules: Object.assign({}, jsx_1.stylisticJsxConfig.rules),
146
145
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@perfective/eslint-config",
3
- "version": "0.29.1",
3
+ "version": "0.29.2",
4
4
  "description": "ESLint shareable rules configuration",
5
5
  "keywords": ["code quality", "code standard", "code style", "eslint", "eslint config", "lint", "perfective", "tslint", "tslint config", "typescript"],
6
6
  "author": "Andrey Mikheychik <a.mikheychik@gmail.com>",
@@ -11,7 +11,6 @@
11
11
  },
12
12
  "license": "MIT",
13
13
  "peerDependencies": {
14
- "@babel/eslint-parser": "^7.25.9",
15
14
  "@smarttools/eslint-plugin-rxjs": "^1.0.11",
16
15
  "@stylistic/eslint-plugin": "^2.12.1",
17
16
  "@stylistic/eslint-plugin-js": "^2.12.1",
package/rxjs.js CHANGED
@@ -40,15 +40,15 @@ function rxjsConfig(files = ['**/*.ts?(x)']) {
40
40
  return {
41
41
  files,
42
42
  languageOptions: {
43
+ sourceType: 'module',
44
+ ecmaVersion: 'latest',
43
45
  parser: tsEslint.parser,
44
46
  parserOptions: {
45
- ecmaVersion: 6,
46
47
  ecmaFeatures: {
47
48
  globalReturn: false,
48
49
  impliedStrict: true,
49
50
  },
50
- sourceType: 'module',
51
- project: './tsconfig.json',
51
+ projectService: true,
52
52
  warnOnUnsupportedTypeScriptVersion: true,
53
53
  },
54
54
  },