Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

Commit

Permalink
Warn on no-empty-interface-rule (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
WojtekTheWebDev authored Apr 4, 2024
1 parent 29d83da commit 50dd995
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 40 deletions.
5 changes: 5 additions & 0 deletions .changeset/soft-chicken-grin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@vue-storefront/eslint-config-integrations": patch
---

Warn on no-empty-interface rule
81 changes: 41 additions & 40 deletions packages/integrations-eslint/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,48 +3,48 @@ module.exports = {
browser: true,
es2021: true,
node: true,
jest: true
jest: true,
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'airbnb-base',
'plugin:prettier/recommended'
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"airbnb-base",
"plugin:prettier/recommended",
],
parser: '@typescript-eslint/parser',
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: 12,
sourceType: 'module'
sourceType: "module",
},
plugins: ['@typescript-eslint', 'prettier'],
plugins: ["@typescript-eslint", "prettier"],
rules: {
'prettier/prettier': 'error',
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': ['error'],
'@typescript-eslint/ban-types': 'warn',
'no-underscore-dangle': 'off',
'import/prefer-default-export': 'off',
'import/extensions': [
'error',
'ignorePackages',
"prettier/prettier": "error",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["error"],
"@typescript-eslint/ban-types": "warn",
"no-underscore-dangle": "off",
"import/prefer-default-export": "off",
"import/extensions": [
"error",
"ignorePackages",
{
js: 'never',
ts: 'never'
}
js: "never",
ts: "never",
},
],
'import/no-extraneous-dependencies': 'warn',
'@typescript-eslint/no-non-null-assertion': 'warn',
'no-param-reassign': 'warn',
'no-shadow': 'warn',
'no-use-before-define': 'warn',
camelcase: 'warn',
'consistent-return': 'warn',
'default-param-last': 'warn',
'no-return-await': 'off',
'no-throw-literal': 'warn',
"import/no-extraneous-dependencies": "warn",
"@typescript-eslint/no-non-null-assertion": "warn",
"no-param-reassign": "warn",
"no-shadow": "warn",
"no-use-before-define": "warn",
camelcase: "warn",
"consistent-return": "warn",
"default-param-last": "warn",
"no-return-await": "off",
"no-throw-literal": "warn",
"@typescript-eslint/no-explicit-any": "off",
'no-useless-constructor': 'off',
'@typescript-eslint/no-useless-constructor': 'warn',
"no-useless-constructor": "off",
"@typescript-eslint/no-useless-constructor": "warn",
"no-undef": "warn",
"no-empty-function": "off",
"@typescript-eslint/no-empty-function": "warn",
Expand All @@ -54,20 +54,21 @@ module.exports = {
"@typescript-eslint/no-var-requires": "warn",
"no-restricted-syntax": "off",
"no-await-in-loop": "off",
"@typescript-eslint/no-empty-interface": "warn",
},
settings: {
'import/resolver': {
"import/resolver": {
node: {
extensions: ['.js', '.ts']
}
}
extensions: [".js", ".ts"],
},
},
},
overrides: [
{
files: ["*.ts", "*.tsx"],
rules: {
"no-dupe-class-members": "off"
}
}
]
"no-dupe-class-members": "off",
},
},
],
};

0 comments on commit 50dd995

Please sign in to comment.