mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-05 22:38:48 +00:00
63 lines
1.5 KiB
JSON
63 lines
1.5 KiB
JSON
{
|
|
"env": {
|
|
"browser": true,
|
|
"amd": true,
|
|
"es2021": 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",
|
|
"parserOptions": {
|
|
"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"
|
|
},
|
|
"settings": {
|
|
"react": {
|
|
"version": "detect"
|
|
},
|
|
"import/resolver": "webpack"
|
|
},
|
|
"globals": {
|
|
"fetch": true,
|
|
"process": true,
|
|
"module": true,
|
|
"__dirname": true
|
|
}
|
|
}
|