Skip to content
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules/**
96 changes: 92 additions & 4 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,103 @@
{
"extends": [
"cozy-app/react"
],
"extends": ["cozy-app/react"],
"rules": {
"no-console": 1
"no-console": 1,
"no-param-reassign": "error",
"react-hooks/exhaustive-deps": "error",
"import/order": [
"warn",
{
"alphabetize": { "order": "asc" },
"groups": [
"builtin",
"external",
"internal",
["parent", "sibling", "index"]
],
"pathGroups": [
{
"pattern": "{cozy-*,cozy-*/**}",
"group": "internal",
"position": "after"
},
{
"pattern": "**/*.styl",
"group": "index",
"position": "after"
},
{
"pattern": "test/**/*",
"group": "index"
},
{
"pattern": "lib/**/*",
"group": "index"
},
{
"pattern": "hooks/**/*",
"group": "index"
},
{
"pattern": "components/**/*",
"group": "index"
},
{
"pattern": "modules/**/*",
"group": "index"
},
{
"pattern": "assets/**/*",
"group": "index"
},
{
"pattern": "models/**/*",
"group": "index"
},
{
"pattern": "config/**/*",
"group": "index"
},
{
"pattern": "constants/**/*",
"group": "index"
},
{
"pattern": "config/**/*",
"group": "index"
},
{
"pattern": "locales/**/*",
"group": "index"
},
{
"pattern": "queries",
"group": "index"
}
],
"distinctGroup": true,
"pathGroupsExcludedImportTypes": ["{cozy-*,cozy-*/**}"],
"newlines-between": "always",
"warnOnUnassignedImports": true
}
]
},
"globals": {
"fixture": false
},
"settings": {
"react": {
"version": "detect"
}
},
"overrides": [
{
"files": ["*.spec.js[x]"],
"rules": {
"react/display-name": "off"
}
}

],
"parserOptions": {
"project": "tsconfig.json"
}
Expand Down
19 changes: 17 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
},
"homepage": "https://github.com/cozy/cozy-settings#readme",
"devDependencies": {
"@babel/eslint-parser": "7.23.3",
"@babel/plugin-syntax-import-meta": "7.10.4",
"@babel/plugin-syntax-top-level-await": "7.14.5",
"@babel/polyfill": "^7.10.4",
"@rsbuild/core": "^1.1.6",
"@swc/core": "^1.10.7",
Expand All @@ -36,18 +39,30 @@
"@testing-library/user-event": "14.5.1",
"@types/react-input-mask": "3.0.2",
"@types/ua-parser-js": "0.7.37",
"babel-preset-cozy-app": "2.0.3",
"@typescript-eslint/eslint-plugin": "6.21.0",
"@typescript-eslint/parser": "6.21.0",
"babel-preset-cozy-app": "2.1.0",
"browser-resolve": "2.0.0",
"bundlemon": "3.1.0",
"cozy-app-publish": "0.34.0",
"eslint-config-cozy-app": "5.1.0",
"eslint": "8.56.0",
"eslint-config-cozy-app": "6.1.0",
"eslint-config-prettier": "8.10.0",
"eslint-plugin-import": "2.29.1",
"eslint-plugin-jest": "27.6.0",
"eslint-plugin-prettier": "4.2.1",
"eslint-plugin-promise": "6.1.1",
"eslint-plugin-react": "7.33.2",
"eslint-plugin-react-hooks": "4.6.0",
"jest": "28.1.3",
"jest-environment-jsdom": "28.1.3",
"npm-run-all": "4.1.5",
"prettier": "2.8.8",
"react-hot-loader": "4.13.0",
"react-test-renderer": "18.2.0",
"rsbuild-config-cozy-app": "^0.5.0",
"swc_mut_cjs_exports": "^8.0.1",
"typescript": "5.5.2",
"typescript-plugin-css-modules": "3.4.0"
},
"dependencies": {
Expand Down
Loading