@open-turo/eslint-config-typescript 16.0.0-pr-373.6.1.1 → 16.0.0-pr-373.7.1.1

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/eslint.config.mjs CHANGED
@@ -1,23 +1,3 @@
1
1
  import openTuroTypescriptConfig from "./index.mjs";
2
- import jestPlugin from "eslint-plugin-jest";
3
2
 
4
- export default [
5
- ...openTuroTypescriptConfig,
6
- {
7
- files: ["*.cjs", "*.mjs", "test/**/*.js"],
8
- languageOptions: {
9
- parserOptions: {
10
- projectService: {
11
- // This project doesn't use Typescript and a lot of our rules require type checking
12
- allowDefaultProject: [
13
- "index.mjs",
14
- "index.cjs",
15
- "eslint.config.mjs",
16
- "recommended.cjs",
17
- "test/test.spec.js",
18
- ],
19
- },
20
- },
21
- },
22
- },
23
- ];
3
+ export default openTuroTypescriptConfig;
package/index.cjs CHANGED
@@ -23,6 +23,12 @@ module.exports = tseslint.config(
23
23
  sonarjsPlugin.configs.recommended,
24
24
  unicornPlugin.configs["flat/recommended"],
25
25
  ],
26
+ languageOptions: {
27
+ parser: tsParser,
28
+ parserOptions: {
29
+ projectService: true,
30
+ },
31
+ },
26
32
  rules: {
27
33
  "import/default": "off",
28
34
  "import/named": "off",
@@ -104,6 +110,10 @@ module.exports = tseslint.config(
104
110
  plugins: { jest: jestPlugin },
105
111
  languageOptions: {
106
112
  globals: jestPlugin.environments.globals.globals,
113
+ parser: tsParser,
114
+ parserOptions: {
115
+ projectService: true,
116
+ },
107
117
  },
108
118
  extends: [jestPlugin.configs["flat/recommended"]],
109
119
  rules: {
@@ -115,13 +125,6 @@ module.exports = tseslint.config(
115
125
  },
116
126
  },
117
127
  {
118
- languageOptions: {
119
- parser: tsParser,
120
- parserOptions: {
121
- projectService: true,
122
- tsconfigRootDir: __dirname,
123
- },
124
- },
125
128
  settings: {
126
129
  "import/resolver": {
127
130
  typescript: {
package/index.mjs CHANGED
@@ -23,6 +23,12 @@ export default tseslint.config(
23
23
  sonarjsPlugin.configs.recommended,
24
24
  unicornPlugin.configs["flat/recommended"],
25
25
  ],
26
+ languageOptions: {
27
+ parser: tsParser,
28
+ parserOptions: {
29
+ projectService: true,
30
+ },
31
+ },
26
32
  rules: {
27
33
  "import/default": "off",
28
34
  "import/named": "off",
@@ -100,10 +106,14 @@ export default tseslint.config(
100
106
  prettierPluginRecommended,
101
107
  jsonPlugin.configs["recommended"],
102
108
  {
103
- files: ["test/**"],
109
+ files: ["test/**/*.{ts,tsx}"],
104
110
  plugins: { jest: jestPlugin },
105
111
  languageOptions: {
106
112
  globals: jestPlugin.environments.globals.globals,
113
+ parser: tsParser,
114
+ parserOptions: {
115
+ projectService: true,
116
+ },
107
117
  },
108
118
  extends: [jestPlugin.configs["flat/recommended"]],
109
119
  rules: {
@@ -115,13 +125,6 @@ export default tseslint.config(
115
125
  },
116
126
  },
117
127
  {
118
- languageOptions: {
119
- parser: tsParser,
120
- parserOptions: {
121
- projectService: true,
122
- tsconfigRootDir: import.meta.dirname,
123
- },
124
- },
125
128
  settings: {
126
129
  "import/resolver": {
127
130
  typescript: {
package/package.json CHANGED
@@ -54,5 +54,5 @@
54
54
  "access": "public"
55
55
  },
56
56
  "repository": "https://github.com/open-turo/eslint-config-typescript",
57
- "version": "16.0.0-pr-373.6.1.1"
57
+ "version": "16.0.0-pr-373.7.1.1"
58
58
  }