-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Alexandre Philibeaux <[email protected]>
- Loading branch information
Showing
98 changed files
with
751 additions
and
370 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 |
---|---|---|
|
@@ -42,6 +42,24 @@ jobs: | |
pnpm install | ||
pnpm typecheck | ||
oxlint: | ||
runs-on: ubuntu-24.04 | ||
env: | ||
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | ||
TURBO_REMOTE_ONLY: true | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: pnpm/[email protected] | ||
- name: Use Node.js | ||
uses: actions/[email protected] | ||
with: | ||
node-version: 20 | ||
cache: "pnpm" | ||
- run: | | ||
pnpm install | ||
pnpm build | ||
pnpm oxlint -c .oxlintrc.json | ||
lint: | ||
runs-on: ubuntu-24.04 | ||
env: | ||
|
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 |
---|---|---|
|
@@ -42,3 +42,7 @@ vitest.config.ts.* | |
examples/*/.turbo | ||
packages/*/.turbo | ||
tools/*/.turbo | ||
|
||
# typescript | ||
*.tsbuildinfo | ||
.tsbuildinfo |
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,4 @@ | ||
save-prefix="" | ||
engine-strict=true | ||
package-manager-strict-version=true | ||
manage-package-manager-versions=true |
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,160 @@ | ||
{ | ||
"$schema": "./node_modules/oxlint/configuration_schema.json", | ||
"categories": { | ||
"correctness": "deny", | ||
"style": "deny", | ||
"suspicious": "deny", | ||
"perf": "deny", | ||
"pedantic": "deny", | ||
"restriction": "deny", | ||
"nursery": "off" | ||
}, | ||
"plugins": [ | ||
"import", | ||
"node", | ||
"react", | ||
"security", | ||
"n", | ||
"tree_shaking", | ||
"typescript", | ||
"unicorn", | ||
"vitest" | ||
], | ||
"overrides": [ | ||
{ | ||
"files": ["**/__stories__/**/*.{ts,tsx}"], | ||
"rules": { | ||
"react/jsx-key": "off", | ||
"no-console": "off", | ||
"no-alert": "off" | ||
} | ||
} | ||
], | ||
"rules": { | ||
"@typescript-eslint/ban-tslint-comment": "off", | ||
"@typescript-eslint/consistent-indexed-object-style": "off", | ||
"@typescript-eslint/consistent-type-definitions": ["error", "type"], | ||
"@typescript-eslint/explicit-function-return-type": "off", | ||
"@typescript-eslint/no-explicit-any": "warn", | ||
"@typescript-eslint/no-magic-numbers": "off", | ||
"@typescript-eslint/no-non-null-assertion": "off", | ||
"@typescript/no-explicit-any": "warn", | ||
"@typescript-eslint/prefer-enum-initializers": "off", | ||
"@typescript-eslint/prefer-function-type": "off", | ||
"@typescript-eslint/prefer-literal-enum-member": "off", | ||
"@typescript-eslint/prefer-ts-expect-error": "off", | ||
"eslint/default-param-last": "off", | ||
"eslint/max-lines": "off", | ||
"eslint/max-params": "off", | ||
"eslint/no-await-in-loop": "off", | ||
"eslint/no-duplicate-imports": "off", | ||
"eslint/no-empty-function": "off", | ||
"eslint/no-magic-numbers": "off", | ||
"eslint/no-ternary": "off", | ||
"eslint/no-undef": "off", | ||
"eslint/no-undefined": "off", | ||
"eslint/sort-keys": "off", | ||
"eslint/react-in-jsx-scope": "off", | ||
"eslint/no-unused-vars": [ | ||
"error", | ||
{ | ||
"ignoreRestSiblings": true | ||
} | ||
], | ||
"eslint/require-await": "off", | ||
"eslint/sort-imports": [ | ||
"error", | ||
{ | ||
"ignoreDeclarationSort": true, | ||
"memberSyntaxSortOrder": ["single", "multiple", "all", "none"] | ||
} | ||
], | ||
"import/export": "off", | ||
"import/import-no-namespace": "off", | ||
"import/max-dependencies": "off", | ||
"import/namespace": "off", | ||
"import/no-default-export": "off", | ||
"import/no-deprecated": "warn", | ||
"import/no-duplicates": "off", | ||
"import/no-unused-modules": "off", | ||
"import/unambiguous": "warn", | ||
"jest/no-conditional-expect": "off", | ||
"jest/no-confusing-set-timeout": "off", | ||
"jest/no-hooks": "off", | ||
"jest/no-restricted-jest-methods": "off", | ||
"jest/no-restricted-matchers": "off", | ||
"jest/no-standalone-expect": "off", | ||
"jest/no-untyped-mock-factory": "off", | ||
"jest/prefer-called-with": "off", | ||
"jest/prefer-comparison-matcher": "off", | ||
"jest/prefer-equality-matcher": "off", | ||
"jest/prefer-expect-resolves": "off", | ||
"jest/prefer-lowercase-title": "off", | ||
"jest/prefer-mock-promise-shorthand": "off", | ||
"jest/prefer-spy-on": "off", | ||
"jest/prefer-strict-equal": "off", | ||
"jest/prefer-to-be": "off", | ||
"jest/prefer-to-contain": "off", | ||
"jest/prefer-to-have-length": "off", | ||
"jest/prefer-todo": "error", | ||
"jest/require-hook": "off", | ||
"jest/require-to-throw-message": "off", | ||
"oxc/no-accumulating-spread": "off", | ||
"oxc/no-async-await": "off", | ||
"oxc/no-barrel-file": "off", | ||
"oxc/no-optional-chaining": "off", | ||
"oxc/no-rest-spread-properties": "off", | ||
"react-perf/jsx-no-jsx-as-prop": "off", | ||
"react-perf/jsx-no-new-array-as-prop": "off", | ||
"react-perf/jsx-no-new-function-as-prop": "off", | ||
"react-perf/jsx-no-new-object-as-prop": "off", | ||
"react/jsx-no-useless-fragment": "off", | ||
"react/exhaustive-deps": "warn", | ||
"react/iframe-missing-sandbox": "warn", | ||
"react/jsx-no-target-blank": "off", | ||
"react/no-set-state": "off", | ||
"react/react-in-jsx-scope": "off", | ||
"unicorn/error-message": "off", | ||
"unicorn/filename-case": "off", | ||
"unicorn/no-anonymous-default-export": "off", | ||
"unicorn/no-array-for-each": "off", | ||
"unicorn/no-array-reduce": "off", | ||
"unicorn/no-await-expression-member": "off", | ||
"unicorn/no-await-in-promise-methods": "off", | ||
"unicorn/no-lonely-if": "off", | ||
"unicorn/prefer-set-has": "off", | ||
"unicorn/no-document-cookie": "off", | ||
"unicorn/no-invalid-remove-event-listener": "off", | ||
"unicorn/no-magic-array-flat-depth": "off", | ||
"unicorn/no-negated-condition": "off", | ||
"unicorn/no-new-array": "off", | ||
"unicorn/no-null": "off", | ||
"unicorn/no-object-as-default-parameter": "off", | ||
"unicorn/no-process-exit": "off", | ||
"unicorn/no-single-promise-in-promise-methods": "off", | ||
"unicorn/no-useless-promise-resolve-reject": "off", | ||
"unicorn/no-useless-undefined": "off", | ||
"unicorn/no-zero-fractions": "off", | ||
"unicorn/number-literal-case": "off", | ||
"unicorn/numeric-separators-style": "off", | ||
"unicorn/prefer-add-event-listener": "off", | ||
"unicorn/prefer-array-some": "off", | ||
"unicorn/prefer-blob-reading-methods": "off", | ||
"unicorn/prefer-code-point": "off", | ||
"unicorn/prefer-dom-node-append": "off", | ||
"unicorn/prefer-dom-node-remove": "off", | ||
"unicorn/prefer-logical-operator-over-ternary": "off", | ||
"unicorn/prefer-node-protocol": "off", | ||
"unicorn/prefer-query-selector": "off", | ||
"unicorn/prefer-string-replace-all": "off", | ||
"unicorn/prefer-string-slice": "off" | ||
}, | ||
"settings": { | ||
"jsx-a11y": { | ||
"components": { | ||
"polymorphicPropName": "as" | ||
} | ||
}, | ||
"react": {} | ||
} | ||
} |
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 |
---|---|---|
|
@@ -30,4 +30,4 @@ const nextConfig = () => { | |
return config | ||
} | ||
|
||
module.exports = nextConfig() | ||
export default nextConfig() |
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 |
---|---|---|
|
@@ -28,4 +28,4 @@ const nextConfig = () => { | |
return config | ||
} | ||
|
||
module.exports = nextConfig() | ||
export default nextConfig() |
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
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
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 |
---|---|---|
|
@@ -29,4 +29,4 @@ const nextConfig = () => { | |
return config | ||
} | ||
|
||
module.exports = nextConfig() | ||
export default nextConfig() |
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
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
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
Oops, something went wrong.