Skip to content

Commit

Permalink
chore: configure prettier and eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
bernizhel committed Jul 13, 2023
1 parent 5601a29 commit ae7cf51
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 39 deletions.
9 changes: 9 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": ["react-app", "react-app/jest"],
"rules": {
"testing-library/prefer-screen-queries": "off",
"testing-library/no-debugging-utils": "off",
"@typescript-eslint/no-unused-vars": "error"
},
"ignorePatterns": "node_modules"
}
14 changes: 12 additions & 2 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
{
"tabWidth": 2,
"singleQuote": false
"tabWidth": 2,
"singleQuote": false,
"semi": true,
"trailingComma": "es5",
"overrides": [
{
"files": ["*.json", ".*rc"],
"options": {
"tabWidth": 4
}
}
]
}
2 changes: 1 addition & 1 deletion commitlint.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
extends: ['@commitlint/config-conventional'],
extends: ["@commitlint/config-conventional"],
};
15 changes: 3 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,9 @@
"eject": "react-scripts eject",
"test": "react-scripts test",
"e2e": "playwright test --project=chromium && playwright show-report",
"test-ci": "CI=true npm test -- --reporters=\"default\" --reporters=\"jest-html-reporter\" --reporters=\"jest-teamcity\""
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
],
"rules": {
"testing-library/prefer-screen-queries": "off",
"testing-library/no-debugging-utils": "off",
"@typescript-eslint/no-unused-vars": "off"
}
"test-ci": "CI=true npm test -- --reporters=\"default\" --reporters=\"jest-html-reporter\" --reporters=\"jest-teamcity\"",
"lint": "npx eslint '**/*.{js,ts,tsx,jsx}'",
"format": "npx pretty-quick --staged"
},
"browserslist": {
"production": [
Expand Down
42 changes: 18 additions & 24 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,20 @@
{
"compilerOptions": {
"target": "es5",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noFallthroughCasesInSwitch": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx"
},
"include": [
"src"
]
"compilerOptions": {
"target": "es5",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noFallthroughCasesInSwitch": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx"
},
"include": ["src"]
}

0 comments on commit ae7cf51

Please sign in to comment.