Skip to content

Commit

Permalink
remove eslint-plugin-rulesdir
Browse files Browse the repository at this point in the history
  • Loading branch information
tvikito committed Nov 1, 2023
1 parent 893de8b commit c229442
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 53 deletions.
13 changes: 1 addition & 12 deletions storefront/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
const rulesDirPlugin = require('eslint-plugin-rulesdir');
rulesDirPlugin.RULES_DIR = 'eslint-rules';

module.exports = {
env: {
browser: true,
Expand Down Expand Up @@ -39,7 +36,7 @@ module.exports = {
tsconfigRootDir: __dirname,
project: ['tsconfig.json'], // Specify it only for TypeScript files
},
plugins: ['react', 'unused-imports', '@typescript-eslint', 'react-hooks', 'no-relative-import-paths', 'rulesdir'],
plugins: ['react', 'unused-imports', '@typescript-eslint', 'react-hooks', 'no-relative-import-paths'],
rules: {
'array-callback-return': 'error',
'block-scoped-var': 'error',
Expand Down Expand Up @@ -136,14 +133,6 @@ module.exports = {
{ "allowSameFolder": true }
],
},
"overrides": [
{
"files": ["components/**/*.tsx",],
"rules": {
'rulesdir/no-helpers-are-exported-from-component-file': 'error',
}
}
],
settings: {
react: {
version: 'detect',
Expand Down

This file was deleted.

1 change: 0 additions & 1 deletion storefront/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@
"eslint-plugin-no-relative-import-paths": "1.5.2",
"eslint-plugin-react": "7.32.2",
"eslint-plugin-react-hooks": "4.6.0",
"eslint-plugin-rulesdir": "0.2.2",
"eslint-plugin-unused-imports": "2.0.0",
"graphql-markdown": "7.0.0",
"i18next-parser": "5.0.0",
Expand Down
8 changes: 0 additions & 8 deletions storefront/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c229442

Please sign in to comment.