-
Notifications
You must be signed in to change notification settings - Fork 8
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
637 changed files
with
230,030 additions
and
6,119 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,70 @@ | ||
{ | ||
"root": true, | ||
"env": { | ||
"jest/globals": true | ||
}, | ||
"extends": [ | ||
"plugin:@esri/calcite-components/recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:@typescript-eslint/recommended-requiring-type-checking", | ||
"plugin:jest/recommended", | ||
"prettier" | ||
], | ||
"ignorePatterns": ["assets", "test", "json-editor"], | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"project": "./tsconfig-eslint.json", | ||
"ecmaVersion": 2018, | ||
"sourceType": "module" | ||
}, | ||
"plugins": ["@esri/calcite-components", "@typescript-eslint", "eslint-plugin-react", "jest", "prettier", "unicorn"], | ||
"rules": { | ||
"@esri/calcite-components/strict-boolean-attributes": "off", | ||
"@typescript-eslint/ban-types": "warn", | ||
"@typescript-eslint/explicit-module-boundary-types": [ | ||
"error", | ||
{ | ||
"allowArgumentsExplicitlyTypedAsAny": true, | ||
"allowedNames": [ | ||
"connectedCallback", | ||
"disconnectedCallback", | ||
"componentWillRender", | ||
"componentDidRender", | ||
"componentWillLoad", | ||
"componentDidLoad", | ||
"componentWillUpdate", | ||
"componentDidUpdate", | ||
"render" | ||
] | ||
} | ||
], | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"@typescript-eslint/no-this-alias": "off", | ||
"@typescript-eslint/no-unsafe-argument": "off", | ||
"@typescript-eslint/no-unsafe-assignment": "off", | ||
"@typescript-eslint/no-unsafe-call": "off", | ||
"@typescript-eslint/no-unsafe-member-access": "off", | ||
"@typescript-eslint/no-unsafe-return": "off", | ||
"@typescript-eslint/no-unused-vars": "off", | ||
"@typescript-eslint/require-await": "off", | ||
"@typescript-eslint/restrict-template-expressions": "off", | ||
"curly": "error", | ||
"jest/expect-expect": "off", | ||
"jest/no-export": "warn", | ||
"lines-between-class-members": ["error", "always"], | ||
"no-multiple-empty-lines": ["error", { "max": 1 }], | ||
"no-unneeded-ternary": "error", | ||
"no-unused-vars": "off", | ||
"react/jsx-no-bind": [ "error", { "ignoreDOMComponents": true } ], | ||
"react/jsx-sort-props": "error", | ||
"react/jsx-uses-react": "error", | ||
"react/jsx-uses-vars": "error", | ||
"react/self-closing-comp": "error", | ||
"unicorn/prefer-ternary": "error" | ||
}, | ||
"settings": { | ||
"react": { | ||
"version": "detect" | ||
} | ||
} | ||
} |
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,27 @@ | ||
name: Linting | ||
|
||
on: | ||
push: | ||
branches: [ develop, master ] | ||
pull_request: | ||
# The branches below must be a subset of the branches above | ||
branches: [ develop, master ] | ||
|
||
jobs: | ||
steps: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: "16.x" | ||
|
||
- name: Install Node.js dependencies | ||
run: npm ci --ignore-scripts | ||
|
||
- name: Lint | ||
shell: bash | ||
run: | | ||
npx eslint --ext .ts,.tsx src/components src/utils | ||
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,2 @@ | ||
package.json | ||
package-lock.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,13 @@ | ||
language: node_js | ||
node_js: | ||
- "16" | ||
cache: npm | ||
before_script: | ||
- export NODE_OPTIONS=--max_old_space_size=32768 | ||
script: | ||
- npm run test | ||
env: | ||
- MOZ_HEADLESS=1 | ||
addons: | ||
chrome: stable | ||
firefox: latest |
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,13 @@ | ||
# Changelog | ||
|
||
All notable changes to this project will be documented in this file. | ||
|
||
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
||
## [Unreleased] | ||
|
||
## [0.1.4] - November 2nd 2022 | ||
|
||
[0.1.4]: https://github.com/Esri/solution.js/compare/3dc2e8e89cd42b447420b2c0cba988738d0c7195...v0.1.4 "v0.1.4" | ||
[Unreleased]: https://github.com/Esri/solution.js/compare/v0.1.4...HEAD "Unreleased Changes" | ||
|
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,7 @@ | ||
## Publishing solutions-components to npmjs | ||
|
||
1. Update version in package.json | ||
2. Run `npm install` to update package-lock.json | ||
3. Add entry for version in CHANGELOG.md | ||
4. Commit and push the changes | ||
5. Run `npm run release:publish` |
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,12 @@ | ||
rem Builds the repository | ||
|
||
call node --version | ||
call npm --version | ||
|
||
call npm install | ||
call npm run build | ||
|
||
echo Built %date% %time% >dist\solutions-components_commit.txt | ||
git rev-parse --abbrev-ref HEAD >>dist\solutions-components_commit.txt | ||
git log -1>>dist\solutions-components_commit.txt | ||
|
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 @@ | ||
rem Builds the repository | ||
|
||
call npm install | ||
call npm run build:debug | ||
|
||
echo Built %date% %time% >dist\solutions-components_commit.txt | ||
git rev-parse --abbrev-ref HEAD >>dist\solutions-components_commit.txt | ||
git log -1>>dist\solutions-components_commit.txt | ||
|
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,6 @@ | ||
@echo off | ||
mkdir __trash >nul | ||
del/q src\index.js 2>nul | ||
robocopy src\components __trash *.js /s /mov /create /xd assets >nul | ||
robocopy src\utils __trash *.js /s /mov /create /xd assets >nul | ||
rmdir /s/q __trash |
Binary file not shown.
Oops, something went wrong.