-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
83 changed files
with
2,490 additions
and
2,987 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,99 @@ | ||
module.exports = { | ||
root: true, | ||
extends: ['plugin:prettier/recommended'], | ||
plugins: ['@nx', 'prefer-arrow', 'simple-import-sort', 'unused-imports'], | ||
rules: { | ||
'func-style': ['error', 'declaration', { allowArrowFunctions: true }], | ||
'no-console': ['warn', { allow: ['group', 'groupCollapsed', 'groupEnd'] }], | ||
'no-unused-vars': 'off', | ||
'no-control-regex': 0, | ||
'no-undef': 'off', | ||
|
||
'@nx/enforce-module-boundaries': [ | ||
'error', | ||
{ | ||
enforceBuildableLibDependency: true, | ||
allow: [], | ||
depConstraints: [ | ||
{ | ||
sourceTag: '*', | ||
onlyDependOnLibsWithTags: ['*'], | ||
}, | ||
], | ||
}, | ||
], | ||
|
||
'prefer-arrow/prefer-arrow-functions': [ | ||
'error', | ||
{ | ||
disallowPrototype: true, | ||
singleReturnOnly: false, | ||
classPropertiesAllowed: false, | ||
}, | ||
], | ||
|
||
'simple-import-sort/imports': [ | ||
'error', | ||
{ | ||
groups: [ | ||
['^react', '^@?\\w'], | ||
['^(@|~)(/.*|$)'], | ||
['^\\u0000'], | ||
['^\\.\\.(?!/?$)', '^\\.\\./?$'], | ||
['^\\./(?=.*/)(?!/?$)', '^\\.(?!/?$)', '^\\./?$'], | ||
['^.+\\.?(css)$'], | ||
], | ||
}, | ||
], | ||
'simple-import-sort/exports': 'error', | ||
|
||
'unused-imports/no-unused-imports': 'warn', | ||
'unused-imports/no-unused-vars': [ | ||
'warn', | ||
{ | ||
vars: 'all', | ||
varsIgnorePattern: '^_', | ||
args: 'after-used', | ||
argsIgnorePattern: '^_', | ||
}, | ||
], | ||
}, | ||
overrides: [ | ||
{ | ||
files: ['**/*.ts', '**/*.tsx'], | ||
extends: ['plugin:@nx/typescript'], | ||
rules: { | ||
'@typescript-eslint/ban-ts-comment': 'error', | ||
'@typescript-eslint/interface-name-prefix': 'off', | ||
'@typescript-eslint/explicit-function-return-type': 'off', | ||
'@typescript-eslint/explicit-module-boundary-types': 'off', | ||
'@typescript-eslint/no-explicit-any': 'off', | ||
'@typescript-eslint/no-unused-vars': [ | ||
'warn', | ||
{ | ||
vars: 'all', | ||
varsIgnorePattern: '^_', | ||
args: 'after-used', | ||
argsIgnorePattern: '^_', | ||
}, | ||
], | ||
'@typescript-eslint/consistent-type-imports': [ | ||
'error', | ||
{ prefer: 'no-type-imports' }, | ||
], | ||
}, | ||
}, | ||
{ | ||
files: ['*.js', '*.jsx'], | ||
extends: ['plugin:@nx/javascript'], | ||
rules: {}, | ||
}, | ||
{ | ||
files: ['*.spec.@(ts|tsx|js|jsx)', '*.test.@(ts|tsx|js|jsx)'], | ||
env: { | ||
jest: true, | ||
}, | ||
rules: {}, | ||
}, | ||
], | ||
}; |
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 |
---|---|---|
|
@@ -15,4 +15,6 @@ | |
!.yarn/plugins | ||
!.yarn/releases | ||
!.yarn/sdks | ||
!.yarn/versions | ||
!.yarn/versions | ||
|
||
coverage |
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,4 @@ | ||
# Add files here to ignore them from prettier formatting | ||
/dist | ||
/coverage | ||
/.nx/cache |
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 |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
"singleQuote": true, | ||
"trailingComma": "all", | ||
"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 |
---|---|---|
@@ -1,17 +1,19 @@ | ||
{ | ||
"recommendations": [ | ||
"ms-vscode-remote.remote-containers", | ||
"styled-components.vscode-styled-components", | ||
"arcanis.vscode-zipfs", | ||
"dbaeumer.vscode-eslint", | ||
"unifiedjs.vscode-mdx", | ||
"ms-vscode.makefile-tools", | ||
"esbenp.prettier-vscode", | ||
"GraphQL.vscode-graphql", | ||
"yoavbls.pretty-ts-errors", | ||
"figma.figma-vscode-extension", | ||
"firsttris.vscode-jest-runner", | ||
"graphql.vscode-graphql-syntax", | ||
"GraphQL.vscode-graphql", | ||
"graphql.vscode-graphql", | ||
"figma.figma-vscode-extension", | ||
"ms-vscode-remote.remote-containers", | ||
"ms-vscode.makefile-tools", | ||
"nrwl.angular-console", | ||
"styled-components.vscode-styled-components", | ||
"unifiedjs.vscode-mdx", | ||
"xyc.vscode-mdx-preview", | ||
"arcanis.vscode-zipfs" | ||
"yoavbls.pretty-ts-errors" | ||
] | ||
} |
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
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 @@ | ||
import { getJestProjects } from '@nx/jest'; | ||
|
||
export default { | ||
projects: getJestProjects(), | ||
}; |
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,3 @@ | ||
const nxPreset = require('@nx/jest/preset').default; | ||
|
||
module.exports = { ...nxPreset }; |
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
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Oops, something went wrong.