-
Notifications
You must be signed in to change notification settings - Fork 34
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
Showing
22 changed files
with
11,823 additions
and
690 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,44 @@ | ||
const scaffold = require("@adiun/vm-scaffold/.eslintrc.ui"); | ||
|
||
// https://github.com/dotansimha/graphql-eslint/tree/master/docs | ||
const graphqlRules = { | ||
"@typescript-eslint/naming-convention": "off", | ||
"unicorn/filename-case": "off", | ||
"@graphql-eslint/avoid-duplicate-fields": "error", | ||
"@graphql-eslint/fields-on-correct-type": "error", | ||
"@graphql-eslint/known-argument-names": "error", | ||
"@graphql-eslint/known-type-names": "error", | ||
"@graphql-eslint/no-undefined-variables": "error", | ||
"@graphql-eslint/no-unreachable-types": "error", | ||
"@graphql-eslint/no-unused-variables": "error", | ||
"@graphql-eslint/unique-variable-names": "error", | ||
"@graphql-eslint/provided-required-arguments": "error", | ||
"@graphql-eslint/value-literals-of-correct-type": "error", | ||
"@graphql-eslint/variables-are-input-types": "error", | ||
"@graphql-eslint/variables-in-allowed-position": "error", | ||
}; | ||
|
||
module.exports = { | ||
...scaffold, | ||
overrides: [ | ||
{ | ||
files: ["*.tsx", "*.ts", "*.jsx", "*.js"], | ||
processor: "@graphql-eslint/graphql", | ||
rules: graphqlRules, | ||
}, | ||
{ | ||
files: ["*.graphql"], | ||
parser: "@graphql-eslint/eslint-plugin", | ||
plugins: ["@graphql-eslint"], | ||
rules: { | ||
// NOTE: Prettier is disabled within GraphQL snippets. | ||
"prettier/prettier": "off", | ||
...graphqlRules, | ||
}, | ||
}, | ||
], | ||
parserOptions: { | ||
...scaffold.parserOptions, | ||
project: "./tsconfig.json", | ||
}, | ||
}; |
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 @@ | ||
const scaffoldConfig = require("@adiun/vm-scaffold/.stylelintrc"); | ||
|
||
module.exports = { | ||
...scaffoldConfig, | ||
}; |
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,3 @@ | ||
import React from "react"; | ||
import { TestCoreComponent } from "@adiun/vm-coreui"; | ||
|
||
function App(): JSX.Element { | ||
|
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,3 @@ | ||
|
||
// sync with vite.config.ts define settings | ||
type PkgJson = { name: string, version: string; }; | ||
declare var pkgJson: PkgJson; | ||
type PkgJson = { readonly name: string; readonly version: string }; | ||
declare let pkgJson: PkgJson; |
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,10 +1,11 @@ | ||
import React from 'react' | ||
import ReactDOM from 'react-dom' | ||
import App from './App' | ||
import { StrictMode } from "react"; | ||
import ReactDOM from "react-dom"; | ||
|
||
import App from "./App"; | ||
|
||
ReactDOM.render( | ||
<React.StrictMode> | ||
<StrictMode> | ||
<App /> | ||
</React.StrictMode>, | ||
document.getElementById('root') | ||
) | ||
</StrictMode>, | ||
document.querySelector("#root") | ||
); |
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,20 +1,6 @@ | ||
{ | ||
"extends": "@adiun/vm-scaffold/tsconfig.ui.json", | ||
"compilerOptions": { | ||
"allowJs": false, | ||
"allowSyntheticDefaultImports": true, | ||
"esModuleInterop": false, | ||
"forceConsistentCasingInFileNames": true, | ||
"isolatedModules": true, | ||
"jsx": "react", | ||
"lib": ["DOM", "DOM.Iterable", "ESNext"], | ||
"module": "esnext", | ||
"moduleResolution": "Node", | ||
"noEmit": true, | ||
"resolveJsonModule": true, | ||
"skipLibCheck": false, | ||
"strict": true, | ||
"target": "ESNext", | ||
"types": ["vite/client"] | ||
// types for import.meta.env | ||
"rootDir": "src" | ||
} | ||
} |
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,9 @@ | ||
const scaffold = require("@adiun/vm-scaffold/.eslintrc.ui") | ||
|
||
module.exports = { | ||
...scaffold, | ||
parserOptions: { | ||
...scaffold.parserOptions, | ||
project: "./tsconfig.json", | ||
}, | ||
} |
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 @@ | ||
const scaffoldConfig = require("@adiun/vm-scaffold/.stylelintrc"); | ||
|
||
module.exports = { | ||
...scaffoldConfig, | ||
}; |
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,7 +1,3 @@ | ||
import React from 'react'; | ||
|
||
export const TestCoreComponent = () => { | ||
return ( | ||
<div>Core UI component</div> | ||
) | ||
} | ||
export const TestCoreComponent = (): JSX.Element => { | ||
return <div>Core UI component</div>; | ||
}; |
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,18 +1,8 @@ | ||
{ | ||
"extends": "../scaffold/tsconfig.common.json", | ||
"extends": "@adiun/vm-scaffold/tsconfig.ui.json", | ||
"compilerOptions": { | ||
"allowJs": false, | ||
"declarationDir": "lib", | ||
"isolatedModules": true, | ||
"jsx": "react-jsx", | ||
"lib": ["DOM", "DOM.Iterable", "ESNext"], | ||
"module": "esnext", | ||
"noEmit": true, | ||
"resolveJsonModule": true, | ||
"rootDir": "src", | ||
"skipLibCheck": false, | ||
"target": "ESNext", | ||
"types": ["vite/client"] | ||
"rootDir": "src" | ||
}, | ||
"include": ["src"] | ||
} |
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.