Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
144 changes: 0 additions & 144 deletions .eslintrc.js

This file was deleted.

9 changes: 9 additions & 0 deletions .oxfmtrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"$schema": "./node_modules/oxfmt/configuration_schema.json",
"trailingComma": "all",
"arrowParens": "avoid",
"printWidth": 80,
"sortPackageJson": false,
"singleQuote": true,
"jsxSingleQuote": true
}
72 changes: 72 additions & 0 deletions .oxlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["react", "typescript", "import", "jsx-a11y"],
"jsPlugins": [
"eslint-plugin-no-only-tests",
"eslint-plugin-cypress",
"eslint-plugin-json"
],
"categories": {
"correctness": "off"
},
"env": {
"builtin": true
},
"ignorePatterns": [
"**/tz/**",
"index.stories.jsx",
"index.stories.tsx",
"index.amp.stories.jsx",
".storybook/**/*"
],
"rules": {
"react/no-unknown-property": [
"error",
{
"ignore": [
"amp-boilerplate",
"amp-custom",
"amp-access",
"amp-access-hide",
"amp-install-serviceworker",
"css",
"custom-element",
"custom-template",
"fallback"
]
}
],
"import/extensions": [
"warn",
{
"json": "ignorePackages"
}
],
"no-only-tests/no-only-tests": "error",
"no-unsafe-optional-chaining": "error",
"cypress/no-assigning-return-values": "error",
"cypress/no-unnecessary-waiting": "error",
"cypress/no-async-tests": "error",
"cypress/unsafe-to-chain-command": "error",
"react/rules-of-hooks": "error",
"react/exhaustive-deps": "warn"
},
"overrides": [
{
"files": ["**/*.ts", "**/*.tsx"],
"rules": {
"typescript/no-use-before-define": "error",
"typescript/no-unused-vars": [
"warn",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_"
}
],
"typescript/prefer-optional-chain": "error",
"import/prefer-default-export": "error"
}
}
]
}
5 changes: 0 additions & 5 deletions .prettierrc

This file was deleted.

6 changes: 0 additions & 6 deletions .storybook/.eslintrc

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
6 changes: 0 additions & 6 deletions cypress/.eslintrc

This file was deleted.

19 changes: 4 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
"storybook": "storybook dev -p 9001 -c .storybook",
"test:local": "yarn test:lint && yarn test:dependencies && yarn test:unit && run-p --race start amp:validate",
"test:dependencies": "node ./scripts/dependencyCheck",
"test:lint": "eslint --ext .js,jsx,json,ts,tsx ./src ./data ./cypress",
"test:lint:fix": "eslint --fix --ext .js,jsx,json,ts,tsx ./src",
"test:lint": "oxlint ./src ./data ./cypress && oxfmt --check ./src ./data ./cypress",
"test:lint:fix": "oxlint --fix ./src ./data ./cypress && oxfmt ./src ./data ./cypress",
"test:puppeteer": "jest --ci --colors --verbose ./puppeteer",
"test:puppeteer:local": "PUPPETEER_APP_ENV=local yarn test:puppeteer",
"test:unit": "test -z $CI && yarn test:unit:local || yarn test:unit:ci",
Expand Down Expand Up @@ -91,7 +91,6 @@
"winston": "patch:winston@3.8.2#./patches/winston-file-descriptor.patch"
},
"devDependencies": {
"@babel/eslint-parser": "7.28.6",
"@babel/preset-env": "7.29.5",
"@babel/preset-react": "7.28.5",
"@babel/preset-typescript": "7.28.5",
Expand Down Expand Up @@ -120,8 +119,6 @@
"@types/react-helmet": "6.1.11",
"@types/react-lazyload": "^3.2.0",
"@types/testing-library__react": "10.2.0",
"@typescript-eslint/eslint-plugin": "5.62.0",
"@typescript-eslint/parser": "8.58.0",
"amphtml-validator": "1.0.38",
"babel-jest": "30.4.1",
"babel-loader": "10.1.1",
Expand All @@ -136,18 +133,9 @@
"cypress-multi-reporters": "2.0.5",
"cypress-terminal-report": "7.2.1",
"depcheck": "1.4.7",
"eslint": "7.32.0",
"eslint-config-airbnb": "19.0.4",
"eslint-config-prettier": "10.1.8",
"eslint-import-resolver-alias": "1.1.2",
"eslint-plugin-cypress": "5.2.0",
"eslint-plugin-import": "2.32.0",
"eslint-plugin-json": "4.0.1",
"eslint-plugin-jsx-a11y": "6.10.2",
"eslint-plugin-no-only-tests": "^3.3.0",
"eslint-plugin-prettier": "5.5.4",
"eslint-plugin-react": "7.37.5",
"eslint-plugin-react-hooks": "5.2.0",
"happy-dom": "20.9.0",
"husky": "9.1.7",
"jest": "30.3.0",
Expand All @@ -160,7 +148,8 @@
"mkdirp": "3.0.1",
"mocha-junit-reporter": "2.2.1",
"npm-run-all2": "8.0.4",
"prettier": "3.8.1",
"oxfmt": "0.53.0",
"oxlint": "1.68.0",
"puppeteer": "24.22.3",
"retry": "0.13.1",
"storybook": "10.3.6",
Expand Down
Loading
Loading