Skip to content

Commit

Permalink
chore: spelling / formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
evereq committed Oct 21, 2023
1 parent 0c2359b commit c8ee7f9
Show file tree
Hide file tree
Showing 4 changed files with 116 additions and 58 deletions.
56 changes: 56 additions & 0 deletions .cspell.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"version": "0.2",
"language": "en",
"$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json",
"words": [
"barcodes",
"cacheable",
"cloudinary",
"clsxm",
"dummyimage",
"everco",
"everteamsdesktop",
"exposdk",
"headlessui",
"heroicons",
"plasmo",
"RECAPTCHA",
"svgs",
"tailwindcss",
"Timesheet",
"Vercel"
],
"useGitignore": true,
"ignorePaths": [
".deploy/*",
".git/*",
".git/!{COMMIT_EDITMSG,EDITMSG}",
".git/*/**",
".yarn",
"**/*.jar",
".pnp.js",
"**/.git/**",
".vscode",
".gitignore",
"action/lib/**",
"coverage",
".cspell.json",
"cspell.json",
"__snapshots__",
"__recordings__",
"**/coverage/**",
"**/fixtures/**/*.json",
"**/fixtures/sampleCode/*errors/",
"**/node_modules/**",
"**/vscode-extension/**",
"package-lock.json",
"yarn.lock",
"**/assets/i18n/*.json",
"**/migrations/**",
"packages/**/*.seed.json",
"**/*.svg",
"tools/build/webpack.config.js",
"docker-compose.demo.yml",
"docker-compose.yml"
]
}
76 changes: 36 additions & 40 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,42 +1,38 @@
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 13,
"sourceType": "module"
},
"plugins": ["react", "@typescript-eslint"],
"rules": {
"camelcase": "off",
"@typescript-eslint/camelcase": ["off", { "properties": "never" }],
"@typescript-eslint/ban-ts-ignore": ["off"],
"@typescript-eslint/no-explicit-any": ["off", { "ignoreRestArgs": true }],
"@typescript-eslint/interface-name-prefix": ["off"],
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"jsx-a11y/no-onchange": "off",
"react/jsx-props-no-spreading": "off",
"import/prefer-default-export": "off",
"import/no-extraneous-dependencies": "off",
"react/prop-types": "off",
"@typescript-eslint/no-unused-vars": "warn",
"react/react-in-jsx-scope": "off",
"@typescript-eslint/ban-ts-comment": "off"
},
"settings": {
"react": {
"version": "detect"
}
}
"env": {
"browser": true,
"es2021": true
},
"extends": ["eslint:recommended", "plugin:react/recommended", "plugin:@typescript-eslint/recommended"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 13,
"sourceType": "module"
},
"plugins": ["react", "@typescript-eslint"],
"rules": {
"camelcase": "off",

Check warning on line 17 in .eslintrc.json

View workflow job for this annotation

GitHub Actions / Cspell

Unknown word (camelcase)
"@typescript-eslint/camelcase": ["off", { "properties": "never" }],

Check warning on line 18 in .eslintrc.json

View workflow job for this annotation

GitHub Actions / Cspell

Unknown word (camelcase)
"@typescript-eslint/ban-ts-ignore": ["off"],
"@typescript-eslint/no-explicit-any": ["off", { "ignoreRestArgs": true }],
"@typescript-eslint/interface-name-prefix": ["off"],
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"jsx-a11y/no-onchange": "off",
"react/jsx-props-no-spreading": "off",
"import/prefer-default-export": "off",
"import/no-extraneous-dependencies": "off",
"react/prop-types": "off",
"@typescript-eslint/no-unused-vars": "warn",
"react/react-in-jsx-scope": "off",
"@typescript-eslint/ban-ts-comment": "off"
},
"settings": {
"react": {
"version": "detect"
}
}
}
23 changes: 23 additions & 0 deletions .github/workflows/typos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: 'Check Spelling and Typos with cspell'
on:
push:
branches: [develop]
pull_request:
branches: [develop]

concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true

jobs:
spellcheck:
name: Cspell
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: streetsidesoftware/cspell-action@v2
with:
# Github token used to fetch the list of changed files in the commit.
github_token: ${{ secrets.GH_TOKEN || secrets.GITHUB_TOKEN }}
strict: true
config: '.cspell.json'
19 changes: 1 addition & 18 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,7 @@
},
"vsicons.presets.angular": true,
"deepscan.enable": true,
"cSpell.words": [
"barcodes",
"cacheable",
"cloudinary",
"clsxm",
"dummyimage",
"everco",
"everteamsdesktop",
"exposdk",
"headlessui",
"heroicons",
"plasmo",
"RECAPTCHA",
"svgs",
"tailwindcss",
"Timesheet",
"Vercel"
],
"cSpell.words": [],
"files.exclude": {
"**/.git": true,
"**/.DS_Store": true,
Expand Down

0 comments on commit c8ee7f9

Please sign in to comment.