eslint-config-entva-typescript 1.2.0 → 2.0.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.
@@ -0,0 +1,3 @@
1
+ import mainConfig from './index.js';
2
+
3
+ export default mainConfig;
package/index.js CHANGED
@@ -1,20 +1,64 @@
1
- module.exports = {
2
- extends: ['entva', 'airbnb-typescript'],
3
- parserOptions: {
4
- parser: '@typescript-eslint/parser',
5
- project: './tsconfig.json',
6
- },
7
- rules: {
8
- '@typescript-eslint/member-delimiter-style': [
9
- 'error',
10
- {
11
- multiline: { delimiter: 'comma' },
12
- singleline: { delimiter: 'comma' },
1
+ import baseConfig from 'eslint-config-entva';
2
+ import tsConfig from 'eslint-config-entva-typescript-base';
3
+ import tsParser from '@typescript-eslint/parser';
4
+ import importPlugin from 'eslint-plugin-import';
5
+ import globals from 'globals';
6
+
7
+ export default [
8
+ ...baseConfig,
9
+ ...tsConfig,
10
+ {
11
+ files: ['**/*.{js,mjs,cjs,ts,tsx}'],
12
+ plugins: {
13
+ import: importPlugin,
14
+ },
15
+
16
+ languageOptions: {
17
+ globals: {
18
+ ...globals.browser,
19
+ ...globals.node,
20
+ },
21
+
22
+ parser: tsParser,
23
+ ecmaVersion: 'latest',
24
+ sourceType: 'module',
25
+
26
+ parserOptions: {
27
+ parser: '@typescript-eslint/parser',
28
+ project: './tsconfig.json',
29
+
30
+ ecmaFeatures: {
31
+ generators: false,
32
+ objectLiteralDuplicateProperties: false,
33
+ jsx: true,
34
+ },
35
+ },
36
+ },
37
+
38
+ settings: {
39
+ 'import/resolver': {
40
+ node: {
41
+ extensions: ['.mjs', '.js', '.json', '.jsx', '.ts', '.tsx', '.d.ts'],
42
+ },
43
+ },
44
+
45
+ 'import/parsers': {
46
+ '@typescript-eslint/parser': ['.ts', '.tsx', '.d.ts'],
47
+ },
48
+
49
+ 'import/extensions': ['.mjs', '.js', '.json', '.jsx', '.ts', '.tsx', '.d.ts'],
50
+ 'import/external-module-folders': ['node_modules', 'node_modules/@types'],
51
+ 'import/core-modules': [],
52
+ 'import/ignore': ['node_modules', '\\.(coffee|scss|css|less|hbs|svg|json)$'],
53
+
54
+ react: {
55
+ pragma: 'React',
56
+ version: 'detect',
13
57
  },
14
- ],
15
- '@typescript-eslint/no-explicit-any': [
16
- 'error',
17
- { ignoreRestArgs: true },
18
- ],
58
+
59
+ propWrapperFunctions: ['forbidExtraProps', 'exact', 'Object.freeze'],
60
+ },
61
+
62
+ rules: {},
19
63
  },
20
- };
64
+ ];
package/package.json CHANGED
@@ -4,15 +4,19 @@
4
4
  "author": "Max Degterev <max@degterev.me>",
5
5
  "license": "MIT",
6
6
  "readmeFilename": "README.md",
7
- "repository": "entva/styleguide",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/entva/styleguide"
10
+ },
8
11
  "bugs": "https://github.com/entva/styleguide/issues",
9
- "version": "1.2.0",
12
+ "version": "2.0.0",
10
13
  "keywords": [
11
14
  "linter",
12
15
  "config",
13
16
  "eslint",
14
17
  "typescript"
15
18
  ],
19
+ "type": "module",
16
20
  "main": "index.js",
17
21
  "scripts": {
18
22
  "reinstall": "rm -rf node_modules package-lock.json && npm install",
@@ -21,16 +25,17 @@
21
25
  "prepublishOnly": "npm test"
22
26
  },
23
27
  "devDependencies": {
24
- "react": "^18.2.0",
25
- "eslint": "^8.57.0"
28
+ "react": "^19.0.0",
29
+ "eslint": "^9.16.0"
26
30
  },
27
31
  "dependencies": {
28
- "eslint-config-entva": "^1.2.0",
29
- "@typescript-eslint/eslint-plugin": "^7.2.0",
30
- "@typescript-eslint/parser": "^7.2.0",
31
- "eslint-config-airbnb-typescript": "^18.0.0"
32
+ "@typescript-eslint/parser": "^8.18.0",
33
+ "eslint-config-entva": "^2.0.0",
34
+ "eslint-config-entva-typescript-base": "^2.0.0",
35
+ "eslint-plugin-import": "^2.31.0",
36
+ "globals": "^15.13.0"
32
37
  },
33
38
  "peerDependencies": {
34
- "eslint": "^8.x.x"
39
+ "eslint": "^9.x.x"
35
40
  }
36
41
  }