eslint-config-entva-typescript-base 2.19.0 → 2.31.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.
Files changed (2) hide show
  1. package/index.js +9 -7
  2. package/package.json +10 -10
package/index.js CHANGED
@@ -3,7 +3,7 @@ import importPlugin from 'eslint-plugin-import';
3
3
  import globals from 'globals';
4
4
  import typescriptEslint from '@typescript-eslint/eslint-plugin';
5
5
  import tsParser from '@typescript-eslint/parser';
6
- import stylisticTs from '@stylistic/eslint-plugin-ts';
6
+ import stylisticTs from '@stylistic/eslint-plugin';
7
7
 
8
8
  // Many TS rules mirror JS rules, we need to disable JS rule and apply config for the TS replacement
9
9
  const getOverrides = (base, rules, overridePrefix) => rules.reduce((acc, rule) => {
@@ -17,7 +17,7 @@ export const mainRule = {
17
17
  plugins: {
18
18
  import: importPlugin,
19
19
  '@typescript-eslint': typescriptEslint,
20
- '@stylistic/ts': stylisticTs,
20
+ '@stylistic': stylisticTs,
21
21
  },
22
22
 
23
23
  languageOptions: {
@@ -98,7 +98,7 @@ export const mainRule = {
98
98
  'object-curly-spacing',
99
99
  'quotes',
100
100
  ],
101
- '@stylistic/ts',
101
+ '@stylistic',
102
102
  ),
103
103
 
104
104
  '@typescript-eslint/no-implied-eval': ['error'],
@@ -154,7 +154,7 @@ export const mainRule = {
154
154
  enforceForArrowConditionals: false,
155
155
  }],
156
156
 
157
- '@stylistic/ts/member-delimiter-style': ['error', {
157
+ '@stylistic/member-delimiter-style': ['error', {
158
158
  multiline: {
159
159
  delimiter: 'comma',
160
160
  },
@@ -163,9 +163,9 @@ export const mainRule = {
163
163
  delimiter: 'comma',
164
164
  },
165
165
  }],
166
- '@stylistic/ts/func-call-spacing': ['error', 'never'],
167
- '@stylistic/ts/no-extra-semi': ['error'],
168
- '@stylistic/ts/comma-dangle': ['error', {
166
+ '@stylistic/function-call-spacing': ['error', 'never'],
167
+ '@stylistic/no-extra-semi': ['error'],
168
+ '@stylistic/comma-dangle': ['error', {
169
169
  arrays: 'always-multiline',
170
170
  objects: 'always-multiline',
171
171
  imports: 'always-multiline',
@@ -175,6 +175,8 @@ export const mainRule = {
175
175
  generics: 'always-multiline',
176
176
  tuples: 'always-multiline',
177
177
  }],
178
+
179
+ '@typescript-eslint/no-deprecated': 'error',
178
180
  },
179
181
  };
180
182
 
package/package.json CHANGED
@@ -6,10 +6,10 @@
6
6
  "readmeFilename": "README.md",
7
7
  "repository": {
8
8
  "type": "git",
9
- "url": "https://github.com/entva/styleguide"
9
+ "url": "git+https://github.com/entva/styleguide.git"
10
10
  },
11
11
  "bugs": "https://github.com/entva/styleguide/issues",
12
- "version": "2.19.0",
12
+ "version": "2.31.0",
13
13
  "keywords": [
14
14
  "linter",
15
15
  "config",
@@ -21,19 +21,19 @@
21
21
  "scripts": {
22
22
  "reinstall": "rm -rf node_modules package-lock.json && npm install",
23
23
  "test": "node ../../../test ./test js ts",
24
- "rules": "node_modules/.bin/eslint --print-config file.ts > eslint-ruleset-output.json",
24
+ "rules": "eslint --print-config file.ts > eslint-ruleset-output.json",
25
25
  "prepublishOnly": "npm test"
26
26
  },
27
27
  "devDependencies": {
28
- "eslint": "^9.17.0"
28
+ "eslint": "^9.34.0"
29
29
  },
30
30
  "dependencies": {
31
- "@stylistic/eslint-plugin-ts": "^2.12.1",
32
- "@typescript-eslint/eslint-plugin": "^8.19.0",
33
- "@typescript-eslint/parser": "^8.19.0",
34
- "eslint-config-entva-base": "^2.18.0",
35
- "eslint-plugin-import": "^2.31.0",
36
- "globals": "^15.14.0"
31
+ "@stylistic/eslint-plugin": "^5.2.3",
32
+ "@typescript-eslint/eslint-plugin": "^8.40.0",
33
+ "@typescript-eslint/parser": "^8.40.0",
34
+ "eslint-config-entva-base": "^2.x.x",
35
+ "eslint-plugin-import": "^2.32.0",
36
+ "globals": "^16.3.0"
37
37
  },
38
38
  "peerDependencies": {
39
39
  "eslint": "^9.x.x"