Skip to content

Commit

Permalink
Merge pull request #392 from TykTechnologies/modules-updates
Browse files Browse the repository at this point in the history
modules updates
  • Loading branch information
ifrim authored Nov 6, 2024
2 parents 4750aa5 + 536813a commit ba4573a
Show file tree
Hide file tree
Showing 79 changed files with 1,368 additions and 1,720 deletions.
40 changes: 0 additions & 40 deletions .eslintrc

This file was deleted.

68 changes: 68 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
import globals from 'globals';
import reactRecommended from 'eslint-plugin-react/configs/recommended.js';
import reactJSXRuntime from 'eslint-plugin-react/configs/jsx-runtime.js';
import reactHooks from 'eslint-plugin-react-hooks';
import pluginCypress from 'eslint-plugin-cypress/flat'
import jsxA11y from 'eslint-plugin-jsx-a11y';
import importPlugin from 'eslint-plugin-import';
import js from '@eslint/js';

export default [
js.configs.recommended,
reactJSXRuntime,
reactRecommended,
jsxA11y.flatConfigs.recommended,
importPlugin.flatConfigs.recommended,
{
settings: {
react: {
version: 'detect'
}
},
languageOptions: {
ecmaVersion: 'latest',
parserOptions: {
ecmaFeatures: {
jsx: true
}
},
globals: {
...globals.browser,
...globals.node,
__webpack_public_path__: 'readonly',
it: 'readonly',
cy: 'readonly',
describe: 'readonly',
expect: 'readonly',
beforeEach: 'readonly',
afterEach: 'readonly',
Cypress: 'readonly',
},
},
plugins: {
'react-hooks': reactHooks,
cypress: pluginCypress,
},
rules: {
'no-use-before-define': ['error', { 'functions': false }],
'react-hooks/rules-of-hooks': 'error',
'react/jsx-filename-extension': [1, { 'extensions': ['.js', '.jsx'] }],
'react/jsx-props-no-spreading': 'off',
'react/require-default-props': 'off',
'jsx-a11y/label-has-for': 'off',
'jsx-a11y/label-has-associated-control': 'off',
'jsx-a11y/no-autofocus': 'off',
'jsx-a11y/no-noninteractive-element-interactions': 'off',
'jsx-a11y/anchor-is-valid': 'off',
'no-console': 'off',
'no-restricted-syntax': ['error', 'ForInStatement', 'LabeledStatement', 'WithStatement'],
'no-unused-expressions': 'off',
'import/no-extraneous-dependencies': 'off',
'import/prefer-default-export': 'off',
'indent': ['error', 2, {
'ignoredNodes': ['TemplateLiteral'],
'SwitchCase': 1
}],
},
},
];
3 changes: 1 addition & 2 deletions lib/index.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/index.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/index.js.map

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions lib/tyk-ui.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/tyk-ui.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/tyk-ui.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/tyk-ui.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit ba4573a

Please sign in to comment.