-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9b0338a
commit 3e03797
Showing
50 changed files
with
11,130 additions
and
26,461 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
node_modules/ | ||
parser/ | ||
*.css | ||
*.svg | ||
craco.config.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,77 @@ | ||
{ | ||
"env": { | ||
"browser": true, | ||
"es2021": true, | ||
"jest": true | ||
"env": { | ||
"browser": true, | ||
"es2021": true, | ||
"jest": true | ||
}, | ||
"extends": [ | ||
"react-app", | ||
"react-app/jest", | ||
"airbnb", | ||
"airbnb-typescript", | ||
"plugin:import/typescript", | ||
"plugin:prettier/recommended" | ||
], | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"ecmaFeatures": { | ||
"jsx": true | ||
}, | ||
"extends": [ | ||
"react-app", | ||
"react-app/jest", | ||
"airbnb", | ||
"airbnb-typescript", | ||
"plugin:import/typescript", | ||
"plugin:prettier/recommended" | ||
], | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"ecmaFeatures": { | ||
"jsx": true | ||
}, | ||
"ecmaVersion": "latest", | ||
"sourceType": "module", | ||
"project": "./tsconfig.json" | ||
}, | ||
"plugins": [ | ||
"react", | ||
"@typescript-eslint", | ||
"prettier" | ||
|
||
], | ||
"rules": { | ||
"react/react-in-jsx-scope": ["off"], | ||
"react/jsx-uses-react": ["off"], | ||
"react/jsx-props-no-spreading": ["warn"], | ||
"react/no-unescaped-entities": ["off"] | ||
"ecmaVersion": "latest", | ||
"sourceType": "module", | ||
"project": "./tsconfig.json" | ||
}, | ||
"plugins": ["react", "@typescript-eslint", "prettier", "simple-import-sort"], | ||
"rules": { | ||
"simple-import-sort/imports": "error", | ||
"simple-import-sort/exports": "error", | ||
"react/react-in-jsx-scope": ["off"], | ||
"react/jsx-uses-react": ["off"], | ||
"react/jsx-props-no-spreading": ["off"], | ||
"react/no-unescaped-entities": ["off"], | ||
"import/no-anonymous-default-export": ["off"], | ||
"import/export": ["off"], | ||
"import/prefer-default-export": ["off"], | ||
"react/require-default-props": ["off"], | ||
"react/prop-types": ["off"], | ||
"react/function-component-definition": [ | ||
2, | ||
{ | ||
"namedComponents": "arrow-function", | ||
"unnamedComponents": "arrow-function" | ||
} | ||
] | ||
}, | ||
"overrides": [ | ||
{ | ||
"files": ["**/*.js", "**/*.ts", "**/*.tsx"], | ||
"rules": { | ||
"simple-import-sort/imports": [ | ||
"error", | ||
{ | ||
"groups": [ | ||
// `react` first, | ||
["^react"], | ||
//then packages starting with a character | ||
["^[a-z]"], | ||
// Packages starting with `@` | ||
["^@core"], | ||
// Packages starting with `@` | ||
["^@"], | ||
// Packages starting with `~` | ||
["^~"], | ||
// Imports starting with `../` | ||
["^\\.\\.(?!/?$)", "^\\.\\./?$"], | ||
// Imports starting with `./` | ||
["^\\./(?=.*/)(?!/?$)", "^\\.(?!/?$)", "^\\./?$"], | ||
// Style imports | ||
["^.+\\.s?css$|^@+\\.s?css$"], | ||
// Side effect imports | ||
["^\\u0000"] | ||
] | ||
} | ||
] | ||
} | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "yarn" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
npx lint-staged | ||
yarn lint-staged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,5 +5,5 @@ | |
"trailingComma": "all", | ||
"printWidth": 80, | ||
"useTabs": false, | ||
"endOfLine":"auto" | ||
} | ||
"endOfLine": "auto" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
const CracoAlias = require("craco-alias"); | ||
|
||
module.exports = { | ||
plugins: [ | ||
{ | ||
plugin: CracoAlias, | ||
options: { | ||
source: "tsconfig", | ||
baseUrl: ".", | ||
tsConfigPath: "./tsconfig.path.json", | ||
}, | ||
}, | ||
], | ||
}; | ||
|
||
export {}; |
Oops, something went wrong.