mirror of
https://github.com/ToolJet/ToolJet
synced 2026-04-21 21:47:17 +00:00
* started working on node upgrade to 18.18.2 * testing ci * updated ci node version * updated action code * deleted all package-lock.json files * deleted and ovverrided some packages * deleted and fixed server & frontend vulnerabilities * updated firestore version * fix: ws type issue * fix: upgraded lerna version * regenerated package-lock.json files again * regenerated marketplace lock file * updated node version in other ci and docker files * update: lock file plugin side * updated the npm version in docker & ci files * removed unused imports from events file * removed dependency-review action * updated some packages * tried to go with current node-module of jest. had to upgrade * fix: deprecated function usage - ts-jest * fix: server directory lint issues * fixed login page issue after router-dom upgrade * updated import/no-unresolved rule to ignore import errors of react-loading-skeleton, react-spring packages * fix: cypress node version & package-lock issue * regenerated cli package-lock.json * fix: new webpack version might cause runtime issues (had issues with enterprise). lets use old version only * fix: form-data docker issue * removed comment
86 lines
2.1 KiB
JavaScript
86 lines
2.1 KiB
JavaScript
module.exports = {
|
|
root: true,
|
|
overrides: [
|
|
{
|
|
files: ['**/*.js', '**/*.jsx'],
|
|
env: {
|
|
browser: true,
|
|
amd: true,
|
|
es2021: true,
|
|
node: true,
|
|
'jest/globals': true,
|
|
},
|
|
extends: [
|
|
'eslint:recommended',
|
|
'plugin:react/recommended',
|
|
'plugin:react-hooks/recommended',
|
|
'plugin:import/errors',
|
|
'plugin:import/warnings',
|
|
'plugin:prettier/recommended',
|
|
],
|
|
parser: '@babel/eslint-parser',
|
|
parserOptions: {
|
|
requireConfigFile: false,
|
|
babelOptions: {
|
|
configFile: __dirname + '/babel.config.js',
|
|
},
|
|
ecmaFeatures: {
|
|
jsx: true,
|
|
},
|
|
ecmaVersion: 12,
|
|
sourceType: 'module',
|
|
},
|
|
plugins: ['react', 'prettier', 'jest'],
|
|
rules: {
|
|
'prettier/prettier': [
|
|
'error',
|
|
{
|
|
semi: true,
|
|
trailingComma: 'es5',
|
|
printWidth: 120,
|
|
singleQuote: true,
|
|
arrowParens: 'always',
|
|
proseWrap: 'preserve',
|
|
},
|
|
],
|
|
'react/prop-types': 0,
|
|
'react/display-name': 'off',
|
|
'no-unused-vars': [
|
|
'warn',
|
|
{
|
|
argsIgnorePattern: '^_',
|
|
varsIgnorePattern: '^_',
|
|
},
|
|
],
|
|
'react/no-deprecated': 0,
|
|
'no-prototype-builtins': 0,
|
|
'jest/no-disabled-tests': 'warn',
|
|
'jest/no-focused-tests': 'error',
|
|
'jest/no-identical-title': 'error',
|
|
'jest/prefer-to-have-length': 'warn',
|
|
'jest/valid-expect': 'error',
|
|
'import/no-unresolved': [
|
|
'error',
|
|
{
|
|
ignore: ['^@/', 'react-hot-toast', 'react-i18next', 'react-loading-skeleton', 'react-spring'],
|
|
},
|
|
],
|
|
'react/no-unknown-property': 'off',
|
|
},
|
|
settings: {
|
|
react: {
|
|
version: 'detect',
|
|
},
|
|
'import/resolver': 'webpack',
|
|
},
|
|
globals: {
|
|
path: true,
|
|
fetch: true,
|
|
process: true,
|
|
module: true,
|
|
__dirname: true,
|
|
},
|
|
},
|
|
],
|
|
extends: ['plugin:storybook/recommended'],
|
|
};
|