Skip to content

Commit c606c56

Browse files
dafflmarshallswain
andauthored
chore: Format code using Prettier and updated ESLint rules (#2647)
Co-authored-by: Marshall Thompson <marshall@creativeideal.net>
1 parent 6a4ed58 commit c606c56

File tree

133 files changed

+9975
-8974
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

133 files changed

+9975
-8974
lines changed

.codeclimate.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,10 @@ plugins:
3636
config:
3737
count_threshold: 4
3838
exclude_patterns:
39-
- "**/test/*"
40-
- "**/adapter-tests/*"
41-
- "**/dist/*"
42-
- "**/*.dist.js"
39+
- "**/test/*"
40+
- "**/adapter-tests/*"
41+
- "**/dist/*"
42+
- "**/*.dist.js"
4343
- "**/templates/*"
44-
- "**/_**"
44+
- "**/_**"
45+
- "**/adapter-commons/src/sort.ts"

.eslintrc.js

Lines changed: 5 additions & 143 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,3 @@
1-
/*
2-
👋 Hi! This file was autogenerated by tslint-to-eslint-config.
3-
https://github.com/typescript-eslint/tslint-to-eslint-config
4-
5-
It represents the closest reasonable ESLint configuration to this
6-
project's original TSLint configuration.
7-
8-
We recommend eventually switching this configuration to extend from
9-
the recommended rulesets in typescript-eslint.
10-
https://github.com/typescript-eslint/tslint-to-eslint-config/blob/master/docs/FAQs.md
11-
12-
Happy linting! 💖
13-
*/
141
module.exports = {
152
"env": {
163
"browser": true,
@@ -19,144 +6,19 @@ module.exports = {
196
"node": true
207
},
218
"extends": [
22-
"plugin:@typescript-eslint/recommended",
23-
"plugin:@typescript-eslint/recommended-requiring-type-checking"
9+
"plugin:@typescript-eslint/recommended"
2410
],
2511
"parser": "@typescript-eslint/parser",
2612
"parserOptions": {
2713
"project": "tsconfig.json",
2814
"sourceType": "module"
2915
},
3016
"plugins": [
31-
"eslint-plugin-import",
32-
"eslint-plugin-prefer-arrow",
33-
"@typescript-eslint"
17+
"@typescript-eslint",
18+
"prettier"
3419
],
3520
"rules": {
36-
"prefer-rest-params": "off",
37-
"prefer-spread": "off",
38-
"@typescript-eslint/no-unsafe-member-access": "off",
39-
"@typescript-eslint/no-unsafe-assignment": "off",
40-
"@typescript-eslint/no-unsafe-argument": "off",
41-
"@typescript-eslint/no-unsafe-member-access": "off",
42-
"@typescript-eslint/no-unsafe-call": "off",
43-
"@typescript-eslint/no-unsafe-return": "off",
44-
"@typescript-eslint/no-floating-promises": "off",
45-
"@typescript-eslint/restrict-template-expressions": "off",
46-
"@typescript-eslint/explicit-module-boundary-types": "off",
47-
"@typescript-eslint/require-await": "off",
48-
"@typescript-eslint/ban-ts-comment": "off",
49-
"@typescript-eslint/unbound-method": "off",
50-
"@typescript-eslint/no-this-alias": "off",
51-
"@typescript-eslint/prefer-regexp-exec": "off",
52-
"@typescript-eslint/no-misused-promises": "off",
53-
"@typescript-eslint/restrict-plus-operands": "off",
54-
// ----
55-
"@typescript-eslint/adjacent-overload-signatures": "error",
56-
"@typescript-eslint/array-type": [
57-
"error",
58-
{
59-
"default": "array"
60-
}
61-
],
62-
"@typescript-eslint/ban-types": "off",
63-
"@typescript-eslint/consistent-type-assertions": "error",
64-
"@typescript-eslint/dot-notation": "error",
65-
"@typescript-eslint/explicit-member-accessibility": [
66-
"error",
67-
{
68-
"accessibility": "no-public"
69-
}
70-
],
71-
"@typescript-eslint/naming-convention": "off",
72-
"@typescript-eslint/no-empty-function": "off",
73-
"@typescript-eslint/no-empty-interface": "error",
74-
"@typescript-eslint/no-explicit-any": "off",
75-
"@typescript-eslint/no-misused-new": "error",
76-
"@typescript-eslint/no-namespace": "error",
77-
"@typescript-eslint/no-parameter-properties": "off",
78-
"@typescript-eslint/no-unused-expressions": "error",
79-
"@typescript-eslint/no-use-before-define": "off",
80-
"@typescript-eslint/no-var-requires": "error",
81-
"@typescript-eslint/prefer-for-of": "error",
82-
"@typescript-eslint/prefer-function-type": "error",
83-
"@typescript-eslint/prefer-namespace-keyword": "error",
84-
"@typescript-eslint/quotes": [
85-
"error",
86-
"single"
87-
],
88-
"@typescript-eslint/triple-slash-reference": [
89-
"error",
90-
{
91-
"path": "always",
92-
"types": "prefer-import",
93-
"lib": "always"
94-
}
95-
],
96-
"@typescript-eslint/unified-signatures": "error",
97-
"arrow-parens": [
98-
"off",
99-
"always"
100-
],
101-
"comma-dangle": "error",
102-
"complexity": "off",
103-
"constructor-super": "error",
104-
"eqeqeq": [
105-
"error",
106-
"smart"
107-
],
108-
"guard-for-in": "error",
109-
"id-blacklist": "off",
110-
"id-match": "off",
111-
"import/order": "off",
112-
// "jsdoc/check-alignment": "error",
113-
// "jsdoc/check-indentation": "error",
114-
// "jsdoc/newline-after-description": "error",
115-
"max-classes-per-file": "off",
116-
"max-len": "off",
117-
"new-parens": "error",
118-
"no-bitwise": "error",
119-
"no-caller": "error",
120-
"no-cond-assign": "error",
121-
"no-console": "error",
122-
"no-debugger": "error",
123-
"no-empty": "off",
124-
"no-eval": "error",
125-
"no-fallthrough": "off",
126-
"no-invalid-this": "off",
127-
"no-new-wrappers": "error",
128-
"no-shadow": [
129-
"off",
130-
{
131-
"hoist": "all"
132-
}
133-
],
134-
"no-throw-literal": "error",
135-
"no-trailing-spaces": "error",
136-
"no-undef-init": "error",
137-
"no-underscore-dangle": "off",
138-
"no-unsafe-finally": "error",
139-
"no-unused-labels": "error",
140-
"no-var": "error",
141-
"object-shorthand": "error",
142-
"one-var": [
143-
"error",
144-
"never"
145-
],
146-
"prefer-arrow/prefer-arrow-functions": "off",
147-
"prefer-const": "error",
148-
"radix": "error",
149-
"space-before-function-paren": "error",
150-
"spaced-comment": [
151-
"error",
152-
"always",
153-
{
154-
"markers": [
155-
"/"
156-
]
157-
}
158-
],
159-
"use-isnan": "error",
160-
"valid-typeof": "off"
21+
"prettier/prettier": "error",
22+
"@typescript-eslint/no-explicit-any": "off"
16123
}
16224
};

.prettierrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"tabWidth": 2,
3+
"useTabs": false,
4+
"printWidth": 120,
5+
"semi": false,
6+
"trailingComma": "none",
7+
"singleQuote": true
8+
}

0 commit comments

Comments
 (0)