-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(bridge-ui): Running prettier on all the files (#13275)
Co-authored-by: Daniel Wang <99078276+dantaik@users.noreply.github.com>
- Loading branch information
1 parent
b4c31cd
commit f1278a4
Showing
103 changed files
with
3,702 additions
and
3,177 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,8 +1,8 @@ | ||
{ | ||
"presets": [["@babel/preset-env", {"targets": {"node": "current"}}]], | ||
"env": { | ||
"test": { | ||
"plugins": ["transform-es2015-modules-commonjs"] | ||
} | ||
"presets": [["@babel/preset-env", { "targets": { "node": "current" } }]], | ||
"env": { | ||
"test": { | ||
"plugins": ["transform-es2015-modules-commonjs"] | ||
} | ||
} | ||
} | ||
} |
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,7 @@ | ||
dist | ||
build | ||
coverage | ||
node_modules | ||
example | ||
LICENSES | ||
public | ||
public |
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,81 +1,80 @@ | ||
module.exports = { | ||
env: { | ||
node: true, | ||
browser: true, | ||
es2021: true, | ||
webextensions: true, | ||
env: { | ||
node: true, | ||
browser: true, | ||
es2021: true, | ||
webextensions: true, | ||
}, | ||
extends: ['eslint:recommended'], | ||
parser: '@typescript-eslint/parser', | ||
parserOptions: { | ||
ecmaVersion: 'latest', | ||
sourceType: 'module', | ||
extraFileExtensions: ['.svelte'], | ||
}, | ||
plugins: ['svelte3', '@typescript-eslint'], | ||
rules: { | ||
'linebreak-style': ['error', 'unix'], | ||
semi: ['error', 'always'], | ||
}, | ||
ignorePatterns: ['node_modules'], // todo: lets lint that separately, or move it to its own package | ||
settings: { | ||
'svelte3/typescript': require('typescript'), | ||
}, | ||
overrides: [ | ||
{ | ||
files: ['*.ts', '*.svelte'], | ||
extends: [ | ||
'plugin:@typescript-eslint/recommended', | ||
'plugin:@typescript-eslint/recommended-requiring-type-checking', | ||
], | ||
parserOptions: { | ||
project: ['./tsconfig.json'], | ||
tsconfigRootDir: __dirname, | ||
}, | ||
rules: { | ||
'@typescript-eslint/no-inferrable-types': 0, | ||
'@typescript-eslint/unbound-method': 'off', | ||
'@typescript-eslint/no-empty-interface': 'off', | ||
}, | ||
}, | ||
extends: ["eslint:recommended"], | ||
parser: "@typescript-eslint/parser", | ||
parserOptions: { | ||
ecmaVersion: "latest", | ||
sourceType: "module", | ||
extraFileExtensions: [".svelte"], | ||
{ | ||
files: ['*.svelte'], | ||
processor: 'svelte3/svelte3', | ||
// typescript and svelte dont work with template handlers yet. | ||
// https://stackoverflow.com/questions/63337868/svelte-typescript-unexpected-tokensvelteparse-error-when-adding-type-to-an-ev | ||
// we need these 3 rules to be able to do: | ||
// on:change=(e) => anyFunctionHere(). | ||
// when svelte is updated, we can remove these 5 rules for svelte files. | ||
rules: { | ||
'@typescript-eslint/no-explicit-any': 'off', | ||
'@typescript-eslint/no-implicit-any': 'off', | ||
'@typescript-eslint/no-unsafe-assignment': 'off', | ||
'@typescript-eslint/no-unsafe-member-access': 'off', | ||
'@typescript-eslint/no-unsafe-argument': 'off', | ||
'@typescript-eslint/no-unsafe-call': 'off', | ||
'@typescript-eslint/restrict-template-expressions': [ | ||
'warn', | ||
{ | ||
allowNumber: true, | ||
allowBoolean: true, | ||
allowNullish: true, | ||
allowAny: true, | ||
}, | ||
], | ||
}, | ||
}, | ||
plugins: ["svelte3", "@typescript-eslint"], | ||
rules: { | ||
"linebreak-style": ["error", "unix"], | ||
quotes: ["error", "double"], | ||
semi: ["error", "always"], | ||
{ | ||
files: ['*.spec.ts'], | ||
plugins: ['jest'], | ||
rules: { | ||
'@typescript-eslint/no-explicit-any': 'off', | ||
'@typescript-eslint/no-empty-function': 'off', | ||
'@typescript-eslint/no-unused-vars': 'off', | ||
'@typescript-eslint/no-unsafe-assignment': 'off', | ||
'@typescript-eslint/unbound-method': 'off', | ||
'jest/unbound-method': 'error', | ||
}, | ||
}, | ||
ignorePatterns: ["node_modules"], // todo: lets lint that separately, or move it to its own package | ||
settings: { | ||
"svelte3/typescript": require("typescript"), | ||
}, | ||
overrides: [ | ||
{ | ||
files: ["*.ts", "*.svelte"], | ||
extends: [ | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:@typescript-eslint/recommended-requiring-type-checking", | ||
], | ||
parserOptions: { | ||
project: ["./tsconfig.json"], | ||
tsconfigRootDir: __dirname, | ||
}, | ||
rules: { | ||
"@typescript-eslint/no-inferrable-types": 0, | ||
"@typescript-eslint/unbound-method": "off", | ||
"@typescript-eslint/no-empty-interface": "off", | ||
}, | ||
}, | ||
{ | ||
files: ["*.svelte"], | ||
processor: "svelte3/svelte3", | ||
// typescript and svelte dont work with template handlers yet. | ||
// https://stackoverflow.com/questions/63337868/svelte-typescript-unexpected-tokensvelteparse-error-when-adding-type-to-an-ev | ||
// we need these 3 rules to be able to do: | ||
// on:change=(e) => anyFunctionHere(). | ||
// when svelte is updated, we can remove these 5 rules for svelte files. | ||
rules: { | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"@typescript-eslint/no-implicit-any": "off", | ||
"@typescript-eslint/no-unsafe-assignment": "off", | ||
"@typescript-eslint/no-unsafe-member-access": "off", | ||
"@typescript-eslint/no-unsafe-argument": "off", | ||
"@typescript-eslint/no-unsafe-call": "off", | ||
"@typescript-eslint/restrict-template-expressions": [ | ||
"warn", | ||
{ | ||
allowNumber: true, | ||
allowBoolean: true, | ||
allowNullish: true, | ||
allowAny: true, | ||
}, | ||
], | ||
}, | ||
}, | ||
{ | ||
files: ["*.spec.ts"], | ||
plugins: ["jest"], | ||
rules: { | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"@typescript-eslint/no-empty-function": "off", | ||
"@typescript-eslint/no-unused-vars": "off", | ||
"@typescript-eslint/no-unsafe-assignment": "off", | ||
"@typescript-eslint/unbound-method": "off", | ||
"jest/unbound-method": "error", | ||
}, | ||
}, | ||
], | ||
], | ||
}; |
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,7 @@ | ||
dist | ||
build | ||
coverage | ||
node_modules | ||
example | ||
LICENSES | ||
public |
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.