Skip to content

Commit 008117d

Browse files
committed
Revert format
1 parent 2c32b90 commit 008117d

1 file changed

Lines changed: 36 additions & 36 deletions

File tree

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,88 +1,88 @@
1-
import typeScriptConfig from "@strv/eslint-config-typescript";
2-
import expoConfig from "eslint-config-expo/flat.js";
3-
import { defineConfig, globalIgnores } from "eslint/config";
1+
import typeScriptConfig from '@strv/eslint-config-typescript'
2+
import expoConfig from 'eslint-config-expo/flat.js'
3+
import { defineConfig, globalIgnores } from 'eslint/config'
44

55
/** Globally ignored */
6-
const ignores = globalIgnores([".expo/", "expo-env.d.ts"]);
6+
const ignores = globalIgnores(['.expo/', 'expo-env.d.ts'])
77

88
/** @type {import("eslint").Linter.Config} */
99
const common = {
10-
name: "@strv/eslint-config-react-native",
10+
name: '@strv/eslint-config-react-native',
1111
rules: {
1212
// Very expensive check, see https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/namespace.md
13-
"import/namespace": "off",
13+
'import/namespace': 'off',
1414
// Very expensive check, see https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-duplicates.md
15-
"import/no-duplicates": "off",
15+
'import/no-duplicates': 'off',
1616
// Handled by TypeScript, see https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-unresolved.md
17-
"import/no-unresolved": "off",
17+
'import/no-unresolved': 'off',
1818
// https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-named-as-default.md
19-
"import/no-named-as-default": "off",
19+
'import/no-named-as-default': 'off',
2020
// https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-named-as-default-member.md
21-
"import/no-named-as-default-member": "off",
21+
'import/no-named-as-default-member': 'off',
2222
// Handled by TypeScript. Enable noUnusedLocals in your tsconfig.json, see https://www.typescriptlang.org/tsconfig/#noUnusedLocals
2323
// https://eslint.org/docs/latest/rules/no-unused-vars
24-
"no-unused-vars": "off",
24+
'no-unused-vars': 'off',
2525
},
26-
};
26+
}
2727

2828
/** @type {import("eslint").Linter.Config} */
2929
const react = {
30-
files: ["**/*.jsx", "**/*.tsx"],
30+
files: ['**/*.jsx', '**/*.tsx'],
3131
rules: {
3232
// Enforce alphabetical sorting of props for better readability, see https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-sort-props.md
33-
"react/jsx-sort-props": [
34-
"error",
33+
'react/jsx-sort-props': [
34+
'error',
3535
{
36-
multiline: "first",
37-
reservedFirst: ["key"],
36+
multiline: 'first',
37+
reservedFirst: ['key'],
3838
callbacksLast: true,
3939
shorthandLast: true,
4040
},
4141
],
4242
// DisplayName is not required for React Native components, see https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/display-name.md
43-
"react/display-name": "off",
43+
'react/display-name': 'off',
4444
},
45-
};
45+
}
4646

4747
/** @type {import("eslint").Linter.Config} */
4848
const typescript = defineConfig([
4949
typeScriptConfig,
5050
{
51-
files: ["**/*.ts", "**/*.tsx"],
51+
files: ['**/*.ts', '**/*.tsx'],
5252
rules: {
5353
// Handled by TypeScript. Enable noUnusedLocals in your tsconfig.json, see https://www.typescriptlang.org/tsconfig/#noUnusedLocals
5454
// https://typescript-eslint.io/rules/no-unused-vars/
55-
"@typescript-eslint/no-unused-vars": "off",
55+
'@typescript-eslint/no-unused-vars': 'off',
5656
// Its common in React Native to import types using require syntax, see https://reactnative.dev/docs/images#static-image-resources
5757
// https://typescript-eslint.io/rules/no-require-imports/
58-
"@typescript-eslint/no-require-imports": "off",
58+
'@typescript-eslint/no-require-imports': 'off',
5959
// Very expensive check, see https://typescript-eslint.io/rules/promise-function-async/
60-
"@typescript-eslint/promise-function-async": "off",
60+
'@typescript-eslint/promise-function-async': 'off',
6161

6262
// Allows variable shadowing in TypeScript contexts, see https://typescript-eslint.io/rules/no-shadow/
63-
"@typescript-eslint/no-shadow": "off",
63+
'@typescript-eslint/no-shadow': 'off',
6464
// Allows both interface and type definitions, see https://typescript-eslint.io/rules/consistent-type-definitions/
65-
"@typescript-eslint/consistent-type-definitions": "off",
65+
'@typescript-eslint/consistent-type-definitions': 'off',
6666
// Allows Promises in places where they might not be handled properly, see https://typescript-eslint.io/rules/no-misused-promises/
67-
"@typescript-eslint/no-misused-promises": "off",
67+
'@typescript-eslint/no-misused-promises': 'off',
6868
// Allows assignments of any typed values, see https://typescript-eslint.io/rules/no-unsafe-assignment/
69-
"@typescript-eslint/no-unsafe-assignment": "off",
69+
'@typescript-eslint/no-unsafe-assignment': 'off',
7070
// Allows returning any typed values from functions, see https://typescript-eslint.io/rules/no-unsafe-return/
71-
"@typescript-eslint/no-unsafe-return": "off",
71+
'@typescript-eslint/no-unsafe-return': 'off',
7272
// Allows unbound method references that may lose 'this' context, see https://typescript-eslint.io/rules/unbound-method/
73-
"@typescript-eslint/unbound-method": "off",
73+
'@typescript-eslint/unbound-method': 'off',
7474
// Allows member access on any typed values, see https://typescript-eslint.io/rules/no-unsafe-member-access/
75-
"@typescript-eslint/no-unsafe-member-access": "off",
75+
'@typescript-eslint/no-unsafe-member-access': 'off',
7676

7777
// Enforce consistent type imports with inline style, see https://typescript-eslint.io/rules/consistent-type-imports/
78-
"@typescript-eslint/consistent-type-imports": [
79-
"error",
80-
{ prefer: "type-imports", fixStyle: "inline-type-imports" },
78+
'@typescript-eslint/consistent-type-imports': [
79+
'error',
80+
{ prefer: 'type-imports', fixStyle: 'inline-type-imports' },
8181
],
8282
// Allow throwing non-Error objects, but only Promises are allowed in React codebases, see https://typescript-eslint.io/rules/only-throw-error/
83-
"@typescript-eslint/only-throw-error": ["error", { allow: ["Promise"] }],
83+
'@typescript-eslint/only-throw-error': ['error', { allow: ['Promise'] }],
8484
},
8585
},
86-
]);
86+
])
8787

88-
export default defineConfig([expoConfig, ignores, common, typescript, react]);
88+
export default defineConfig([expoConfig, ignores, common, typescript, react])

0 commit comments

Comments
 (0)