@fullstacksjs/eslint-config 10.3.4 → 10.4.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 (4) hide show
  1. package/init.js +1 -1
  2. package/jest.js +2 -1
  3. package/next.js +20 -0
  4. package/package.json +19 -19
package/init.js CHANGED
@@ -43,13 +43,13 @@ function init(opts = {}) {
43
43
  );
44
44
 
45
45
  if (opts.typescript?.parserProject) {
46
+ config.extends.push(require.resolve('./typecheck.js'));
46
47
  config.parserOptions = merge(config.parserOptions, {
47
48
  project: opts.typescript.parserProject,
48
49
  });
49
50
  }
50
51
 
51
52
  if (opts.typescript?.resolverProject) {
52
- config.extends.push(require.resolve('./typecheck.js'));
53
53
  config.settings = merge(config.settings, {
54
54
  'import/resolver': {
55
55
  typescript: {
package/jest.js CHANGED
@@ -23,6 +23,7 @@ module.exports = {
23
23
  'jest/no-commented-out-tests': 'warn',
24
24
  'jest/no-conditional-expect': 'error',
25
25
  'jest/no-conditional-in-test': 'error',
26
+ 'jest/no-confusing-set-timeout': 'warn',
26
27
  'jest/no-done-callback': 'warn',
27
28
  'jest/no-expect-resolves': 'off',
28
29
  'jest/no-export': 'error',
@@ -44,8 +45,8 @@ module.exports = {
44
45
  'jest/prefer-expect-resolves': 'warn',
45
46
  'jest/prefer-hooks-on-top': 'error',
46
47
  'jest/prefer-inline-snapshots': 'off',
47
- 'jest/prefer-mock-promise-shorthand': 'warn',
48
48
  'jest/prefer-lowercase-title': 'off',
49
+ 'jest/prefer-mock-promise-shorthand': 'warn',
49
50
  'jest/prefer-snapshot-hint': 'warn',
50
51
  'jest/prefer-spy-on': 'off',
51
52
  'jest/prefer-strict-equal': 'off',
package/next.js CHANGED
@@ -3,5 +3,25 @@ module.exports = {
3
3
  extends: ['plugin:@next/next/core-web-vitals'],
4
4
  rules: {
5
5
  'react/function-component-definition': 'off',
6
+ '@next/next/google-font-display': 'warn',
7
+ '@next/next/google-font-preconnect': 'warn',
8
+ '@next/next/inline-script-id': 'warn',
9
+ '@next/next/next-script-for-ga': 'warn',
10
+ '@next/next/no-assign-module-variable': 'warn',
11
+ '@next/next/no-async-client-component': 'warn',
12
+ '@next/next/no-before-interactive-script-outside-document': 'warn',
13
+ '@next/next/no-css-tags': 'warn',
14
+ '@next/next/no-document-import-in-page': 'warn',
15
+ '@next/next/no-duplicate-head': 'warn',
16
+ '@next/next/no-head-element': 'warn',
17
+ '@next/next/no-head-import-in-document': 'warn',
18
+ '@next/next/no-html-link-for-pages': 'warn',
19
+ '@next/next/no-img-element': 'warn',
20
+ '@next/next/no-page-custom-font': 'warn',
21
+ '@next/next/no-script-component-in-head': 'warn',
22
+ '@next/next/no-styled-jsx-in-document': 'warn',
23
+ '@next/next/no-sync-scripts': 'warn',
24
+ '@next/next/no-title-in-document-head': 'warn',
25
+ '@next/next/no-unwanted-polyfillio': 'warn',
6
26
  },
7
27
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fullstacksjs/eslint-config",
3
- "version": "10.3.4",
3
+ "version": "10.4.0",
4
4
  "license": "MIT",
5
5
  "author": "fullstacks <fullstacksjs@gmail.com>",
6
6
  "description": "fullstacks eslint config",
@@ -49,44 +49,44 @@
49
49
  },
50
50
  "main": "index.js",
51
51
  "dependencies": {
52
+ "@cspell/eslint-plugin": "7.3.8",
52
53
  "@graphql-eslint/eslint-plugin": "3.20.1",
53
- "@typescript-eslint/eslint-plugin": "6.6.0",
54
- "@typescript-eslint/parser": "6.6.0",
54
+ "@typescript-eslint/eslint-plugin": "6.9.0",
55
+ "@typescript-eslint/parser": "6.9.0",
55
56
  "deepmerge": "4.3.1",
56
- "eslint-config-next": "13.4.19",
57
+ "eslint-config-next": "14.0.0",
57
58
  "eslint-config-prettier": "9.0.0",
58
- "eslint-import-resolver-typescript": "3.6.0",
59
- "eslint-plugin-cypress": "2.14.0",
59
+ "eslint-import-resolver-typescript": "3.6.1",
60
+ "eslint-plugin-cypress": "2.15.1",
60
61
  "eslint-plugin-fp": "2.3.0",
61
- "eslint-plugin-import": "2.28.1",
62
- "eslint-plugin-jest": "27.2.3",
62
+ "eslint-plugin-import": "2.29.0",
63
63
  "eslint-plugin-jest-formatting": "3.1.0",
64
+ "eslint-plugin-jest": "27.6.0",
64
65
  "eslint-plugin-jsx-a11y": "6.7.1",
65
66
  "eslint-plugin-node": "11.1.0",
66
- "eslint-plugin-prettier": "5.0.0",
67
+ "eslint-plugin-prettier": "5.0.1",
67
68
  "eslint-plugin-promise": "6.1.1",
68
- "eslint-plugin-react": "7.33.2",
69
69
  "eslint-plugin-react-hooks": "4.6.0",
70
+ "eslint-plugin-react": "7.33.2",
70
71
  "eslint-plugin-simple-import-sort": "10.0.0",
71
- "eslint-plugin-storybook": "0.6.13",
72
+ "eslint-plugin-storybook": "0.6.15",
72
73
  "eslint-plugin-tailwindcss": "3.13.0",
73
74
  "read-pkg-up": "7.0.1"
74
75
  },
75
76
  "devDependencies": {
76
- "@cspell/eslint-plugin": "7.3.7",
77
- "@semantic-release/github": "9.0.4",
78
- "@semantic-release/npm": "10.0.5",
79
- "@semantic-release/release-notes-generator": "11.0.7",
80
- "cspell": "7.3.2",
81
- "eslint": "8.48.0",
77
+ "@semantic-release/github": "9.2.1",
78
+ "@semantic-release/npm": "11.0.0",
79
+ "@semantic-release/release-notes-generator": "12.0.0",
80
+ "cspell": "7.3.8",
81
+ "eslint": "8.52.0",
82
82
  "eslint-find-rules": "4.1.0",
83
83
  "husky": "8.0.3",
84
- "lint-staged": "14.0.1",
84
+ "lint-staged": "15.0.2",
85
85
  "np": "8.0.4",
86
86
  "npm-run-all": "4.1.5",
87
87
  "pinst": "3.0.0",
88
88
  "prettier": "3.0.3",
89
- "semantic-release": "21.1.1",
89
+ "semantic-release": "22.0.5",
90
90
  "typescript": "5.2.2"
91
91
  },
92
92
  "peerDependencies": {