-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: use
@guardian/prettier
config and rewrite files
- Loading branch information
Showing
532 changed files
with
35,451 additions
and
35,453 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
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,55 +1,55 @@ | ||
{ | ||
"parser": "@typescript-eslint/parser", | ||
"extends": [ | ||
"plugin:prettier/recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:react/recommended", | ||
"prettier", | ||
"plugin:jsx-a11y/recommended", | ||
"plugin:functional/no-mutations", | ||
"plugin:react-hooks/recommended", | ||
"plugin:@guardian/source-foundations/recommended", | ||
"plugin:@guardian/source-react-components/recommended", | ||
"plugin:storybook/recommended" | ||
], | ||
"parserOptions": { | ||
"ecmaFeatures": { | ||
"jsx": true | ||
} | ||
}, | ||
"plugins": ["functional"], | ||
"rules": { | ||
"react/prop-types": 0, | ||
"@typescript-eslint/explicit-function-return-type": 0, | ||
"@typescript-eslint/explicit-module-boundary-types": 0, | ||
"functional/prefer-readonly-type": 0, | ||
"functional/no-method-signature": 0, | ||
"functional/immutable-data": [ | ||
"error", | ||
{ | ||
"ignoreImmediateMutation": true | ||
} | ||
], | ||
"functional/prefer-immutable-types": 0, | ||
"functional/type-declaration-immutability": 0, | ||
"no-var": "error", | ||
"no-param-reassign": "error", | ||
"prefer-const": "error", | ||
"no-sequences": "error", | ||
"no-console": "error", | ||
"react/no-unknown-property": ["error", { "ignore": ["css"] }] | ||
}, | ||
"overrides": [ | ||
{ | ||
"files": ["*.stories.tsx"], | ||
"rules": { | ||
"functional/immutable-data": 0 | ||
} | ||
} | ||
], | ||
"settings": { | ||
"react": { | ||
"version": "detect" | ||
} | ||
} | ||
"parser": "@typescript-eslint/parser", | ||
"extends": [ | ||
"plugin:prettier/recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:react/recommended", | ||
"prettier", | ||
"plugin:jsx-a11y/recommended", | ||
"plugin:functional/no-mutations", | ||
"plugin:react-hooks/recommended", | ||
"plugin:@guardian/source-foundations/recommended", | ||
"plugin:@guardian/source-react-components/recommended", | ||
"plugin:storybook/recommended" | ||
], | ||
"parserOptions": { | ||
"ecmaFeatures": { | ||
"jsx": true | ||
} | ||
}, | ||
"plugins": ["functional"], | ||
"rules": { | ||
"react/prop-types": 0, | ||
"@typescript-eslint/explicit-function-return-type": 0, | ||
"@typescript-eslint/explicit-module-boundary-types": 0, | ||
"functional/prefer-readonly-type": 0, | ||
"functional/no-method-signature": 0, | ||
"functional/immutable-data": [ | ||
"error", | ||
{ | ||
"ignoreImmediateMutation": true | ||
} | ||
], | ||
"functional/prefer-immutable-types": 0, | ||
"functional/type-declaration-immutability": 0, | ||
"no-var": "error", | ||
"no-param-reassign": "error", | ||
"prefer-const": "error", | ||
"no-sequences": "error", | ||
"no-console": "error", | ||
"react/no-unknown-property": ["error", { "ignore": ["css"] }] | ||
}, | ||
"overrides": [ | ||
{ | ||
"files": ["*.stories.tsx"], | ||
"rules": { | ||
"functional/immutable-data": 0 | ||
} | ||
} | ||
], | ||
"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 |
---|---|---|
@@ -1,6 +1 @@ | ||
{ | ||
"tabWidth": 2, | ||
"trailingComma": "all", | ||
"singleQuote": true, | ||
"bracketSpacing": true | ||
} | ||
"@guardian/prettier" |
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,15 +1,15 @@ | ||
{ | ||
"enabled": false, | ||
"settings": { | ||
"logOnly": false, | ||
"trackBucketCapacity": false | ||
}, | ||
"defaultBuckets": { | ||
"globalBucket": { "capacity": 500, "addTokenMs": 50 }, | ||
"ipBucket": { "capacity": 100, "addTokenMs": 50 }, | ||
"emailBucket": { "capacity": 100, "addTokenMs": 50 }, | ||
"oktaIdentifierBucket": { "capacity": 100, "addTokenMs": 50 }, | ||
"accessTokenBucket": { "capacity": 100, "addTokenMs": 50 } | ||
}, | ||
"routeBuckets": {} | ||
"enabled": false, | ||
"settings": { | ||
"logOnly": false, | ||
"trackBucketCapacity": false | ||
}, | ||
"defaultBuckets": { | ||
"globalBucket": { "capacity": 500, "addTokenMs": 50 }, | ||
"ipBucket": { "capacity": 100, "addTokenMs": 50 }, | ||
"emailBucket": { "capacity": 100, "addTokenMs": 50 }, | ||
"oktaIdentifierBucket": { "capacity": 100, "addTokenMs": 50 }, | ||
"accessTokenBucket": { "capacity": 100, "addTokenMs": 50 } | ||
}, | ||
"routeBuckets": {} | ||
} |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<script> | ||
// fix for chromatic/storybook failing to render a component | ||
// as the window.guardian object was not defined | ||
window.guardian = {}; | ||
// fix for chromatic/storybook failing to render a component | ||
// as the window.guardian object was not defined | ||
window.guardian = {}; | ||
</script> |
Oops, something went wrong.