-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from pct-org/improvements
Improvements
- Loading branch information
Showing
210 changed files
with
6,825 additions
and
8,525 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
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,66 +1,54 @@ | ||
{ | ||
"root": true, | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"ecmaVersion": 2018, | ||
"sourceType": "module", | ||
"project": "./tsconfig.*?.json" | ||
}, | ||
"ignorePatterns": [ | ||
"**/*" | ||
], | ||
"plugins": [ | ||
"@typescript-eslint", | ||
"@nrwl/nx" | ||
], | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/eslint-recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"prettier", | ||
"prettier/@typescript-eslint" | ||
], | ||
"rules": { | ||
"@typescript-eslint/no-inferrable-types": "off", | ||
"@typescript-eslint/explicit-member-accessibility": "off", | ||
"@typescript-eslint/explicit-module-boundary-types": "off", | ||
"@typescript-eslint/explicit-function-return-type": "off", | ||
"@typescript-eslint/no-parameter-properties": "off", | ||
"@nrwl/nx/enforce-module-boundaries": [ | ||
"error", | ||
{ | ||
"enforceBuildableLibDependency": true, | ||
"allow": [], | ||
"depConstraints": [ | ||
"ignorePatterns": ["**/*"], | ||
"plugins": ["@nrwl/nx"], | ||
"overrides": [ | ||
{ | ||
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"], | ||
"rules": { | ||
"semi": ["warn", "never"], | ||
"@nrwl/nx/enforce-module-boundaries": [ | ||
"error", | ||
{ | ||
"sourceTag": "*", | ||
"onlyDependOnLibsWithTags": [ | ||
"*" | ||
"enforceBuildableLibDependency": true, | ||
"allow": ["@danone-global/internal/react/testing"], | ||
"depConstraints": [ | ||
{ | ||
"sourceTag": "*", | ||
"onlyDependOnLibsWithTags": ["*"] | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
"overrides": [ | ||
}, | ||
{ | ||
"files": [ | ||
"**/*.spec.js", | ||
"**/*.spec.jsx", | ||
"**/*.spec.ts", | ||
"**/*.spec.tsx" | ||
], | ||
"env": { | ||
"jest": true | ||
"files": ["*.ts", "*.tsx"], | ||
"extends": ["plugin:@nrwl/nx/typescript"], | ||
"parserOptions": { | ||
"project": "./tsconfig.*?.json" | ||
}, | ||
"rules": { | ||
"no-unneeded-ternary": ["error"], | ||
"no-nested-ternary": ["error"], | ||
"multiline-ternary": ["error", "always-multiline"], | ||
"operator-linebreak": ["error", "before"] | ||
} | ||
}, | ||
{ | ||
"files": [ | ||
"*.tsx" | ||
], | ||
"files": ["*.tsx"], | ||
"rules": { | ||
"@typescript-eslint/no-unused-vars": "off" | ||
"react/jsx-max-props-per-line": [ | ||
"warn", | ||
{ "maximum": 1, "when": "always" } | ||
], | ||
"react/jsx-first-prop-new-line": ["warn", "multiline"], | ||
"react/jsx-indent-props": ["warn", 2] | ||
} | ||
}, | ||
{ | ||
"files": ["*.js", "*.jsx"], | ||
"extends": ["plugin:@nrwl/nx/javascript"] | ||
} | ||
] | ||
} |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
{ | ||
"singleQuote": true, | ||
"trailingComma": "all" | ||
} | ||
"trailingComma": "none", | ||
"semi": false | ||
} |
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 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,49 @@ | ||
{ | ||
"root": "apps/api", | ||
"sourceRoot": "apps/api/src", | ||
"projectType": "application", | ||
"prefix": "api", | ||
"generators": {}, | ||
"targets": { | ||
"build": { | ||
"executor": "@nrwl/node:build", | ||
"options": { | ||
"outputPath": "dist/apps/api", | ||
"main": "apps/api/src/main.ts", | ||
"tsConfig": "apps/api/tsconfig.app.json" | ||
}, | ||
"configurations": { | ||
"production": { | ||
"optimization": true, | ||
"extractLicenses": false, | ||
"inspect": false | ||
} | ||
} | ||
}, | ||
"serve": { | ||
"executor": "@nrwl/node:execute", | ||
"options": { | ||
"buildTarget": "api:build" | ||
} | ||
}, | ||
"lint": { | ||
"executor": "@nrwl/linter:lint", | ||
"options": { | ||
"linter": "eslint", | ||
"tsConfig": [ | ||
"apps/api/tsconfig.app.json", | ||
"apps/api/tsconfig.spec.json" | ||
], | ||
"exclude": ["**/node_modules/**", "!apps/api/**/*"] | ||
} | ||
}, | ||
"test": { | ||
"executor": "@nrwl/jest:jest", | ||
"options": { | ||
"jestConfig": "apps/api/jest.config.js", | ||
"passWithNoTests": true | ||
} | ||
} | ||
}, | ||
"tags": [] | ||
} |
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 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
Oops, something went wrong.