Skip to content

Commit

Permalink
Finish up configuring
Browse files Browse the repository at this point in the history
  • Loading branch information
Dayana Ilieva committed Mar 6, 2024
1 parent 52dc99e commit df8272a
Show file tree
Hide file tree
Showing 24 changed files with 856 additions and 343 deletions.
78 changes: 78 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"prettier"
],
"overrides": [
{
"env": {
"node": true
},
"files": [
".eslintrc.{js,cjs}"
],
"parserOptions": {
"sourceType": "script"
}
}
],
"settings": {
"react": {
"version": "detect"
}
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint",
"react",
"react-hooks",
"prettier"
],
"rules": {
"@typescript-eslint/no-unused-vars": "warn",
"react/react-in-jsx-scope": "off",
"spaced-comment": "error",
"quotes": [
2,
"single",
{
"avoidEscape": true
}
],
"no-duplicate-imports": "error",
"no-undefined": "error",
"space-unary-ops": [
2,
{
"words": true,
"nonwords": false
}
],
"curly": "error",
"default-case": "error",
"max-len": [
2,
{
"code": 120,
"ignoreComments": true,
"ignoreTrailingComments": true,
"ignoreUrls": true,
"ignoreStrings": true,
}
],
"object-curly-spacing": [
"error",
"always"
],
}
}
41 changes: 0 additions & 41 deletions .eslintrc.cjs

This file was deleted.

10 changes: 5 additions & 5 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"semi": false,
"semi": true,
"tabWidth": 2,
"printWidth": 100,
"singleQuote": true,
"printWidth": 120,
"trailingComma": "all",
"jsxSingleQuote": true,
"bracketSpacing": true
"bracketSpacing": true,
"quoteProps": "consistent",
"singleQuote": true
}
2 changes: 1 addition & 1 deletion __tests__/components/AppBase/index.spec.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import renderWithProviders from '../../../src/utils/storeMockWrapper';
import { LINK_CLICKED_KEY, STORING_CHECKER_INTERVAL } from '../../../src/config/env';
import { intent } from '../../../src/main';
import initialState from '../../../src/store/initialState';
import { initialConfig, serverHistoryMock, serverHistoryMockWithEmailIntent, serverHistoryMockWithLink, serverHistoryMockWithPaymentIntent, streamMocks} from '../../../src/chatMocks';
import { initialConfig, serverHistoryMock, serverHistoryMockWithEmailIntent, serverHistoryMockWithLink, serverHistoryMockWithPaymentIntent, streamMocks } from '../../../src/chatMocks';

const actualWindow = window.location;

Expand Down
Loading

0 comments on commit df8272a

Please sign in to comment.