lincd-cli 0.2.58 → 0.2.60

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/.husky/post-merge +3 -3
  2. package/.husky/pre-commit +4 -4
  3. package/.prettierignore +3 -3
  4. package/.prettierrc.json +23 -23
  5. package/.yarn/plugins/@yarnpkg/plugin-version.cjs +550 -0
  6. package/.yarn/versions/d035ef78.yml +0 -0
  7. package/LICENSE +373 -373
  8. package/README.md +24 -24
  9. package/defaults/app/Gruntfile.js +5 -5
  10. package/defaults/app/index.html +12 -12
  11. package/defaults/app/package.json +30 -30
  12. package/defaults/app/src/App.scss +2 -2
  13. package/defaults/app/src/App.tsx +4 -4
  14. package/defaults/app/src/index.tsx +10 -10
  15. package/defaults/app/tsconfig-es5.json +18 -18
  16. package/defaults/app/tsconfig.json +21 -21
  17. package/defaults/app-static/capacitor.config.ts +48 -48
  18. package/defaults/app-static/src/index-static.tsx +27 -27
  19. package/defaults/app-static/web/index.html +21 -21
  20. package/defaults/app-with-backend/.env-cmdrc.json +16 -16
  21. package/defaults/app-with-backend/.eslintignore +2 -2
  22. package/defaults/app-with-backend/.eslintrc.json +40 -40
  23. package/defaults/app-with-backend/.husky/post-merge +3 -3
  24. package/defaults/app-with-backend/.husky/pre-commit +4 -4
  25. package/defaults/app-with-backend/.prettierignore +3 -3
  26. package/defaults/app-with-backend/.prettierrc.json +27 -27
  27. package/defaults/app-with-backend/.run/start.run.xml +11 -11
  28. package/defaults/app-with-backend/.vscode/launch.json +11 -11
  29. package/defaults/app-with-backend/.yarn/plugins/@yarnpkg/plugin-version.cjs +550 -550
  30. package/defaults/app-with-backend/.yarn/releases/yarn-3.6.1.cjs +874 -874
  31. package/defaults/app-with-backend/babel.config.js +4 -4
  32. package/defaults/app-with-backend/gitignore.template +22 -22
  33. package/defaults/app-with-backend/lincd.config.js +7 -7
  34. package/defaults/app-with-backend/package.json +92 -92
  35. package/defaults/app-with-backend/pm2.config.js +12 -12
  36. package/defaults/app-with-backend/readme.md +8 -8
  37. package/defaults/app-with-backend/scripts/build.js +41 -42
  38. package/defaults/app-with-backend/scripts/setup_storage.js +6 -6
  39. package/defaults/app-with-backend/scripts/start-server.js +11 -11
  40. package/defaults/app-with-backend/src/App.scss +6 -6
  41. package/defaults/app-with-backend/src/App.tsx +34 -34
  42. package/defaults/app-with-backend/src/backend.ts +1 -1
  43. package/defaults/app-with-backend/src/components/Error.scss +9 -9
  44. package/defaults/app-with-backend/src/components/Error.tsx +14 -14
  45. package/defaults/app-with-backend/src/components/Spinner.scss +17 -17
  46. package/defaults/app-with-backend/src/components/Spinner.tsx +12 -12
  47. package/defaults/app-with-backend/src/index.tsx +32 -32
  48. package/defaults/app-with-backend/src/layout/DefaultLayout.scss +6 -6
  49. package/defaults/app-with-backend/src/layout/DefaultLayout.tsx +13 -13
  50. package/defaults/app-with-backend/src/layout/Header.scss +10 -10
  51. package/defaults/app-with-backend/src/layout/Header.tsx +23 -23
  52. package/defaults/app-with-backend/src/package.ts +14 -14
  53. package/defaults/app-with-backend/src/pages/Home.scss +15 -15
  54. package/defaults/app-with-backend/src/pages/Home.tsx +21 -21
  55. package/defaults/app-with-backend/src/pages/Page1.tsx +11 -11
  56. package/defaults/app-with-backend/src/pages/PageNotFound.tsx +11 -11
  57. package/defaults/app-with-backend/src/pages/Signin.tsx +12 -12
  58. package/defaults/app-with-backend/src/routes.tsx +72 -72
  59. package/defaults/app-with-backend/src/scss/global-overwrites.scss +11 -11
  60. package/defaults/app-with-backend/src/scss/variables.scss +23 -23
  61. package/defaults/app-with-backend/tsconfig.json +21 -21
  62. package/defaults/app-with-backend/yarnrc.yml.template +8 -8
  63. package/defaults/capacitor/scripts/fix-namespace.js +41 -41
  64. package/defaults/component.scss +2 -2
  65. package/defaults/component.tsx +11 -11
  66. package/defaults/package/package.json +38 -38
  67. package/defaults/package/src/components/ExampleComponent.tsx +8 -8
  68. package/defaults/package/src/data/example-ontology.json +20 -20
  69. package/defaults/package/src/data/example-ontology.json.d.ts +1 -1
  70. package/defaults/package/src/index.ts +7 -7
  71. package/defaults/package/src/ontologies/example-ontology.ts +36 -36
  72. package/defaults/package/src/package.ts +4 -4
  73. package/defaults/package/src/shapes/ExampleShapeClass.ts +29 -29
  74. package/defaults/set-component.tsx +15 -15
  75. package/defaults/shape.ts +8 -8
  76. package/expose-grunt.js +1 -1
  77. package/lib/cli-methods.js +50 -22
  78. package/lib/cli.js +5 -3
  79. package/lib/config-grunt.js +7 -7
  80. package/lib/plugins/check-imports.js +1 -1
  81. package/package.json +1 -1
package/README.md CHANGED
@@ -1,24 +1,24 @@
1
- #LINCD CLI
2
- Command Line Interface for the [lincd.js](https://www.lincd.org) library
3
-
4
- ### Installation
5
-
6
- ```
7
- npm install lincd-cli
8
- ```
9
-
10
- or
11
-
12
- ```
13
- yarn add lincd-cli
14
- ```
15
-
16
- ### Usage
17
-
18
- type
19
-
20
- ```
21
- npm exec lincd help
22
- ```
23
-
24
- for available commands
1
+ #LINCD CLI
2
+ Command Line Interface for the [lincd.js](https://www.lincd.org) library
3
+
4
+ ### Installation
5
+
6
+ ```
7
+ npm install lincd-cli
8
+ ```
9
+
10
+ or
11
+
12
+ ```
13
+ yarn add lincd-cli
14
+ ```
15
+
16
+ ### Usage
17
+
18
+ type
19
+
20
+ ```
21
+ npm exec lincd help
22
+ ```
23
+
24
+ for available commands
@@ -1,5 +1,5 @@
1
- var buildTools = require('lincd-cli');
2
- module.exports = buildTools.generateGruntConfig('${hyphen_name}', {
3
- internals: '*', //for applications, we tell the bundler to bundle everything
4
- afterFirstBuildCommand:'open index.html'
5
- });
1
+ var buildTools = require('lincd-cli');
2
+ module.exports = buildTools.generateGruntConfig('${hyphen_name}', {
3
+ internals: '*', //for applications, we tell the bundler to bundle everything
4
+ afterFirstBuildCommand:'open index.html'
5
+ });
@@ -1,12 +1,12 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <link rel="stylesheet" type="text/css" href="./dist/${hyphen_name}.css">
6
- <title>${name}</title>
7
- </head>
8
- <body>
9
- <div id="root"></div>
10
- <script src="./dist/${hyphen_name}.js"></script>
11
- </body>
12
- </html>
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <link rel="stylesheet" type="text/css" href="./dist/${hyphen_name}.css">
6
+ <title>${name}</title>
7
+ </head>
8
+ <body>
9
+ <div id="root"></div>
10
+ <script src="./dist/${hyphen_name}.js"></script>
11
+ </body>
12
+ </html>
@@ -1,30 +1,30 @@
1
- {
2
- "name": "${hyphen_name}",
3
- "displayName": "${name}",
4
- "version": "0.1.0",
5
- "description": "",
6
- "lincd": true,
7
- "main": "lib/index.js",
8
- "types": "dist/${hyphen_name}.d.ts",
9
- "author": "",
10
- "license": "ISC",
11
- "scripts": {
12
- "build": "npm exec lincd build",
13
- "dev": "npm exec lincd dev",
14
- "prepublishOnly": "npm exec lincd build production",
15
- "postpublish": "npm exec lincd publish"
16
- },
17
- "keywords": [
18
- "lincd",
19
- "linked data",
20
- "interoperable",
21
- "semantic web",
22
- "web3"
23
- ],
24
- "dependencies": {
25
- "lincd": "^0.5"
26
- },
27
- "devDependencies": {
28
- "lincd-cli": "^0.2"
29
- }
30
- }
1
+ {
2
+ "name": "${hyphen_name}",
3
+ "displayName": "${name}",
4
+ "version": "0.1.0",
5
+ "description": "",
6
+ "lincd": true,
7
+ "main": "lib/index.js",
8
+ "types": "dist/${hyphen_name}.d.ts",
9
+ "author": "",
10
+ "license": "ISC",
11
+ "scripts": {
12
+ "build": "npm exec lincd build",
13
+ "dev": "npm exec lincd dev",
14
+ "prepublishOnly": "npm exec lincd build production",
15
+ "postpublish": "npm exec lincd publish"
16
+ },
17
+ "keywords": [
18
+ "lincd",
19
+ "linked data",
20
+ "interoperable",
21
+ "semantic web",
22
+ "web3"
23
+ ],
24
+ "dependencies": {
25
+ "lincd": "^0.5"
26
+ },
27
+ "devDependencies": {
28
+ "lincd-cli": "^0.2"
29
+ }
30
+ }
@@ -1,3 +1,3 @@
1
- .app {
2
- display:block;
1
+ .app {
2
+ display:block;
3
3
  }
@@ -1,5 +1,5 @@
1
- import React from 'react';
2
- export function App()
3
- {
4
- return <div className="app">${name} - LINCD App</div>;
1
+ import React from 'react';
2
+ export function App()
3
+ {
4
+ return <div className="app">${name} - LINCD App</div>;
5
5
  }
@@ -1,10 +1,10 @@
1
- import React from 'react';
2
- import {createRoot} from 'react-dom/client';
3
- import {App} from './App';
4
-
5
- declare var document;
6
- if (typeof document !== 'undefined') {
7
- const container = document.getElementById('root');
8
- const root = createRoot(container!);
9
- root.render(<App></App>);
10
- }
1
+ import React from 'react';
2
+ import {createRoot} from 'react-dom/client';
3
+ import {App} from './App';
4
+
5
+ declare var document;
6
+ if (typeof document !== 'undefined') {
7
+ const container = document.getElementById('root');
8
+ const root = createRoot(container!);
9
+ root.render(<App></App>);
10
+ }
@@ -1,18 +1,18 @@
1
- {
2
- "compilerOptions": {
3
- "module": "commonjs",
4
- "sourceMap": true,
5
- "target": "es5",
6
- "outDir": "lib",
7
- "declaration": false,
8
- "esModuleInterop": true,
9
- "resolveJsonModule": true,
10
- "downlevelIteration": true,
11
- "experimentalDecorators": true,
12
- "skipLibCheck": true,
13
- "jsx": "react",
14
- "baseUrl": "./",
15
- "rootDir": "src"
16
- },
17
- "files": ["./src/index.tsx"]
18
- }
1
+ {
2
+ "compilerOptions": {
3
+ "module": "commonjs",
4
+ "sourceMap": true,
5
+ "target": "es5",
6
+ "outDir": "lib",
7
+ "declaration": false,
8
+ "esModuleInterop": true,
9
+ "resolveJsonModule": true,
10
+ "downlevelIteration": true,
11
+ "experimentalDecorators": true,
12
+ "skipLibCheck": true,
13
+ "jsx": "react",
14
+ "baseUrl": "./",
15
+ "rootDir": "src"
16
+ },
17
+ "files": ["./src/index.tsx"]
18
+ }
@@ -1,21 +1,21 @@
1
- {
2
- "compilerOptions": {
3
- "module": "commonjs",
4
- "sourceMap": true,
5
- "target": "es6",
6
- "outDir": "lib",
7
- "declaration": false,
8
- "esModuleInterop": true,
9
- "moduleResolution": "node",
10
- "resolveJsonModule": true,
11
- "downlevelIteration": true,
12
- "experimentalDecorators": true,
13
- "skipLibCheck": true,
14
- "jsx": "react",
15
- "paths": {
16
- "react": ["../node_modules/@types/react","../../../node_modules/@types/react"]
17
- },
18
- "baseUrl": "./src"
19
- },
20
- "files": ["./src/index.tsx"]
21
- }
1
+ {
2
+ "compilerOptions": {
3
+ "module": "commonjs",
4
+ "sourceMap": true,
5
+ "target": "es6",
6
+ "outDir": "lib",
7
+ "declaration": false,
8
+ "esModuleInterop": true,
9
+ "moduleResolution": "node",
10
+ "resolveJsonModule": true,
11
+ "downlevelIteration": true,
12
+ "experimentalDecorators": true,
13
+ "skipLibCheck": true,
14
+ "jsx": "react",
15
+ "paths": {
16
+ "react": ["../node_modules/@types/react","../../../node_modules/@types/react"]
17
+ },
18
+ "baseUrl": "./src"
19
+ },
20
+ "files": ["./src/index.tsx"]
21
+ }
@@ -1,48 +1,48 @@
1
- import { CapacitorConfig } from '@capacitor/cli';
2
-
3
- const config: CapacitorConfig = {
4
- appId: 'com.mydomain.FILL_IN_YOUR_OWN',
5
- appName: 'FILL_IN_YOUR_OWN',
6
- webDir: 'web',
7
- server: {
8
- allowNavigation: ['yourdomain.com', 'sub.yourdomain.com'],
9
- },
10
- bundledWebRuntime: false,
11
- //Add or remove plugins that you need. Here is a starter list
12
- plugins: {
13
- CapacitorHttp: {
14
- enabled: true,
15
- },
16
- // FirebaseMessaging: {
17
- // presentationOptions: ['badge', 'sound', 'alert'],
18
- // },
19
- // GoogleAuth: {
20
- // scopes: ['profile', 'email'],
21
- // //self created production web client
22
- // clientId: '...',
23
- // //For these lines use the auto generated web client "Web client (auto created by Google Service)"
24
- // serverClientId: '....',
25
- // androidClientId: '...',
26
- // iosClientId: '...',
27
- // forceCodeForRefreshToken: true,
28
- // },
29
- // SplashScreen: {
30
- // launchShowDuration: 400,
31
- // launchAutoHide: true,
32
- // backgroundColor: '#F7E5FF',
33
- // androidSplashResourceName: 'splash',
34
- // showSpinner: false,
35
- // splashFullScreen: true,
36
- // splashImmersive: true,
37
- // // launchFadeOutDuration: 500,
38
- // // androidScaleType: 'CENTER',
39
- // // androidSpinnerStyle: 'large',
40
- // // iosSpinnerStyle: 'small',
41
- // // spinnerColor: '#999999',
42
- // // layoutName: 'launch_screen',
43
- // // useDialog: true,
44
- // },
45
- },
46
- };
47
-
48
- export default config;
1
+ import { CapacitorConfig } from '@capacitor/cli';
2
+
3
+ const config: CapacitorConfig = {
4
+ appId: 'com.mydomain.FILL_IN_YOUR_OWN',
5
+ appName: 'FILL_IN_YOUR_OWN',
6
+ webDir: 'web',
7
+ server: {
8
+ allowNavigation: ['yourdomain.com', 'sub.yourdomain.com'],
9
+ },
10
+ bundledWebRuntime: false,
11
+ //Add or remove plugins that you need. Here is a starter list
12
+ plugins: {
13
+ CapacitorHttp: {
14
+ enabled: true,
15
+ },
16
+ // FirebaseMessaging: {
17
+ // presentationOptions: ['badge', 'sound', 'alert'],
18
+ // },
19
+ // GoogleAuth: {
20
+ // scopes: ['profile', 'email'],
21
+ // //self created production web client
22
+ // clientId: '...',
23
+ // //For these lines use the auto generated web client "Web client (auto created by Google Service)"
24
+ // serverClientId: '....',
25
+ // androidClientId: '...',
26
+ // iosClientId: '...',
27
+ // forceCodeForRefreshToken: true,
28
+ // },
29
+ // SplashScreen: {
30
+ // launchShowDuration: 400,
31
+ // launchAutoHide: true,
32
+ // backgroundColor: '#F7E5FF',
33
+ // androidSplashResourceName: 'splash',
34
+ // showSpinner: false,
35
+ // splashFullScreen: true,
36
+ // splashImmersive: true,
37
+ // // launchFadeOutDuration: 500,
38
+ // // androidScaleType: 'CENTER',
39
+ // // androidSpinnerStyle: 'large',
40
+ // // iosSpinnerStyle: 'small',
41
+ // // spinnerColor: '#999999',
42
+ // // layoutName: 'launch_screen',
43
+ // // useDialog: true,
44
+ // },
45
+ },
46
+ };
47
+
48
+ export default config;
@@ -1,28 +1,28 @@
1
- import React from 'react';
2
- import ReactDOM from 'react-dom/client';
3
- import {BrowserRouter} from 'react-router-dom';
4
- import App from './App';
5
- import {BackendAPIStore} from 'lincd-server/lib/shapes/BackendAPIStore';
6
- import {Storage} from 'lincd/lib/utils/Storage';
7
- import {AppContextProvider} from 'lincd-server-utils/lib/components/AppContext';
8
-
9
- const root = ReactDOM.createRoot(
10
- // document
11
- // document.body
12
- document.getElementById('root') as HTMLElement
13
- );
14
- //store all quads in a file on the backend named 'main'
15
- // export const store = new BackendFileStore('main');
16
- export const store = new BackendAPIStore();
17
- Storage.setDefaultStore(store);
18
-
19
-
20
- root.render(
21
- <React.StrictMode>
22
- <BrowserRouter>
23
- <AppContextProvider isNativeApp={true}>
24
- <App />
25
- </AppContextProvider>
26
- </BrowserRouter>
27
- </React.StrictMode>
1
+ import React from 'react';
2
+ import ReactDOM from 'react-dom/client';
3
+ import {BrowserRouter} from 'react-router-dom';
4
+ import App from './App';
5
+ import {BackendAPIStore} from 'lincd-server/lib/shapes/BackendAPIStore';
6
+ import {Storage} from 'lincd/lib/utils/Storage';
7
+ import {AppContextProvider} from 'lincd-server-utils/lib/components/AppContext';
8
+
9
+ const root = ReactDOM.createRoot(
10
+ // document
11
+ // document.body
12
+ document.getElementById('root') as HTMLElement
13
+ );
14
+ //store all quads in a file on the backend named 'main'
15
+ // export const store = new BackendFileStore('main');
16
+ export const store = new BackendAPIStore();
17
+ Storage.setDefaultStore(store);
18
+
19
+
20
+ root.render(
21
+ <React.StrictMode>
22
+ <BrowserRouter>
23
+ <AppContextProvider isNativeApp={true}>
24
+ <App />
25
+ </AppContextProvider>
26
+ </BrowserRouter>
27
+ </React.StrictMode>
28
28
  );
@@ -1,21 +1,21 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charSet="utf-8"/>
5
- <meta name="viewport" content="width=device-width, initial-scale=1"/>
6
- <link rel="stylesheet" href="./assets/main.css"/>
7
- <title>Cool Block | Cool City Challenge | Community Based Empowerment</title>
8
- <link rel="shortcut icon" href="./favicon.ico"/>
9
- <link rel="apple-touch-icon" href="./apple-touch-icon-144x144.png" sizes="144x144"/>
10
- <link rel="apple-touch-icon" href="./apple-touch-icon-72x72.png" sizes="72x72"/>
11
- <link rel="apple-touch-icon" href="./apple-touch-icon-57x57.png" sizes="57x57"/>
12
- <meta name="description"
13
- content="The Cool Block is a how-to guide for local communities to make a significant impact on climate change. The Cool Block program helps citizens get engage in a grassroots initiative to be planet friendly, disaster resilient and community rich."/>
14
- <script src="./assets/main.bundle.js" async=""></script>
15
- </head>
16
- <body>
17
- <noscript><b>Enable JavaScript to run this app.</b></noscript><!--$-->
18
- <div id="root"></div>
19
- <script>assetManifest = {"main.js": "./assets/main.bundle.js", "main.css": "./assets/main.css"};</script>
20
- </body>
21
- </html>
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charSet="utf-8"/>
5
+ <meta name="viewport" content="width=device-width, initial-scale=1"/>
6
+ <link rel="stylesheet" href="./assets/main.css"/>
7
+ <title>Cool Block | Cool City Challenge | Community Based Empowerment</title>
8
+ <link rel="shortcut icon" href="./favicon.ico"/>
9
+ <link rel="apple-touch-icon" href="./apple-touch-icon-144x144.png" sizes="144x144"/>
10
+ <link rel="apple-touch-icon" href="./apple-touch-icon-72x72.png" sizes="72x72"/>
11
+ <link rel="apple-touch-icon" href="./apple-touch-icon-57x57.png" sizes="57x57"/>
12
+ <meta name="description"
13
+ content="The Cool Block is a how-to guide for local communities to make a significant impact on climate change. The Cool Block program helps citizens get engage in a grassroots initiative to be planet friendly, disaster resilient and community rich."/>
14
+ <script src="./assets/main.bundle.js" async=""></script>
15
+ </head>
16
+ <body>
17
+ <noscript><b>Enable JavaScript to run this app.</b></noscript><!--$-->
18
+ <div id="root"></div>
19
+ <script>assetManifest = {"main.js": "./assets/main.bundle.js", "main.css": "./assets/main.css"};</script>
20
+ </body>
21
+ </html>
@@ -1,16 +1,16 @@
1
- {
2
- "_main": {
3
- "DATA_ROOT": "https://app.${hyphen_name}.com/data",
4
- "APP_PREFIX": "${underscore_name}",
5
- "APP_NAME": "${name}",
6
- "SOURCE_PATH": "./src"
7
- },
8
- "development": {
9
- "NODE_ENV": "development",
10
- "SITE_ROOT": "http://localhost:4000"
11
- },
12
- "production": {
13
- "NODE_ENV": "production",
14
- "SITE_ROOT": "https://app.${hyphen_name}.com"
15
- }
16
- }
1
+ {
2
+ "_main": {
3
+ "DATA_ROOT": "https://app.${hyphen_name}.com/data",
4
+ "APP_PREFIX": "${underscore_name}",
5
+ "APP_NAME": "${name}",
6
+ "SOURCE_PATH": "./src"
7
+ },
8
+ "development": {
9
+ "NODE_ENV": "development",
10
+ "SITE_ROOT": "http://localhost:4000"
11
+ },
12
+ "production": {
13
+ "NODE_ENV": "production",
14
+ "SITE_ROOT": "https://app.${hyphen_name}.com"
15
+ }
16
+ }
@@ -1,3 +1,3 @@
1
- node_modules
2
- public
1
+ node_modules
2
+ public
3
3
  build
@@ -1,40 +1,40 @@
1
- {
2
- "env": {
3
- "browser": true,
4
- "es2021": true,
5
- "jest": true
6
- },
7
- "extends": ["plugin:react/recommended", "plugin:@typescript-eslint/recommended", "plugin:import/recommended", "prettier"],
8
- "overrides": [],
9
- "parser": "@typescript-eslint/parser",
10
- "parserOptions": {
11
- "ecmaFeatures": {
12
- "jsx": true
13
- },
14
- "ecmaVersion": 12,
15
- "sourceType": "module"
16
- },
17
- "plugins": ["react", "@typescript-eslint", "react-hooks"],
18
- "rules": {
19
- "no-var": "off",
20
- "no-use-before-define": "off",
21
- "react/react-in-jsx-scope": "off",
22
- "@typescript-eslint/explicit-function-return-type": "off",
23
- "@typescript-eslint/no-use-before-define": ["error"],
24
- "@typescript-eslint/no-shadow": "off",
25
- "react/jsx-filename-extension": ["warn", {"extensions": [".tsx"]}],
26
- "import/extensions": ["error", "ignorePackages", {"ts": "never", "tsx": "never"}],
27
- "no-shadow": "off",
28
- "max-len": ["warn", {"code": 100, "ignoreComments": true, "ignoreUrls": true}],
29
- "react-hooks/rules-of-hooks": "error",
30
- "react-hooks/exhaustive-deps": "warn",
31
- "import/prefer-default-export": "off",
32
- "prefer-const": "off",
33
- "react/prop-types": "off"
34
- },
35
- "settings": {
36
- "import/resolver": {
37
- "typescript": {}
38
- }
39
- }
40
- }
1
+ {
2
+ "env": {
3
+ "browser": true,
4
+ "es2021": true,
5
+ "jest": true
6
+ },
7
+ "extends": ["plugin:react/recommended", "plugin:@typescript-eslint/recommended", "plugin:import/recommended", "prettier"],
8
+ "overrides": [],
9
+ "parser": "@typescript-eslint/parser",
10
+ "parserOptions": {
11
+ "ecmaFeatures": {
12
+ "jsx": true
13
+ },
14
+ "ecmaVersion": 12,
15
+ "sourceType": "module"
16
+ },
17
+ "plugins": ["react", "@typescript-eslint", "react-hooks"],
18
+ "rules": {
19
+ "no-var": "off",
20
+ "no-use-before-define": "off",
21
+ "react/react-in-jsx-scope": "off",
22
+ "@typescript-eslint/explicit-function-return-type": "off",
23
+ "@typescript-eslint/no-use-before-define": ["error"],
24
+ "@typescript-eslint/no-shadow": "off",
25
+ "react/jsx-filename-extension": ["warn", {"extensions": [".tsx"]}],
26
+ "import/extensions": ["error", "ignorePackages", {"ts": "never", "tsx": "never"}],
27
+ "no-shadow": "off",
28
+ "max-len": ["warn", {"code": 100, "ignoreComments": true, "ignoreUrls": true}],
29
+ "react-hooks/rules-of-hooks": "error",
30
+ "react-hooks/exhaustive-deps": "warn",
31
+ "import/prefer-default-export": "off",
32
+ "prefer-const": "off",
33
+ "react/prop-types": "off"
34
+ },
35
+ "settings": {
36
+ "import/resolver": {
37
+ "typescript": {}
38
+ }
39
+ }
40
+ }
@@ -1,4 +1,4 @@
1
- #!/bin/zsh
2
- . "$(dirname "$0")/_/husky.sh"
3
-
1
+ #!/bin/zsh
2
+ . "$(dirname "$0")/_/husky.sh"
3
+
4
4
  yarn
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env sh
2
- . "$(dirname -- "$0")/_/husky.sh"
3
-
4
- npx lint-staged
1
+ #!/usr/bin/env sh
2
+ . "$(dirname -- "$0")/_/husky.sh"
3
+
4
+ npx lint-staged
@@ -1,4 +1,4 @@
1
- node_modules
2
- *.scss.json
3
- build
1
+ node_modules
2
+ *.scss.json
3
+ build
4
4
  package.json