@shopgate/eslint-config 7.32.1 → 7.32.2-alpha.10

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/package.json CHANGED
@@ -1,18 +1,20 @@
1
1
  {
2
2
  "name": "@shopgate/eslint-config",
3
- "version": "7.32.1",
3
+ "version": "7.32.2-alpha.10",
4
4
  "description": "Eslint configuration for the Shopgate Connect projects.",
5
5
  "author": "Shopgate <support@shopgate.com>",
6
6
  "license": "Apache-2.0",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/shopgate/pwa.git",
10
+ "directory": "utils/eslint-config"
11
+ },
7
12
  "main": "./ruleset/index.js",
8
13
  "dependencies": {
9
14
  "@typescript-eslint/eslint-plugin": "^5.62.0",
10
15
  "@typescript-eslint/parser": "^5.62.0",
11
16
  "eslint-config-airbnb": "^19.0.4",
12
- "eslint-import-resolver-babel-module": "^5.3.2",
13
- "eslint-import-resolver-exports": "^1.0.0-beta.5",
14
17
  "eslint-import-resolver-typescript": "3.6.1",
15
- "eslint-plugin-cypress": "^2.6.1",
16
18
  "eslint-plugin-eslint-comments": "^3.2.0",
17
19
  "eslint-plugin-extra-rules": "~0.0.0-development",
18
20
  "eslint-plugin-import": "^2.32.0",
package/ruleset/extras.js CHANGED
@@ -1,12 +1,10 @@
1
1
  module.exports = {
2
2
  extends: [
3
3
  'plugin:eslint-comments/recommended',
4
- 'plugin:cypress/recommended',
5
4
  ],
6
5
  plugins: [
7
6
  'extra-rules',
8
7
  'json',
9
- 'cypress',
10
8
  'tss-unused-classes',
11
9
  ],
12
10
  rules: {
@@ -19,5 +17,17 @@ module.exports = {
19
17
  'eslint-comments/no-unused-disable': 'error',
20
18
  'eslint-comments/no-unused-enable': 'error',
21
19
  'tss-unused-classes/unused-classes': 'warn',
20
+ 'no-restricted-imports': ['warn', {
21
+ paths: [
22
+ {
23
+ name: '@shopgate/pwa-ui-shared/AddToCartButton/style',
24
+ message: 'Deprecated and will be removed. Use AddToCartButton from @shopgate/engage/components (its successCount prop plays the checkmark for adds outside the click) or style the button with makeStyles from @shopgate/engage/styles.',
25
+ },
26
+ {
27
+ name: 'glamor',
28
+ message: 'glamor is deprecated and will be removed. Write styles with makeStyles from @shopgate/engage/styles.',
29
+ },
30
+ ],
31
+ }],
22
32
  },
23
33
  };
package/ruleset/main.js CHANGED
@@ -5,7 +5,6 @@ module.exports = {
5
5
  node: true,
6
6
  jest: true,
7
7
  mocha: true,
8
- 'cypress/globals': true,
9
8
  },
10
9
  parserOptions: {
11
10
  ecmaVersion: 2022,
@@ -207,7 +206,6 @@ module.exports = {
207
206
  '.tsx',
208
207
  ],
209
208
  'import/resolver': {
210
- exports: {},
211
209
  node: { extensions: ['.js', '.jsx', '.ts', '.tsx', '.d.ts'] },
212
210
  typescript: {
213
211
  alwaysTryTypes: true,
@@ -3,6 +3,9 @@ module.exports = {
3
3
  {
4
4
  files: ['**/*.ts', '**/*.tsx'],
5
5
  parser: '@typescript-eslint/parser',
6
+ parserOptions: {
7
+ warnOnUnsupportedTypeScriptVersion: false,
8
+ },
6
9
  plugins: ['@typescript-eslint', 'jsdoc'],
7
10
  extends: [
8
11
  'plugin:@typescript-eslint/recommended',