Skip to content

Instantly share code, notes, and snippets.

View brionmario's full-sized avatar
🕯️
Candle light coding

Brion Mario brionmario

🕯️
Candle light coding
View GitHub Profile
identity-apps/
├── apps/
│ ├── console/ * contains admin portal source files
│ │ ├── features/ * self-contained features.
│ │ │ ├── applications/ * application management feature.
│ │ │ │ ├── api * api functions for application management.
│ │ │ │ ├── components * components for application management.
│ │ │ │ ├── config * ui, endpoint etc. configurations.
│ │ │ │ ├── pages * pages for application management features.
│ │ │ │ └── models * models for application management.
identity-apps/
├── apps/
│ ├── console/ * contains admin portal source files
│ │ ├── features/ * self-contained features.
│ │ │ ├── applications/ * application management feature.
│ │ │ │ ├── api * api functions for application management.
│ │ │ │ ├── components * components for application management.
│ │ │ │ ├── config * ui, endpoint etc. configurations.
│ │ │ │ ├── pages * pages for application management features.
│ │ │ │ └── models * models for application management.
identity-apps/
├── apps/
│ ├── console/ * contains admin portal source files
│ │ ├── features/ * self-contained features.
│ │ │ ├── developer/ * developer features.
│ │ │ │ ├── applications/ * application management feature.
│ │ │ │ │ ├── api * api functions for application management.
│ │ │ │ │ ├── components * components for application management.
│ │ │ │ │ ├── config * ui, endpoint etc. configurations.
@brionmario
brionmario / package.json
Last active August 12, 2021 08:57
[Blog][package.json] How to add a custom ESLint configuration to a Create React App project
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
@brionmario
brionmario / .eslintrc.js
Last active August 12, 2021 09:47
[Blog][.eslintrc.js][base] How to add a custom ESLint configuration to a Create React
module.exports = {
env: {
browser: true, // Browser global variables like `window` etc.
commonjs: true, // CommonJS global variables and CommonJS scoping.Allows require, exports and module.
es6: true, // Enable all ECMAScript 6 features except for modules.
jest: true, // Jest global variables like `it` etc.
node: true // Defines things like process.env when generating through node
},
extends: [],
parser: "babel-eslint", // Uses babel-eslint transforms.
@brionmario
brionmario / .eslintrc.js
Last active August 12, 2021 11:21
[Blog][.eslintrc.js][presets] How to add a custom ESLint configuration to a Create React
extends: [
"eslint:recommended",
"plugin:react/recommended",
"plugin:jsx-a11y/recommended",
"plugin:react-hooks/recommended",
"plugin:jest/recommended",
"plugin:testing-library/react"
],
@brionmario
brionmario / .eslintrc.js
Created August 12, 2021 10:06
[Blog][.eslintrc.js][plugins] How to add a custom ESLint configuration to a Create React
plugins: [
"import" // eslint-plugin-import plugin. https://www.npmjs.com/package/eslint-plugin-import
],
@brionmario
brionmario / .eslintrc.js
Created August 12, 2021 10:15
[Blog][.eslintrc.js][rules-1] How to add a custom ESLint configuration to a Create React
rules: {
indent: [
"error",
4
],
quotes: [
"warn",
"double"
]
}
@brionmario
brionmario / .eslintrc.js
Last active August 12, 2021 10:59
[Blog][.eslintrc.js][rules-2] How to add a custom ESLint configuration to a Create React
"import/order": [
"warn",
{
alphabetize: {
caseInsensitive: true,
order: "asc"
},
groups: [
"builtin",
"external",
@brionmario
brionmario / .eslintrc.js
Last active August 12, 2021 10:59
[Blog][.eslintrc.js][rules-3] How to add a custom ESLint configuration to a Create React
"no-restricted-imports": [
"error",
{
paths: [
{
message: "Please use import foo from 'lodash-es/foo' instead.",
name: "lodash"
},
{
message: "Avoid using chain since it is non tree-shakable. Try out flow instead.",